@@ -39,6 +39,9 @@ discard block |
||
| 39 | 39 | /** @var null|Entry[] */ |
| 40 | 40 | private $customValues = NULL; |
| 41 | 41 | |
| 42 | + /** |
|
| 43 | + * @param string $pdatatype |
|
| 44 | + */ |
|
| 42 | 45 | protected function __construct($pcustomId, $pdatatype) |
| 43 | 46 | { |
| 44 | 47 | $this->columnTitle = self::getTitleByCustomID($pcustomId); |
@@ -147,7 +150,7 @@ discard block |
||
| 147 | 150 | /** |
| 148 | 151 | * Encode a value of this column ready to be displayed in an HTML document |
| 149 | 152 | * |
| 150 | - * @param integer|string $value |
|
| 153 | + * @param string $value |
|
| 151 | 154 | * @return string |
| 152 | 155 | */ |
| 153 | 156 | public function encodeHTMLValue($value) |
@@ -277,7 +280,7 @@ discard block |
||
| 277 | 280 | /** |
| 278 | 281 | * Get a CustomColumn for a specified (by ID) value |
| 279 | 282 | * |
| 280 | - * @param string|integer $id the id of the searched value |
|
| 283 | + * @param integer $id the id of the searched value |
|
| 281 | 284 | * @return CustomColumn |
| 282 | 285 | */ |
| 283 | 286 | abstract public function getCustom($id); |
@@ -36,6 +36,9 @@ |
||
| 36 | 36 | return self::getEntryArray (self::SQL_ALL_RATINGS, array ()); |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | + /** |
|
| 40 | + * @param string $query |
|
| 41 | + */ |
|
| 39 | 42 | public static function getEntryArray ($query, $params) { |
| 40 | 43 | list (, $result) = parent::executeQuery ($query, self::RATING_COLUMNS, "", $params, -1); |
| 41 | 44 | $entryArray = array(); |
@@ -36,6 +36,9 @@ |
||
| 36 | 36 | return self::getEntryArray (self::SQL_ALL_RATINGS, array ()); |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | + /** |
|
| 40 | + * @param string $query |
|
| 41 | + */ |
|
| 39 | 42 | public static function getEntryArray ($query, $params) { |
| 40 | 43 | list (, $result) = parent::executeQuery ($query, self::RATING_COLUMNS, "", $params, -1); |
| 41 | 44 | $entryArray = array(); |
@@ -46,6 +46,10 @@ |
||
| 46 | 46 | return Base::getEntryArrayWithBookNumber (self::SQL_ALL_TAGS, self::TAG_COLUMNS, array (), "Tag"); |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | + /** |
|
| 50 | + * @param string $query |
|
| 51 | + * @param integer $numberPerPage |
|
| 52 | + */ |
|
| 49 | 53 | public static function getAllTagsByQuery($query, $n, $database = NULL, $numberPerPage = NULL) { |
| 50 | 54 | $columns = "tags.id as id, tags.name as name, (select count(*) from books_tags_link where tags.id = tag) as count"; |
| 51 | 55 | $sql = 'select {0} from tags where upper (tags.name) like ? {1} order by tags.name'; |