/** * @see wcf\data\DatabaseObjectDecorator::__construct() */ public function __construct(DatabaseObject $object, $includeDisabledCategories = false, array $excludedCategoryIDs = array()) { if (!($object instanceof static::$baseClass)) { $object = new static::$baseClass($object); } parent::__construct($object, $includeDisabledCategories, $excludedCategoryIDs); }
/** * Adds the given category node as child node. * * @param \wcf\data\category\CategoryNode $categoryNode */ public function addChild(CategoryNode $categoryNode) { $categoryNode->setParentNode($this); $this->children[] = $categoryNode; }