PHP Class Horde_Core_LoginTasks_SystemTask_Upgrade, horde

Copyright 2011-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])
Inheritance: extends Horde_LoginTasks_SystemTask
Afficher le fichier Open project: horde/horde Class Usage Examples

Méthodes publiques

Свойство Type Description
$interval integer The interval at which to run the task.

Protected Properties

Свойство Type Description
$_app string The current application.
$_auth boolean Do these upgrade tasks require authentication?
$_toupgrade array The list of versions to upgrade.
$_versions array The list of versions which upgrades will occur.

Méthodes publiques

Méthode Description
__construct ( ) Constructor.
execute ( ) Perform upgrade tasks.
forceUpgrade ( ) Force re-run of all upgrade tasks.
skip ( )

Méthodes protégées

Méthode Description
_pref ( string $action ) : string Manage the upgrade preferences.
_upgrade ( string $version ) Perform upgrade tasks for a given version.

Method Details

__construct() public méthode

Constructor.
public __construct ( )

_pref() protected méthode

Manage the upgrade preferences.
protected _pref ( string $action ) : string
$action string Either 'get' or 'set'.
Résultat string The current version.

_upgrade() abstract protected méthode

For those running a git checkout, the system task for a given version will run continuously until that version is released. Code should be added to not convert already converted values.
abstract protected _upgrade ( string $version )
$version string A version string.

execute() public méthode

Perform upgrade tasks.
public execute ( )

forceUpgrade() public méthode

Force re-run of all upgrade tasks.
public forceUpgrade ( )

skip() public méthode

public skip ( )

Property Details

$_app protected_oe property

The current application.
protected string $_app
Résultat string

$_auth protected_oe property

Do these upgrade tasks require authentication?
protected bool $_auth
Résultat boolean

$_toupgrade protected_oe property

The list of versions to upgrade.
protected array $_toupgrade
Résultat array

$_versions protected_oe property

The list of versions which upgrades will occur.
protected array $_versions
Résultat array

$interval public_oe property

The interval at which to run the task.
public int $interval
Résultat integer