Example #1
0
 /**
  * {@inheritdoc}
  */
 public function addChildren(PageInterface $children)
 {
     $this->children[] = $children;
     $children->setParent($this);
 }
 /**
  * @param int  $page
  * @param int  $limit
  * @param bool $all
  *
  * @return mixed
  */
 public function paginate($page = 1, $limit = 10, $all = false)
 {
     return $this->page->paginate($page = 1, $limit = 10, $all = false);
 }
Example #3
0
 /**
  * Add page.
  *
  * @param PageInterface $page
  */
 public function add_page(PageInterface $page)
 {
     $this->pages[$page->get_slug()] = $page;
 }
 private function addPage(PageInterface $page)
 {
     var_dump($page->printContent());
 }