@@ -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 | $out = array (); |
| 157 | 160 | $result = parent::getDb ()->prepare('select id, format, name |
@@ -165,6 +168,9 @@ discard block |
||
| 165 | 168 | return $out; |
| 166 | 169 | } |
| 167 | 170 | |
| 171 | + /** |
|
| 172 | + * @param string $urlParam |
|
| 173 | + */ |
|
| 168 | 174 | public static function handleThumbnailLink ($urlParam, $height) { |
| 169 | 175 | global $config; |
| 170 | 176 | |
@@ -184,6 +190,10 @@ discard block |
||
| 184 | 190 | return $urlParam; |
| 185 | 191 | } |
| 186 | 192 | |
| 193 | + /** |
|
| 194 | + * @param string $type |
|
| 195 | + * @param string $filename |
|
| 196 | + */ |
|
| 187 | 197 | public static function getLink ($book, $type, $mime, $rel, $filename, $idData, $title = NULL, $height = NULL, $view = false) |
| 188 | 198 | { |
| 189 | 199 | global $config; |