protected function _getBookmarks()
{
if (!is_null($this->_bookmarks)) {
return;
}
// @TODO: paging
if ($this->_noSearch) {
$this->_bookmarks = $GLOBALS['trean_gateway']->listBookmarks($GLOBALS['prefs']->getValue('sortby'), $GLOBALS['prefs']->getValue('sortdir'), $this->_page, $this->_perPage);
} else {
$this->_bookmarks = $this->_browser->getSlice($this->_page, $this->_perPage);
}
}