@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | |
| 86 | 86 | /** |
| 87 | 87 | * @brief Check if an URL is bookmarked |
| 88 | - * @param $url Url of a possible bookmark |
|
| 88 | + * @param string $url Url of a possible bookmark |
|
| 89 | 89 | * @param $userId UserId |
| 90 | 90 | * @param IDb $db Database Interface |
| 91 | 91 | * @return boolean if the url is already bookmarked |
@@ -187,6 +187,12 @@ discard block |
||
| 187 | 187 | return $bookmarks; |
| 188 | 188 | } |
| 189 | 189 | |
| 190 | + /** |
|
| 191 | + * @param string $sql |
|
| 192 | + * @param string[] $params |
|
| 193 | + * @param boolean $filterTagOnly |
|
| 194 | + * @param string $tagFilterConjunction |
|
| 195 | + */ |
|
| 190 | 196 | private static function findBookmarksBuildFilter(&$sql, &$params, $filters, $filterTagOnly, $tagFilterConjunction, $CONFIG_DBTYPE) { |
| 191 | 197 | $tagOrSearch = false; |
| 192 | 198 | $connectWord = 'AND'; |
@@ -371,7 +377,7 @@ discard block |
||
| 371 | 377 | * @param array $tags Simple array of tags to qualify the bookmark (different tags are taken from values) |
| 372 | 378 | * @param string $description A longer description about the bookmark |
| 373 | 379 | * @param boolean $is_public True if the bookmark is publishable to not registered users |
| 374 | - * @return null |
|
| 380 | + * @return null|integer |
|
| 375 | 381 | */ |
| 376 | 382 | public static function editBookmark($userid, IDb $db, $id, $url, $title, $tags = array(), $description = '', $is_public = false) { |
| 377 | 383 | |
@@ -423,7 +429,7 @@ discard block |
||
| 423 | 429 | * @param string $title Name of the bookmark |
| 424 | 430 | * @param array $tags Simple array of tags to qualify the bookmark (different tags are taken from values) |
| 425 | 431 | * @param string $description A longer description about the bookmark |
| 426 | - * @param boolean $public True if the bookmark is publishable to not registered users |
|
| 432 | + * @param boolean $is_public True if the bookmark is publishable to not registered users |
|
| 427 | 433 | * @return int The id of the bookmark created |
| 428 | 434 | */ |
| 429 | 435 | public static function addBookmark($userid, IDb $db, $url, $title, $tags = array(), $description = '', $is_public = false) { |
@@ -593,7 +599,7 @@ discard block |
||
| 593 | 599 | |
| 594 | 600 | /** |
| 595 | 601 | * @brief Seperate Url String at comma charachter |
| 596 | - * @param $line String of Tags |
|
| 602 | + * @param string $line String of Tags |
|
| 597 | 603 | * @return array Array of Tags |
| 598 | 604 | * */ |
| 599 | 605 | public static function analyzeTagRequest($line) { |