@@ -60,6 +60,9 @@ |
||
60 | 60 | return Base::getEntryArrayWithBookNumber (self::SQL_ALL_PUBLISHERS, self::PUBLISHERS_COLUMNS, array (), "Publisher"); |
61 | 61 | } |
62 | 62 | |
63 | + /** |
|
64 | + * @param string $query |
|
65 | + */ |
|
63 | 66 | public static function getAllPublishersByQuery($query) { |
64 | 67 | return Base::getEntryArrayWithBookNumber (self::SQL_PUBLISHERS_FOR_SEARCH, self::PUBLISHERS_COLUMNS, array ('%' . $query . '%'), "Publisher"); |
65 | 68 | } |
@@ -58,6 +58,9 @@ |
||
58 | 58 | return Base::getEntryArrayWithBookNumber (self::SQL_ALL_SERIES, self::SERIES_COLUMNS, array (), "Serie"); |
59 | 59 | } |
60 | 60 | |
61 | + /** |
|
62 | + * @param string $query |
|
63 | + */ |
|
61 | 64 | public static function getAllSeriesByQuery($query) { |
62 | 65 | return Base::getEntryArrayWithBookNumber (self::SQL_SERIES_FOR_SEARCH, self::SERIES_COLUMNS, array ('%' . $query . '%'), "Serie"); |
63 | 66 | } |
@@ -152,6 +152,9 @@ discard block |
||
152 | 152 | return new Link ($href, $this->getMimeType (), Link::OPDS_ACQUISITION_TYPE, $title); |
153 | 153 | } |
154 | 154 | |
155 | + /** |
|
156 | + * @param Book $book |
|
157 | + */ |
|
155 | 158 | public static function getDataByBook ($book) { |
156 | 159 | global $config; |
157 | 160 | |
@@ -176,6 +179,9 @@ discard block |
||
176 | 179 | return $out; |
177 | 180 | } |
178 | 181 | |
182 | + /** |
|
183 | + * @param string $urlParam |
|
184 | + */ |
|
179 | 185 | public static function handleThumbnailLink ($urlParam, $height) { |
180 | 186 | global $config; |
181 | 187 | |
@@ -195,6 +201,10 @@ discard block |
||
195 | 201 | return $urlParam; |
196 | 202 | } |
197 | 203 | |
204 | + /** |
|
205 | + * @param string $type |
|
206 | + * @param string $filename |
|
207 | + */ |
|
198 | 208 | public static function getLink ($book, $type, $mime, $rel, $filename, $idData, $title = NULL, $height = NULL, $view = false) |
199 | 209 | { |
200 | 210 | global $config; |