@@ -144,6 +144,9 @@ discard block |
||
| 144 | 144 | return 'index.php' . $urlParam; |
| 145 | 145 | } |
| 146 | 146 | |
| 147 | + /** |
|
| 148 | + * @return string |
|
| 149 | + */ |
|
| 147 | 150 | public function getTitle () { |
| 148 | 151 | return $this->title; |
| 149 | 152 | } |
@@ -331,6 +334,9 @@ discard block |
||
| 331 | 334 | return reset ($reduced); |
| 332 | 335 | } |
| 333 | 336 | |
| 337 | + /** |
|
| 338 | + * @param string $extension |
|
| 339 | + */ |
|
| 334 | 340 | public function getFilePath ($extension, $idData = NULL, $relative = false) |
| 335 | 341 | { |
| 336 | 342 | if ($extension == "jpg") |
@@ -464,6 +470,9 @@ discard block |
||
| 464 | 470 | $this->getLinkArray (), $this); |
| 465 | 471 | } |
| 466 | 472 | |
| 473 | + /** |
|
| 474 | + * @param integer $database |
|
| 475 | + */ |
|
| 467 | 476 | public static function getBookCount($database = NULL) { |
| 468 | 477 | return parent::executeQuerySingle ('select count(*) from books', $database); |
| 469 | 478 | } |
@@ -512,7 +521,7 @@ discard block |
||
| 512 | 521 | } |
| 513 | 522 | |
| 514 | 523 | /** |
| 515 | - * @param $customColumn CustomColumn |
|
| 524 | + * @param CustomColumn $customColumn CustomColumn |
|
| 516 | 525 | * @param $id integer |
| 517 | 526 | * @param $n integer |
| 518 | 527 | * @return array |
@@ -552,6 +561,10 @@ discard block |
||
| 552 | 561 | return NULL; |
| 553 | 562 | } |
| 554 | 563 | |
| 564 | + /** |
|
| 565 | + * @param integer $database |
|
| 566 | + * @param integer $numberPerPage |
|
| 567 | + */ |
|
| 555 | 568 | public static function getBooksByQuery($query, $n, $database = NULL, $numberPerPage = NULL) { |
| 556 | 569 | $i = 0; |
| 557 | 570 | $critArray = array (); |
@@ -599,6 +612,9 @@ discard block |
||
| 599 | 612 | return $entryArray; |
| 600 | 613 | } |
| 601 | 614 | |
| 615 | + /** |
|
| 616 | + * @param integer $numberPerPage |
|
| 617 | + */ |
|
| 602 | 618 | public static function getBooksByStartingLetter($letter, $n, $database = NULL, $numberPerPage = NULL) { |
| 603 | 619 | return self::getEntryArray (self::SQL_BOOKS_BY_FIRST_LETTER, array ($letter . "%"), $n, $database, $numberPerPage); |
| 604 | 620 | } |
@@ -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); |