| @@ 9-22 (lines=14) @@ | ||
| 6 | * @author Sébastien Lucas <[email protected]> |
|
| 7 | */ |
|
| 8 | ||
| 9 | class PageAllAuthors extends Page |
|
| 10 | { |
|
| 11 | public function InitializeContent () |
|
| 12 | { |
|
| 13 | $this->title = localize("authors.title"); |
|
| 14 | if (getCurrentOption ("author_split_first_letter") == 1) { |
|
| 15 | $this->entryArray = Author::getAllAuthorsByFirstLetter(); |
|
| 16 | } |
|
| 17 | else { |
|
| 18 | $this->entryArray = Author::getAllAuthors(); |
|
| 19 | } |
|
| 20 | $this->idPage = Author::ALL_AUTHORS_ID; |
|
| 21 | } |
|
| 22 | } |
|
| 23 | ||
| @@ 9-22 (lines=14) @@ | ||
| 6 | * @author Sébastien Lucas <[email protected]> |
|
| 7 | */ |
|
| 8 | ||
| 9 | class PageAllBooks extends Page |
|
| 10 | { |
|
| 11 | public function InitializeContent () |
|
| 12 | { |
|
| 13 | $this->title = localize ("allbooks.title"); |
|
| 14 | if (getCurrentOption ("titles_split_first_letter") == 1) { |
|
| 15 | $this->entryArray = Book::getAllBooks(); |
|
| 16 | } |
|
| 17 | else { |
|
| 18 | list ($this->entryArray, $this->totalNumber) = Book::getBooks ($this->n); |
|
| 19 | } |
|
| 20 | $this->idPage = Book::ALL_BOOKS_ID; |
|
| 21 | } |
|
| 22 | } |
|
| 23 | ||