diff options
author | VirtualTam <virtualtam@flibidi.net> | 2018-12-03 01:22:45 +0100 |
---|---|---|
committer | VirtualTam <virtualtam@flibidi.net> | 2019-01-12 22:47:48 +0100 |
commit | 6696729b88e67504fdd333cbaab43a63c3617d86 (patch) | |
tree | f617e4108e0a2d41278935f4a2b4528f49e70c6d /application/bookmark/LinkDB.php | |
parent | f24896b237e40718fb6eaa2869592eb0855a47fd (diff) | |
download | Shaarli-6696729b88e67504fdd333cbaab43a63c3617d86.tar.gz Shaarli-6696729b88e67504fdd333cbaab43a63c3617d86.tar.zst Shaarli-6696729b88e67504fdd333cbaab43a63c3617d86.zip |
namespacing: \Shaarli\Bookmark\LinkFilter
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Diffstat (limited to 'application/bookmark/LinkDB.php')
-rw-r--r-- | application/bookmark/LinkDB.php | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/application/bookmark/LinkDB.php b/application/bookmark/LinkDB.php index 3b77422a..6041c088 100644 --- a/application/bookmark/LinkDB.php +++ b/application/bookmark/LinkDB.php | |||
@@ -6,8 +6,8 @@ use ArrayAccess; | |||
6 | use Countable; | 6 | use Countable; |
7 | use DateTime; | 7 | use DateTime; |
8 | use Iterator; | 8 | use Iterator; |
9 | use LinkFilter; | 9 | use Shaarli\Bookmark\LinkFilter; |
10 | use LinkNotFoundException; | 10 | use Shaarli\Bookmark\Exception\LinkNotFoundException; |
11 | use Shaarli\Exceptions\IOException; | 11 | use Shaarli\Exceptions\IOException; |
12 | use Shaarli\FileUtils; | 12 | use Shaarli\FileUtils; |
13 | 13 | ||
@@ -107,10 +107,10 @@ class LinkDB implements Iterator, Countable, ArrayAccess | |||
107 | * | 107 | * |
108 | * Checks if the datastore exists; else, attempts to create a dummy one. | 108 | * Checks if the datastore exists; else, attempts to create a dummy one. |
109 | * | 109 | * |
110 | * @param string $datastore datastore file path. | 110 | * @param string $datastore datastore file path. |
111 | * @param boolean $isLoggedIn is the user logged in? | 111 | * @param boolean $isLoggedIn is the user logged in? |
112 | * @param boolean $hidePublicLinks if true all links are private. | 112 | * @param boolean $hidePublicLinks if true all links are private. |
113 | * @param string $redirector link redirector set in user settings. | 113 | * @param string $redirector link redirector set in user settings. |
114 | * @param boolean $redirectorEncode Enable urlencode on redirected urls (default: true). | 114 | * @param boolean $redirectorEncode Enable urlencode on redirected urls (default: true). |
115 | */ | 115 | */ |
116 | public function __construct( | 116 | public function __construct( |
@@ -426,12 +426,12 @@ You use the community supported version of the original Shaarli project, by Seba | |||
426 | /** | 426 | /** |
427 | * Filter links according to search parameters. | 427 | * Filter links according to search parameters. |
428 | * | 428 | * |
429 | * @param array $filterRequest Search request content. Supported keys: | 429 | * @param array $filterRequest Search request content. Supported keys: |
430 | * - searchtags: list of tags | 430 | * - searchtags: list of tags |
431 | * - searchterm: term search | 431 | * - searchterm: term search |
432 | * @param bool $casesensitive Optional: Perform case sensitive filter | 432 | * @param bool $casesensitive Optional: Perform case sensitive filter |
433 | * @param string $visibility return only all/private/public links | 433 | * @param string $visibility return only all/private/public links |
434 | * @param string $untaggedonly return only untagged links | 434 | * @param bool $untaggedonly return only untagged links |
435 | * | 435 | * |
436 | * @return array filtered links, all links if no suitable filter was provided. | 436 | * @return array filtered links, all links if no suitable filter was provided. |
437 | */ | 437 | */ |
@@ -457,8 +457,8 @@ You use the community supported version of the original Shaarli project, by Seba | |||
457 | /** | 457 | /** |
458 | * Returns the list tags appearing in the links with the given tags | 458 | * Returns the list tags appearing in the links with the given tags |
459 | * | 459 | * |
460 | * @param array $filteringTags tags selecting the links to consider | 460 | * @param array $filteringTags tags selecting the links to consider |
461 | * @param string $visibility process only all/private/public links | 461 | * @param string $visibility process only all/private/public links |
462 | * | 462 | * |
463 | * @return array tag => linksCount | 463 | * @return array tag => linksCount |
464 | */ | 464 | */ |
@@ -500,7 +500,7 @@ You use the community supported version of the original Shaarli project, by Seba | |||
500 | * Rename or delete a tag across all links. | 500 | * Rename or delete a tag across all links. |
501 | * | 501 | * |
502 | * @param string $from Tag to rename | 502 | * @param string $from Tag to rename |
503 | * @param string $to New tag. If none is provided, the from tag will be deleted | 503 | * @param string $to New tag. If none is provided, the from tag will be deleted |
504 | * | 504 | * |
505 | * @return array|bool List of altered links or false on error | 505 | * @return array|bool List of altered links or false on error |
506 | */ | 506 | */ |