PHP Class Nag_TagBrowser, horde

Copyright 2012-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
Author: Michael J Rubinsky ([email protected])
Inheritance: extends Horde_Core_TagBrowser
Afficher le fichier Open project: horde/horde Class Usage Examples

Protected Properties

Свойство Type Description
$_app string Application that the tag browser is for.
$_completed integer The 'completed' filter value.
$_tasks Nag_Task Cache the last tag search to avoid having to retrieve the tags from the backend twice.

Méthodes publiques

Méthode Description
getSlice ( integer $page, integer $perpage = null ) : Nag_Task Fetch the matching resources that should appear on the current page
getTagTrail ( ) : Return Get breadcrumb style navigation html for choosen tags
setFilter ( integer $completed ) Set the Nag::VIEW_* constant for the browser.

Méthodes protégées

Méthode Description
_runSearch ( ) : array Override the default tag search in order to filter by the 'completed' filter.

Method Details

_runSearch() protected méthode

Override the default tag search in order to filter by the 'completed' filter.
protected _runSearch ( ) : array
Résultat array An array of task UIDs.

getSlice() public méthode

Fetch the matching resources that should appear on the current page
public getSlice ( integer $page, integer $perpage = null ) : Nag_Task
$page integer Start page.
$perpage integer Number of tasks per page.
Résultat Nag_Task A list of tasks.

getTagTrail() public méthode

Get breadcrumb style navigation html for choosen tags
public getTagTrail ( ) : Return
Résultat Return information useful for building a tag trail.

setFilter() public méthode

Set the Nag::VIEW_* constant for the browser.
public setFilter ( integer $completed )
$completed integer The Nag::VIEW_* constant to filter the results

Property Details

$_app protected_oe property

Application that the tag browser is for.
protected string $_app
Résultat string

$_completed protected_oe property

The 'completed' filter value.
protected int $_completed
Résultat integer

$_tasks protected_oe property

Cache the last tag search to avoid having to retrieve the tags from the backend twice.
protected Nag_Task $_tasks
Résultat Nag_Task