PHP Class Horde_LoginTasks, horde

Copyright 2001-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Author: Michael Slusarz ([email protected])
Afficher le fichier Open project: horde/horde Class Usage Examples

Protected Properties

Свойство Type Description
$_tasklist Horde_LoginTasks_Tasklist The Horde_LoginTasks_Tasklist object for this login.

Méthodes publiques

Méthode Description
__construct ( Horde_LoginTasks_Backend $backend ) Constructor.
displayTasks ( ) : array Generate the list of tasks that need to be displayed.
getLabels ( ) : array Labels for the class constants.
getLoginTasksUrl ( ) : string Generate the login tasks URL.
runTasks ( array $opts = [] ) : mixed Do operations needed for this login.
shutdown ( ) Tasks to run on session shutdown.

Méthodes protégées

Méthode Description
_createTaskList ( ) Creates the list of login tasks that are available for this session (stored in a Horde_LoginTasks_Tasklist object).

Method Details

__construct() public méthode

Constructor.
public __construct ( Horde_LoginTasks_Backend $backend )
$backend Horde_LoginTasks_Backend The backend to use.

_createTaskList() protected méthode

Creates the list of login tasks that are available for this session (stored in a Horde_LoginTasks_Tasklist object).
protected _createTaskList ( )

displayTasks() public méthode

This is the function called from the login tasks page every time it is loaded.
public displayTasks ( ) : array
Résultat array The list of tasks that need to be displayed.

getLabels() public static méthode

Labels for the class constants.
public static getLabels ( ) : array
Résultat array A mapping of constant to gettext string.

getLoginTasksUrl() public méthode

Generate the login tasks URL.
public getLoginTasksUrl ( ) : string
Résultat string The login tasks URL.

runTasks() public méthode

This function will generate the list of tasks to perform during this login and will redirect to the login tasks page if necessary. This is the function that should be called from the application upon login.
public runTasks ( array $opts = [] ) : mixed
$opts array Options: - confirmed: (array) The list of confirmed tasks. - url: (string) The URL to redirect to when finished. - user_confirmed: (boolean) If true, indicates that any pending actions have been confirmed by the user.
Résultat mixed Null in case no redirection took place, the return value from the backend redirect() call otherwise.

shutdown() public méthode

Tasks to run on session shutdown.
public shutdown ( )

Property Details

$_tasklist protected_oe property

The Horde_LoginTasks_Tasklist object for this login.
protected Horde_LoginTasks_Tasklist $_tasklist
Résultat Horde_LoginTasks_Tasklist