EventManager/ResponseCollection.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_EventManager
\SplStack
- Implements
- Children
- \Zend_EventManager_ResponseCollection
Constants
Properties

int $mode = self::IT_MODE_KEEPMode used when iterating
self::IT_MODE_KEEPDetails- Type
- int
Methods

offsetExists(mixed $index) : boolArrayAccess: does an item exist at the specified offset?
| Name | Type | Description |
|---|---|---|
| $index | mixed |
| Type | Description |
|---|---|
| bool |

offsetGet(mixed $index) : mixedArrayAccess: get the item at the specified offset
| Name | Type | Description |
|---|---|---|
| $index | mixed |
| Type | Description |
|---|---|
| mixed |
| Exception | Description |
|---|---|
| \OutOfRangeException |

offsetSet(mixed $index, mixed $newval) : voidArrayAccess: add an item at the specified offset
| Name | Type | Description |
|---|---|---|
| $index | mixed | |
| $newval | mixed |

offsetUnset(mixed $index) : voidArrayAccess: unset the item at the specified offset
| Name | Type | Description |
|---|---|---|
| $index | mixed |
| Exception | Description |
|---|---|
| \OutOfRangeException |

pop() : mixedPop a node from the end of the stack
| Type | Description |
|---|---|
| mixed |
| Exception | Description |
|---|---|
| \RuntimeException |

setIteratorMode(int $mode) : voidSet the iterator mode
Must be set to one of IT_MODE_DELETE or IT_MODE_KEEP
| Name | Type | Description |
|---|---|---|
| $mode | int |
| Exception | Description |
|---|---|
| \InvalidArgumentException |
- Todo
- Currently, IteratorMode is ignored, as we use the default (keep); should this be implemented?

shift() : mixedShifts a node from the beginning of the list
| Type | Description |
|---|---|
| mixed |
| Exception | Description |
|---|---|
| \RuntimeException |

unserialize( $serialized) : voidUnserialize the storage
| Name | Type | Description |
|---|---|---|
| $serialized | string |

unshift(mixed $value) : voidUnshift a node onto the beginning of the list
| Name | Type | Description |
|---|---|---|
| $value | mixed |
\Zend_EventManager_ResponseCollection
Collection of signal handler return values
- Parent(s)
- \SplStack
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
Properties

int $mode = self::IT_MODE_KEEP
self::IT_MODE_KEEPDetails- Type
- int
- Inherited_from
- \SplStack::$$mode

false|array $stack = false
falseDetails- Type
- false | array
- Inherited_from
- \SplStack::$$stack
Methods

contains(mixed $value) : voidCheck if any of the responses match the given value.
| Name | Type | Description |
|---|---|---|
| $value | mixed | The value to look for among responses |

first() : mixedConvenient access to the first handler return value.
| Type | Description |
|---|---|
| mixed | The first handler return value |

last() : mixedConvenient access to the last handler return value.
If the collection is empty, returns null. Otherwise, returns value returned by last handler.
| Type | Description |
|---|---|
| mixed | The last handler return value |

offsetExists(mixed $index) : boolArrayAccess: does an item exist at the specified offset?
Inherited from: \SplStack::offsetExists()| Name | Type | Description |
|---|---|---|
| $index | mixed |
| Type | Description |
|---|---|
| bool |

offsetGet(mixed $index) : mixed
| Name | Type | Description |
|---|---|---|
| $index | mixed |
| Type | Description |
|---|---|
| mixed |
| Exception | Description |
|---|---|
| \OutOfRangeException |

offsetSet(mixed $index, mixed $newval) : void
| Name | Type | Description |
|---|---|---|
| $index | mixed | |
| $newval | mixed |

offsetUnset(mixed $index) : voidArrayAccess: unset the item at the specified offset
Inherited from: \SplStack::offsetUnset()| Name | Type | Description |
|---|---|---|
| $index | mixed |
| Exception | Description |
|---|---|
| \OutOfRangeException |

setIteratorMode(int $mode) : void
Must be set to one of IT_MODE_DELETE or IT_MODE_KEEP
| Name | Type | Description |
|---|---|---|
| $mode | int |
| Exception | Description |
|---|---|
| \InvalidArgumentException |

setStopped(bool $flag) : \Zend_EventManager_ResponseCollectionMark the collection as stopped (or its opposite)
| Name | Type | Description |
|---|---|---|
| $flag | bool |
| Type | Description |
|---|---|
| \Zend_EventManager_ResponseCollection |

stopped() : boolDid the last response provided trigger a short circuit of the stack?
| Type | Description |
|---|---|
| bool |