コード例 #1
0
	/**
	 * @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);
	}
コード例 #2
0
 /**
  * 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;
 }