Models an array of Notice objects. More...
Public Member Functions | |
count () | |
Enables count($model);. | |
offsetExists ($offset) | |
Implements ArrayAccess. | |
offsetGet ($offset) | |
Implements ArrayAccess. | |
offsetSet ($offset, $value) | |
Handles the case of $notice_manager_model[] = $my_notice; Huge notice: the $offset does not mean diddly-squat, it will be overritten and I don't care about it. | |
offsetUnset ($offset) | |
Implements ArrayAccess. | |
getIterator () | |
Implements IteratorAggregate. |
Models an array of Notice objects.
NoticeManager_Model::offsetSet | ( | $ | offset, | |
$ | value | |||
) |
Handles the case of $notice_manager_model[] = $my_notice; Huge notice: the $offset does not mean diddly-squat, it will be overritten and I don't care about it.
Don't use it. Why? Users don't ever want duplicate notices, so we don't store them.
If we use $notice_manager[] = $info; $notice_manager[] = $warning with the same message, we keep the message but bump the type to a warning.
$offset | Ignored, don't rely on this | |
$value | Notice_Model |