Add v0.0.4
This commit is contained in:
		
							parent
							
								
									7a80f1827e
								
							
						
					
					
						commit
						ec2bf99b90
					
				
					 17 changed files with 249 additions and 45 deletions
				
			
		| 
						 | 
				
			
			@ -54,10 +54,10 @@ order by sort');
 | 
			
		|||
        return $entryArray;
 | 
			
		||||
    }
 | 
			
		||||
        
 | 
			
		||||
    public static function getAuthorName ($authorId) {
 | 
			
		||||
    public static function getAuthorById ($authorId) {
 | 
			
		||||
        $result = parent::getDb ()->prepare('select sort from authors where id = ?');
 | 
			
		||||
        $result->execute (array ($authorId));
 | 
			
		||||
        return $result->fetchColumn ();
 | 
			
		||||
        return new Author ($authorId, $result->fetchColumn ());
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    public static function getAuthorByBookId ($bookId) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue