\Nag_View_List

Task list view.

Copyright 2011-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()
_handleActions()
_loadTasks()
_doSearch()
_doDeleteSmartList()
_getRelatedTags()
_getTagTrail()
_linkRemoveTag()
_linkAddTag()
$_tasks
$_title
$_showTagBrowser
$_browser
$_smartShare
$_vars
$_haveSearch
N/A
No private methods found
No private properties found
N/A

Properties

$_tasks

$_tasks : \Nag_Task

The loaded tasks.

Type

\Nag_Task

$_title

$_title : string

Page title

Type

string

$_showTagBrowser

$_showTagBrowser : boolean

Flag to indicate whether or not to show the tag browser

Type

boolean

$_smartShare

$_smartShare : \Horde_Share_Object_Base

Share representing the current smarlist (if being viewed).

Type

\Horde_Share_Object_Base

$_vars

$_vars : \Horde_Variables

Horde_Variables

Type

\Horde_Variables

$_haveSearch

$_haveSearch : boolean

Flag to indicate if we have a search.

Type

boolean

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

_handleActions()

_handleActions(  $action = null) 

Helper to handle any incoming actions.

Parameters

$action

_loadTasks()

_loadTasks(  $lists = null) 

Load the full, sorted task list.

Parameters

$lists

_doSearch()

_doSearch() 

Performs a Task search. self::_tasks is populated with the results.

Throws

\Nag_Exception

_doDeleteSmartList()

_doDeleteSmartList() 

Delete a SmartList.

_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