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