|
@@ -45,6 +45,9 @@ |
|
|
block discarded – undo |
|
45
|
45
|
return Base::getEntryArrayWithBookNumber (self::SQL_ALL_TAGS, self::TAG_COLUMNS, array (), "Tag"); |
|
46
|
46
|
} |
|
47
|
47
|
|
|
|
48
|
+ /** |
|
|
49
|
+ * @param integer $numberPerPage |
|
|
50
|
+ */ |
|
48
|
51
|
public static function getAllTagsByQuery($query, $n, $database = NULL, $numberPerPage = NULL) { |
|
49
|
52
|
$columns = "tags.id as id, tags.name as name, (select count(*) from books_tags_link where tags.id = tag) as count"; |
|
50
|
53
|
$sql = 'select {0} from tags where upper (tags.name) like ? {1} order by tags.name'; |
Please login to merge, or discard this patch.