Add v0.0.4
This commit is contained in:
parent
7a80f1827e
commit
ec2bf99b90
17 changed files with 249 additions and 45 deletions
|
@ -22,6 +22,10 @@ class Serie extends Base {
|
|||
public function getUri () {
|
||||
return "?page=".parent::PAGE_SERIE_DETAIL."&id=$this->id";
|
||||
}
|
||||
|
||||
public function getEntryId () {
|
||||
return self::ALL_SERIES_ID.":".$this->id;
|
||||
}
|
||||
|
||||
public static function getCount() {
|
||||
$nSeries = parent::getDb ()->query('select count(*) from series')->fetchColumn();
|
||||
|
@ -60,9 +64,10 @@ order by series.sort');
|
|||
$entryArray = array();
|
||||
while ($post = $result->fetchObject ())
|
||||
{
|
||||
array_push ($entryArray, new Entry ($post->sort, self::ALL_SERIES_ID.":".$post->id,
|
||||
$serie = new Serie ($post->id, $post->sort);
|
||||
array_push ($entryArray, new Entry ($serie->name, $serie->getEntryId (),
|
||||
"$post->count books", "text",
|
||||
array ( new LinkNavigation ("?page=".parent::PAGE_SERIE_DETAIL."&id=$post->id"))));
|
||||
array ( new LinkNavigation ($serie->getUri ()))));
|
||||
}
|
||||
return $entryArray;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue