protected function isIncluded(ContentNode $contentNode) { if ($this->pageID != 0) { if ($contentNode->pageID != $this->pageID) { return false; } } if ($this->isACP) { return true; } return $contentNode->canRead(); }
/** * @param ContentNode $contentNode */ public function addChild(ContentNode $contentNode) { $contentNode->setParentNode($this); $this->children[] = $contentNode; }