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])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_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