Trean_View_BookmarkList::_getBookmarks PHP Method

_getBookmarks() protected method

Loads the bookmarks from the backend.
protected _getBookmarks ( )
    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);
        }
    }