\Mnemo_View_List

Note list view.

Copyright 2016-2017 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.

Summary

Methods
Properties
Constants
__construct()
render()
No public properties found
No constants found
_checkSortValue()
_loadNotes()
_handleActions()
_doSearch()
_getRelatedTags()
_getTagTrail()
_linkRemoveTag()
_linkAddTag()
$_notes
$_title
$_showTagBrowser
$_browser
$_vars
$_haveSearch
$_baseurl
N/A
No private methods found
No private properties found
N/A

Properties

$_notes

$_notes : array

The loaded notes.

Type

array

$_title

$_title : string

Page title

Type

string

$_showTagBrowser

$_showTagBrowser : boolean

Flag to indicate whether or not to show the tag browser

Type

boolean

$_vars

$_vars : \Horde_Variables

Horde_Variables

Type

\Horde_Variables

$_haveSearch

$_haveSearch : boolean

Flag to indicate if we have a search.

Type

boolean

$_baseurl

$_baseurl : \Horde_Url

Baseurl

Type

\Horde_Url

Methods

__construct()

__construct(\Horde_Variables  $vars) : \Nag_View_List

Const'r

Parameters

\Horde_Variables $vars

Variables for the view.

Returns

\Nag_View_List

render()

render(\Horde_PageOutput  $output) : string

Renders the view.

Parameters

\Horde_PageOutput $output

The output object.

Returns

string —

The HTML needed to render the view.

_checkSortValue()

_checkSortValue() 

Helper to check/update the sort prefs

_loadNotes()

_loadNotes() 

Load the full, sorted task list.

_handleActions()

_handleActions(  $action = null) 

Helper to handle any incoming actions.

Parameters

$action

_doSearch()

_doSearch() 

Perform search

Throws

\Mnemo_Exception

_getRelatedTags()

_getRelatedTags() : string

Get HTML to display the related tags links.

Returns

string

_getTagTrail()

_getTagTrail() : string

Get HTML to represent the currently selected tags.

Returns

string

_linkRemoveTag()

_linkRemoveTag(string  $tag) : string

Get HTML for a link to remove a tag from the current search.

Parameters

string $tag

The tag we want the link for.

Returns

string

_linkAddTag()

_linkAddTag(string  $tag) : string

Get HTML for a link to add a new tag to the current search.

Parameters

string $tag

The tag we want to add.

Returns

string