Message Class Reference
[Lib]
Success message class. More...
Inheritance diagram for Message:
Public Member Functions |
|
| is_error () | |
| Returns true, if status is an error.
|
|
| is_message () | |
| Kept for compatability. |
|
| is_ok () | |
| Indicates if there is an error or not.
|
|
| render ($policy=self::OUTPUT_HTML) | |
| Render status. |
|
Detailed Description
Success message class.
Used to indicate success
For the Status class, each text passed turns it into an error. The Message class however, allows to return a message on success, too
- Attention:
- Don't try to mix Status and Message, e.g. by merging a Message with a Status. The result will be definitely not meaningful, since neither of them can handle such a case.
Definition at line 250 of file status.cls.php.
Member Function Documentation
| Message::is_error | ( | ) |
Returns true, if status is an error.
- Returns:
- bool
Reimplemented from Status.
Definition at line 251 of file status.cls.php.
| Message::is_message | ( | ) |
| Message::is_ok | ( | ) |
Indicates if there is an error or not.
- Returns:
- Boolean
Reimplemented from Status.
Definition at line 255 of file status.cls.php.
| Message::render | ( | $ | policy =
self::OUTPUT_HTML |
) |
Render status.
- Returns:
- string
Reimplemented from Status.
Definition at line 259 of file status.cls.php.
00259 { 00260 $ret = $this->to_string($policy); 00261 if ($policy == self::OUTPUT_HTML) { 00262 $ret = html::success($ret); 00263 } 00264 return $ret; 00265 }
The documentation for this class was generated from the following file:
- gyro/core/lib/helpers/status.cls.php
