Documentation

Mnemo_View_List
in package

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.

Tags
author

Michael J Rubinsky mrubinsk@horde.org

category

Horde

license

http://www.horde.org/licenses/bsdl.php BSD

Table of Contents

$_baseurl  : Horde_Url
Baseurl
$_browser  : Mnemo_TagBrowser
Tag browser
$_haveSearch  : bool
Flag to indicate if we have a search.
$_notes  : array<string|int, mixed>
The loaded notes.
$_showTagBrowser  : bool
Flag to indicate whether or not to show the tag browser
$_title  : string
Page title
$_vars  : Horde_Variables
Horde_Variables
__construct()  : Nag_View_List
Const'r
render()  : string
Renders the view.
_checkSortValue()  : mixed
Helper to check/update the sort prefs
_doSearch()  : mixed
Perform search
_getRelatedTags()  : string
Get HTML to display the related tags links.
_getTagTrail()  : string
Get HTML to represent the currently selected tags.
_handleActions()  : mixed
Helper to handle any incoming actions.
_linkAddTag()  : string
Get HTML for a link to add a new tag to the current search.
_linkRemoveTag()  : string
Get HTML for a link to remove a tag from the current search.
_loadNotes()  : mixed
Load the full, sorted task list.

Properties

$_baseurl

Baseurl

protected Horde_Url $_baseurl

$_haveSearch

Flag to indicate if we have a search.

protected bool $_haveSearch = \false

$_notes

The loaded notes.

protected array<string|int, mixed> $_notes

$_showTagBrowser

Flag to indicate whether or not to show the tag browser

protected bool $_showTagBrowser = \true

$_title

Page title

protected string $_title

$_vars

Horde_Variables

protected Horde_Variables $_vars

Methods

__construct()

Const'r

public __construct(Horde_Variables $vars) : Nag_View_List
Parameters
$vars : Horde_Variables

Variables for the view.

Return values
Nag_View_List

render()

Renders the view.

public render(Horde_PageOutput $output) : string
Parameters
$output : Horde_PageOutput

The output object.

Return values
string

The HTML needed to render the view.

_checkSortValue()

Helper to check/update the sort prefs

protected _checkSortValue() : mixed
Return values
mixed

_doSearch()

Perform search

protected _doSearch() : mixed
Tags
throws
Mnemo_Exception
Return values
mixed

_getRelatedTags()

Get HTML to display the related tags links.

protected _getRelatedTags() : string
Return values
string

_getTagTrail()

Get HTML to represent the currently selected tags.

protected _getTagTrail() : string
Return values
string

_handleActions()

Helper to handle any incoming actions.

protected _handleActions([mixed $action = null ]) : mixed
Parameters
$action : mixed = null
Return values
mixed

_linkAddTag()

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

protected _linkAddTag(string $tag) : string
Parameters
$tag : string

The tag we want to add.

Return values
string

_linkRemoveTag()

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

protected _linkRemoveTag(string $tag) : string
Parameters
$tag : string

The tag we want the link for.

Return values
string

_loadNotes()

Load the full, sorted task list.

protected _loadNotes() : mixed
Return values
mixed

Search results