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