Esempio n. 1
0
 public function setNext(PageEntity $next = NULL, $recursively = TRUE)
 {
     if ($next === $this) {
         throw new InvalidArgumentException("Next page is the same as current page.");
     }
     $this->next = $next;
     if ($recursively && $next) {
         $next->setPrevious($this, FALSE);
     }
 }