PHP Class Elgg\Upgrade\Result

Afficher le fichier Open project: elgg/elgg Class Usage Examples

Méthodes publiques

Méthode Description
addError ( string $message ) : void Add new error message to the batch
addFailures ( integer $num = 1 ) : void Increment failure count
addSuccesses ( integer $num = 1 ) : void Set an item (or items) as successfully upgraded
getErrors ( ) : array Get error messages
getFailureCount ( ) Get count of failures within the current batch
getSuccessCount ( ) Get count of successfully upgraded items within the current batch

Method Details

addError() public méthode

Add new error message to the batch
public addError ( string $message ) : void
$message string Error message
Résultat void

addFailures() public méthode

This must be called every time an item fails to get upgraded.
public addFailures ( integer $num = 1 ) : void
$num integer Number of items (defaults to 1)
Résultat void

addSuccesses() public méthode

Set an item (or items) as successfully upgraded
public addSuccesses ( integer $num = 1 ) : void
$num integer Amount if items (defaults to one)
Résultat void

getErrors() public méthode

Get error messages
public getErrors ( ) : array
Résultat array $errors Array of error messages

getFailureCount() public méthode

Get count of failures within the current batch
public getFailureCount ( )

getSuccessCount() public méthode

Get count of successfully upgraded items within the current batch
public getSuccessCount ( )