- Symphony 2.6.10
-
› assets
14 -
› boot
14 -
› core
23 -
› cryptography
4 -
› data-sources
6 -
› email-gateways
3 -
› events
3 -
› global
59 -
› interface
9 -
› toolkit
59 - Delegates92
- Deprecated27
Versions
- 2.7.9
- 2.7.8
- 2.7.7
- 2.7.6
- 2.7.5
- 2.7.3
- 2.7.2
- 2.7.10
- 2.7.1
- 2.7.0
- 2.6.9
- 2.6.8
- 2.6.7
- 2.6.6
- 2.6.5
- 2.6.4
- 2.6.3
- 2.6.2
- 2.6.11
- 2.6.10
- 2.6.1
- 2.6.0
- 2.5.3
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4
- 2.3.6
- 2.3.5
- 2.3.4
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2
Options
public class Alert
class.alert.php #11The Alert class drives the standard Symphony notices that appear at the top of the backend pages to alert the user of something. Their are three default alert styles, notice, error and success.
Constants
static string ERROR = 'error'
Represents an error, used when something has gone wrong during the previous action. It is blocking, in that the action has not completed successfully.
static string NOTICE = 'notice'
Represents a notice, usually used for non blocking alerts, just to inform that user that something has happened and they need to aware of it
static string SUCCESS = 'success'
Represents success, used when an action has completed successfully with no errors
Methods
void __construct(
$message, $type)
Constructor for the Alert class initialises some default variables
Parameters
string __get(
$name)
Magic accessor function to get the private variables from an Alert instance
Parameters
boolean __isset(
$name)
Magic isset function to check if a variable is set by ensuring it's not null
Parameters
Returns
True when set, false when not set.
void __set(
$name, $value)
Magic setter function to set the private variables of an Alert instance
Parameters
XMLElement asXML()
Generates as XMLElement representation of this Alert