NoticeManager_Model Class Reference

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.

Detailed Description

Models an array of Notice objects.


Member Function Documentation

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.

Parameters:
$offset Ignored, don't rely on this
$value Notice_Model

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables

Generated on 19 Dec 2018 for ninja by  doxygen 1.6.1