Esempio n. 1
0
 /**
  * Creates a LibraryBook out of a book instance, if needed.
  *
  * @param Book $book Or descendant
  * @return LibraryBook
  */
 private function libraryBook($book)
 {
     if (!$book instanceof LibraryBook) {
         $book = LibraryBook::createFromBook($book);
     }
     return $book;
 }
Esempio n. 2
0
 function __construct()
 {
     self::$tree = array();
     $this->treecate = array();
 }