Method | Description | |
---|---|---|
clear_all_notices ( ) | Clear all notices including persistent ones | |
get_instance ( ) : |
Returns the *Singleton* instance of this class. | |
get_notices ( string $context = '' ) : array | Fetch an array of notices messages | |
set_notices ( string $context, array $messages, boolean $persistent = true ) | Set an array of notice messages for a specific context |
Method | Description | |
---|---|---|
__construct ( ) | Protected constructor to prevent creating a new instance of the *Singleton* via the new operator from outside of this class. |
Method | Description | |
---|---|---|
__clone ( ) | Private clone method to prevent cloning of the instance of the *Singleton* instance. | |
__wakeup ( ) | Private unserialize method to prevent unserializing of the *Singleton* instance. | |
get_all_notices ( ) : array | Get both standard and persistent notices | |
get_persistent_notices ( ) : array | Load the persistent notices from the database |
protected __construct ( ) |
public clear_all_notices ( ) |
public static get_instance ( ) : |
||
return | The *Singleton* instance. |
public get_notices ( string $context = '' ) : array | ||
$context | string | The context that you'd like the messages for |
return | array | The array of notice messages |