Method | Description | |
---|---|---|
deleteBookmark ( integer $bookmarkId ) | Delete a given bookmark. | |
deleteBookmarks ( array $bookmarkIds ) | Delete multiple bookmarks. | |
getAddUrl ( array $params = [] ) : string | Returns a URL that can be used in other applications to add the currently displayed page as a bookmark. If javascript and DOM is available, an overlay is used, if javascript and no DOM, then a pop-up is used and if no javascript is available a URL to Trean's add.php page is returned. | |
listTagInfo ( array $tags = null, string $user = null ) : array | Retrieve the list of used tag_names, tag_ids and the total number of resources that are linked to that tag. | |
searchTags ( array $names, integer $max = 10, integer $from, string $resource_type = '', string $user = null, boolean $raw = false ) : array | SearchTags API: Returns an application-agnostic array (useful for when doing a tag search across multiple applications) |
public deleteBookmark ( integer $bookmarkId ) | ||
$bookmarkId | integer | The ID of the bookmark to delete |
public deleteBookmarks ( array $bookmarkIds ) | ||
$bookmarkIds | array | The IDs of the bookmarks to delete |
public searchTags ( array $names, integer $max = 10, integer $from, string $resource_type = '', string $user = null, boolean $raw = false ) : array | ||
$names | array | An array of tag_names to search for. |
$max | integer | The maximum number of resources to return. |
$from | integer | The number of the resource to start with. |
$resource_type | string | The resource type [bookmark, ''] |
$user | string | Restrict results to resources owned by $user. |
$raw | boolean | Return the raw data? |
return | array | An array of results:
'title' - The title for this resource. 'desc' - A terse description of this resource. 'view_url' - The URL to view this resource. 'app' - The Horde application this resource belongs to. |