/** * Fetches unhandled notification events as objects, and returns them in an array. * * The optional $limit can be used to set an offset and a limit for the fetch. It is * passed to {@link eZPersistentObject::fetchObjectList()} and should be used in the same way. * * @static * @param array $limit An associative array with limitiations, can contain * - offset - Numerical value defining the start offset for the fetch * - length - Numerical value defining the max number of items to return * @return array An array of eZNotificationEvent objects */ static function fetchUnhandledList($limit = null) { return eZPersistentObject::fetchObjectList(eZNotificationEvent::definition(), null, array('status' => self::STATUS_CREATED), null, $limit, true); }