Свойство | Type | Description | |
---|---|---|---|
$session | ElggSession |
Méthode | Description | |
---|---|---|
__construct ( ElggSession $session ) | Constructor | |
addErrorMessage ( string | string[] $error ) : void | Display an error on next page load. | |
addSuccessMessage ( string | string[] $message ) : void | Display a system message on next page load. | |
count ( string $register_name = "" ) : integer | Counts the number of messages, either globally or in a particular register | |
dumpRegister ( string $register_name = '' ) : array | Empty and return the given register or all registers. In each case, the return value is a filtered version of the full registers array. | |
loadRegisters ( ) : |
Load the registers from the session | |
saveRegisters ( |
Save the registers to the session |
public __construct ( ElggSession $session ) | ||
$session | ElggSession | The Elgg session |
public addErrorMessage ( string | string[] $error ) : void | ||
$error | string | string[] | Error or errors to add |
Résultat | void |
public addSuccessMessage ( string | string[] $message ) : void | ||
$message | string | string[] | Message or messages to add |
Résultat | void |
public dumpRegister ( string $register_name = '' ) : array | ||
$register_name | string | The register. Empty string for all. |
Résultat | array | The array of registers dumped |
public loadRegisters ( ) : |
||
Résultat |
public saveRegisters ( |
||
$set | The set of registers | |
Résultat | void |