PHP Interface Elgg\Upgrade\Batch

Since: 3.0.0
Afficher le fichier Open project: elgg/elgg

Méthodes publiques

Méthode Description
countItems ( ) : integer Gets the amount of items that need to be upgraded
isRequired ( ) : boolean Checks whether there are items that need to be upgraded.
run ( Result $result, integer $offset ) : Result Runs upgrade on a single batch of items

Method Details

countItems() public méthode

Gets the amount of items that need to be upgraded
public countItems ( ) : integer
Résultat integer

isRequired() public méthode

Checks whether there are items that need to be upgraded.
public isRequired ( ) : boolean
Résultat boolean

run() public méthode

Runs upgrade on a single batch of items
public run ( Result $result, integer $offset ) : Result
$result Result Object that holds results of the batch
$offset integer Starting point of the batch
Résultat Result Instance of \Elgg\Upgrade\Result