Add v0.0.4

This commit is contained in:
Sébastien Lucas 2012-05-28 07:07:49 +02:00
parent 7a80f1827e
commit ec2bf99b90
17 changed files with 249 additions and 45 deletions

View file

@ -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) {