Add v0.0.2
This commit is contained in:
		
							parent
							
								
									d023b869a1
								
							
						
					
					
						commit
						b25ed5c052
					
				
					 10 changed files with 403 additions and 270 deletions
				
			
		|  | @ -25,9 +25,10 @@ class Serie extends Base { | |||
| 
 | ||||
|     public static function getCount() { | ||||
|         $nSeries = parent::getDb ()->query('select count(*) from series')->fetchColumn(); | ||||
|         parent::addEntryClass (new Entry ("Series", self::ALL_SERIES_ID,  | ||||
|         $entry = new Entry ("Series", self::ALL_SERIES_ID,  | ||||
|             "Alphabetical index of the $nSeries series", "text",  | ||||
|             array ( new LinkNavigation ("feed.php?page=".parent::PAGE_ALL_SERIES)))); | ||||
|             array ( new LinkNavigation ("feed.php?page=".parent::PAGE_ALL_SERIES))); | ||||
|         return $entry; | ||||
|     } | ||||
|      | ||||
|     public static function getSerieByBookId ($bookId) { | ||||
|  | @ -56,12 +57,14 @@ from series, books_series_link | |||
| where series.id = series | ||||
| group by series.id, series.name, series.sort | ||||
| order by series.sort'); | ||||
|         $entryArray = array(); | ||||
|         while ($post = $result->fetchObject ()) | ||||
|         { | ||||
|             parent::addEntryClass (new Entry ($post->sort, self::ALL_SERIES_ID.":".$post->id,  | ||||
|             array_push ($entryArray, new Entry ($post->sort, self::ALL_SERIES_ID.":".$post->id,  | ||||
|                 "$post->count books", "text",  | ||||
|                 array ( new LinkNavigation ("feed.php?page=".parent::PAGE_SERIE_DETAIL."&id=$post->id")))); | ||||
|         } | ||||
|         return $entryArray; | ||||
|     } | ||||
| } | ||||
| ?>
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue