$_userManager
$_userManager : \Content_Users_Manager
Trean_Bookmarks handles basic management of bookmark storage.
newBookmark(array $properties, boolean $crawl = true) : \Trean_Bookmark
Create a new bookmark for the current user.
array | $properties | The bookmark property array. |
boolean | $crawl | If true (default) attempt to crawl the URL. |
listBookmarks( $sortby = 'title', integer $sortdir, integer $from, $count, string $userId = null) : array
List bookmarks, sorted and paged as specified.
$sortby | ||
integer | $sortdir | Direction of sort. |
integer | $from | Starting bookmark. |
$count | ||
string | $userId | List bookmarks for this userId. Defaults to $this->_userId. |
An array of Trean_Bookmark objects.
getBookmark(integer $id) : \Trean_Bookmark
Returns the bookmark corresponding to the given id.
integer | $id | The ID of the bookmark to retrieve. |
Trean_Exception
The bookmark object corresponding to the given name.
getBookmarks(array $ids, array $options = array()) : array
Returns the bookmarks corresponding to the given ids.
array | $ids | |
array | $options | An array of options:
|
An array of Trean_Bookmark objects.
removeBookmark(\Trean_Bookmark $bookmark)
Removes a Trean_Bookmark from the backend.
\Trean_Bookmark | $bookmark | The bookmark to remove. |
Trean_Exception