PHP Класс Trean_View_BookmarkList, horde

Copyright 2011-2016 Horde LLC (http://www.horde.org/) See the enclosed file LICENSE for license information (BSD). If you did not did not receive this file, see http://www.horde.org/licenses/bsdl.php.
Автор: Michael J Rubinsky ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_bookmarks array The loaded bookmarks.
$_browser Trean_TagBrowser Tag Browser
$_noSearch boolean Flag to indicate we have an empty search.
$_page integer Current page
$_perPage integer Bookmarks to display per page
$_showTagBrowser boolean Flag to indicate whether or not to show the tag browser

Открытые методы

Метод Описание
__construct ( $bookmarks = null, $browser = null ) Const'r
hasBookmarks ( ) : boolean Returns whether bookmarks currently exist.
render ( $title = null ) Renders the view.
showTagBrowser ( $showTagBrowser ) Toggle showing of the tag browser

Защищенные методы

Метод Описание
_getBookmarkList ( ) : string Returns the HTML to display a bookmark list.
_getBookmarks ( ) Loads the bookmarks from the backend.
_getRelatedTags ( ) : string Get HTML to display the related tags links.
_getTagTrail ( ) : string Get HTML to represent the currently selected tags.
_linkRemoveTag ( string $tag ) : string Get HTML for a link to remove a tag from the current search.

Описание методов

__construct() публичный Метод

Const'r
public __construct ( $bookmarks = null, $browser = null )

_getBookmarkList() защищенный Метод

Returns the HTML to display a bookmark list.
protected _getBookmarkList ( ) : string
Результат string Bookmark list HTML.

_getBookmarks() защищенный Метод

Loads the bookmarks from the backend.
protected _getBookmarks ( )

_getRelatedTags() защищенный Метод

Get HTML to display the related tags links.
protected _getRelatedTags ( ) : string
Результат string

_getTagTrail() защищенный Метод

Get HTML to represent the currently selected tags.
protected _getTagTrail ( ) : string
Результат string

_linkRemoveTag() защищенный Метод

Get HTML for a link to remove a tag from the current search.
protected _linkRemoveTag ( string $tag ) : string
$tag string The tag we want the link for.
Результат string

hasBookmarks() публичный Метод

Returns whether bookmarks currently exist.
public hasBookmarks ( ) : boolean
Результат boolean True if there exist any bookmarks in the backend.

render() публичный Метод

Renders the view.
public render ( $title = null )

showTagBrowser() публичный Метод

Toggle showing of the tag browser
public showTagBrowser ( $showTagBrowser )

Описание свойств

$_bookmarks защищенное свойство

The loaded bookmarks.
protected array $_bookmarks
Результат array

$_browser защищенное свойство

Tag Browser
protected Trean_TagBrowser $_browser
Результат Trean_TagBrowser

$_noSearch защищенное свойство

Flag to indicate we have an empty search.
protected bool $_noSearch
Результат boolean

$_page защищенное свойство

Current page
protected int $_page
Результат integer

$_perPage защищенное свойство

Bookmarks to display per page
protected int $_perPage
Результат integer

$_showTagBrowser защищенное свойство

Flag to indicate whether or not to show the tag browser
protected bool $_showTagBrowser
Результат boolean