* indicates if disabled categories are included
* @var integer
*/
- protected $inludeDisabledCategories = false;
+ protected $includeDisabledCategories = false;
/**
* list of object type category ids of excluded categories
/**
* @see wcf\data\DatabaseObjectDecorator::__construct()
*/
- public function __construct(DatabaseObject $object, $inludeDisabledCategories = false, array $excludedCategoryIDs = array()) {
+ public function __construct(DatabaseObject $object, $includeDisabledCategories = false, array $excludedCategoryIDs = array()) {
parent::__construct($object);
- $this->inludeDisabledCategories = $inludeDisabledCategories;
+ $this->includeDisabledCategories = $includeDisabledCategories;
$this->excludedCategoryIDs = $excludedCategoryIDs;
$className = get_called_class();
foreach (CategoryHandler::getInstance()->getChildCategories($this->getDecoratedObject()) as $category) {
if ($this->fulfillsConditions($category)) {
- $this->childCategories[] = new $className($category, $inludeDisabledCategories, $excludedCategoryIDs);
+ $this->childCategories[] = new $className($category, $includeDisabledCategories, $excludedCategoryIDs);
}
}
}
*
* @param string $objectType
* @param integer $parentCategoryID
- * @param boolean $inludeDisabledCategories
+ * @param boolean $includeDisabledCategories
* @param array<integer> $excludedCategoryIDs
*/
- public function __construct($objectType, $parentCategoryID = 0, $inludeDisabledCategories = false, array $excludedCategoryIDs = array()) {
+ public function __construct($objectType, $parentCategoryID = 0, $includeDisabledCategories = false, array $excludedCategoryIDs = array()) {
$this->parentCategoryID = $parentCategoryID;
// get parent category
}
}
- parent::__construct(new $this->nodeClassName($parentCategory, $inludeDisabledCategories, $excludedCategoryIDs), \RecursiveIteratorIterator::SELF_FIRST);
+ parent::__construct(new $this->nodeClassName($parentCategory, $includeDisabledCategories, $excludedCategoryIDs), \RecursiveIteratorIterator::SELF_FIRST);
}
/**