@@ -47,6 +47,10 @@ |
||
| 47 | 47 | return Base::getEntryArrayWithBookNumber (self::SQL_ALL_TAGS, self::TAG_COLUMNS, array (), "Tag"); |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | + /** |
|
| 51 | + * @param string $query |
|
| 52 | + * @param integer $numberPerPage |
|
| 53 | + */ |
|
| 50 | 54 | public static function getAllTagsByQuery($query, $n, $database = NULL, $numberPerPage = NULL) { |
| 51 | 55 | $columns = "tags.id as id, tags.name as name, (select count(*) from books_tags_link where tags.id = tag) as count"; |
| 52 | 56 | $sql = 'select {0} from tags where upper (tags.name) like ? {1} order by tags.name'; |
@@ -128,6 +128,9 @@ discard block |
||
| 128 | 128 | /** @var null|Entry[] */ |
| 129 | 129 | private $customValues = NULL; |
| 130 | 130 | |
| 131 | + /** |
|
| 132 | + * @param string $pdatatype |
|
| 133 | + */ |
|
| 131 | 134 | protected function __construct($pcustomId, $pdatatype) |
| 132 | 135 | { |
| 133 | 136 | $this->columnTitle = self::getTitleByCustomID($pcustomId); |
@@ -236,7 +239,7 @@ discard block |
||
| 236 | 239 | /** |
| 237 | 240 | * Encode a value of this column ready to be displayed in an HTML document |
| 238 | 241 | * |
| 239 | - * @param integer|string $value |
|
| 242 | + * @param string $value |
|
| 240 | 243 | * @return string |
| 241 | 244 | */ |
| 242 | 245 | public function encodeHTMLValue($value) |
@@ -404,6 +407,9 @@ discard block |
||
| 404 | 407 | |
| 405 | 408 | class CustomColumnTypeText extends CustomColumnType |
| 406 | 409 | { |
| 410 | + /** |
|
| 411 | + * @param integer $pcustomId |
|
| 412 | + */ |
|
| 407 | 413 | protected function __construct($pcustomId) |
| 408 | 414 | { |
| 409 | 415 | parent::__construct($pcustomId, self::CUSTOM_TYPE_TEXT); |
@@ -502,6 +508,9 @@ discard block |
||
| 502 | 508 | |
| 503 | 509 | class CustomColumnTypeSeries extends CustomColumnType |
| 504 | 510 | { |
| 511 | + /** |
|
| 512 | + * @param integer $pcustomId |
|
| 513 | + */ |
|
| 505 | 514 | protected function __construct($pcustomId) |
| 506 | 515 | { |
| 507 | 516 | parent::__construct($pcustomId, self::CUSTOM_TYPE_SERIES); |
@@ -597,6 +606,9 @@ discard block |
||
| 597 | 606 | |
| 598 | 607 | class CustomColumnTypeEnumeration extends CustomColumnType |
| 599 | 608 | { |
| 609 | + /** |
|
| 610 | + * @param integer $pcustomId |
|
| 611 | + */ |
|
| 600 | 612 | protected function __construct($pcustomId) |
| 601 | 613 | { |
| 602 | 614 | parent::__construct($pcustomId, self::CUSTOM_TYPE_ENUM); |
@@ -692,6 +704,9 @@ discard block |
||
| 692 | 704 | |
| 693 | 705 | class CustomColumnTypeDate extends CustomColumnType |
| 694 | 706 | { |
| 707 | + /** |
|
| 708 | + * @param integer $pcustomId |
|
| 709 | + */ |
|
| 695 | 710 | protected function __construct($pcustomId) |
| 696 | 711 | { |
| 697 | 712 | parent::__construct($pcustomId, self::CUSTOM_TYPE_DATE); |
@@ -772,6 +787,9 @@ discard block |
||
| 772 | 787 | |
| 773 | 788 | class CustomColumnTypeRating extends CustomColumnType |
| 774 | 789 | { |
| 790 | + /** |
|
| 791 | + * @param integer $pcustomId |
|
| 792 | + */ |
|
| 775 | 793 | protected function __construct($pcustomId) |
| 776 | 794 | { |
| 777 | 795 | parent::__construct($pcustomId, self::CUSTOM_TYPE_RATING); |
@@ -882,6 +900,9 @@ discard block |
||
| 882 | 900 | +1 => "customcolumn.boolean.yes", // localize("customcolumn.boolean.yes") |
| 883 | 901 | ); |
| 884 | 902 | |
| 903 | + /** |
|
| 904 | + * @param integer $pcustomId |
|
| 905 | + */ |
|
| 885 | 906 | protected function __construct($pcustomId) |
| 886 | 907 | { |
| 887 | 908 | parent::__construct($pcustomId, self::CUSTOM_TYPE_BOOL); |
@@ -962,6 +983,9 @@ discard block |
||
| 962 | 983 | |
| 963 | 984 | class CustomColumnTypeInteger extends CustomColumnType |
| 964 | 985 | { |
| 986 | + /** |
|
| 987 | + * @param integer $pcustomId |
|
| 988 | + */ |
|
| 965 | 989 | protected function __construct($pcustomId) |
| 966 | 990 | { |
| 967 | 991 | parent::__construct($pcustomId, self::CUSTOM_TYPE_INT); |
@@ -1033,6 +1057,9 @@ discard block |
||
| 1033 | 1057 | |
| 1034 | 1058 | class CustomColumnTypeFloat extends CustomColumnType |
| 1035 | 1059 | { |
| 1060 | + /** |
|
| 1061 | + * @param integer $pcustomId |
|
| 1062 | + */ |
|
| 1036 | 1063 | protected function __construct($pcustomId) |
| 1037 | 1064 | { |
| 1038 | 1065 | parent::__construct($pcustomId, self::CUSTOM_TYPE_FLOAT); |
@@ -1104,6 +1131,9 @@ discard block |
||
| 1104 | 1131 | |
| 1105 | 1132 | class CustomColumnTypeComment extends CustomColumnType |
| 1106 | 1133 | { |
| 1134 | + /** |
|
| 1135 | + * @param integer $pcustomId |
|
| 1136 | + */ |
|
| 1107 | 1137 | protected function __construct($pcustomId) |
| 1108 | 1138 | { |
| 1109 | 1139 | parent::__construct($pcustomId, self::CUSTOM_TYPE_COMMENT); |