EventManager/ResponseCollection.php

Show: inherited
Table of Contents

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

Package: Default
Implements
Children
\Zend_EventManager_ResponseCollection

Constants

Constant  IT_MODE_DELETE = 1

Delete items during iteration

Constant  IT_MODE_KEEP = 0

Keep items during iteration

Properties

Propertyprotectedint $count = 0

Count of elements in the stack

Default value0Details
Type
int
Propertyprotectedarray $data = array()

Data represented by this stack

Default valuearray()Details
Type
array
Propertyprotectedint $mode = self::IT_MODE_KEEP

Mode used when iterating

Default valueself::IT_MODE_KEEPDetails
Type
int
Propertyprotectedfalse|array $stack = false

Sorted stack of values

Default valuefalseDetails
Type
false | array

Methods

methodpublicbottom() : mixed

Return last element in the stack

Returns
Type Description
mixed
methodpubliccount() : int

Countable: return count of items in the stack

Returns
Type Description
int
methodpubliccurrent() : mixed

Iterator: return current item in the stack

Returns
Type Description
mixed
methodpublicgetIteratorMode() : int

Get iteration mode

Returns
Type Description
int
methodpublicisEmpty() : bool

Is the stack empty?

Returns
Type Description
bool
methodpublickey() : mixed

Iterator: return key of current item in the stack

Returns
Type Description
mixed
methodpublicnext() : void

Iterator: advance pointer to next item in the stack

methodpublicoffsetExists(mixed $index) : bool

ArrayAccess: does an item exist at the specified offset?

Parameters
Name Type Description
$index mixed
Returns
Type Description
bool
methodpublicoffsetGet(mixed $index) : mixed

ArrayAccess: get the item at the specified offset

Parameters
Name Type Description
$index mixed
Returns
Type Description
mixed
Throws
Exception Description
\OutOfRangeException
methodpublicoffsetSet(mixed $index, mixed $newval) : void

ArrayAccess: add an item at the specified offset

Parameters
Name Type Description
$index mixed
$newval mixed
methodpublicoffsetUnset(mixed $index) : void

ArrayAccess: unset the item at the specified offset

Parameters
Name Type Description
$index mixed
Throws
Exception Description
\OutOfRangeException
methodpublicpop() : mixed

Pop a node from the end of the stack

Returns
Type Description
mixed
Throws
Exception Description
\RuntimeException
methodpublicprev() : void

Move the iterator to the previous node

Details
Todo
Does this need to be implemented?  
methodpublicpush(mixed $value) : void

Push an element to the list

Parameters
Name Type Description
$value mixed
methodpublicrewind() : void

Iterator: rewind to beginning of stack

methodpublicserialize() : string

Serialize the storage

Returns
Type Description
string
methodpublicsetIteratorMode(int $mode) : void

Set the iterator mode

Must be set to one of IT_MODE_DELETE or IT_MODE_KEEP

Parameters
Name Type Description
$mode int
Throws
Exception Description
\InvalidArgumentException
Details
Todo
Currently, IteratorMode is ignored, as we use the default (keep); should this be implemented?  
methodpublicshift() : mixed

Shifts a node from the beginning of the list

Returns
Type Description
mixed
Throws
Exception Description
\RuntimeException
methodpublictop() : mixed

Peek at the top node of the stack

Returns
Type Description
mixed
methodpublicunserialize( $serialized) : void

Unserialize the storage

Parameters
Name Type Description
$serialized

string

methodpublicunshift(mixed $value) : void

Unshift a node onto the beginning of the list

Parameters
Name Type Description
$value mixed
methodpublicvalid() : bool

Iterator: is the current pointer valid?

Returns
Type Description
bool

\Zend_EventManager_ResponseCollection

Package: Zend\EventManager

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

Constant  IT_MODE_DELETE = 1
inherited

Delete items during iteration

Inherited from: \SplStack::IT_MODE_DELETE
Inherited_from
\SplStack::IT_MODE_DELETE  
Constant  IT_MODE_KEEP = 0
inherited

Keep items during iteration

Inherited from: \SplStack::IT_MODE_KEEP
Inherited_from
\SplStack::IT_MODE_KEEP  

Properties

Propertyprotectedint $count = 0
inherited

Count of elements in the stack

Inherited from: \SplStack::$$count
Default value0Details
Type
int
Inherited_from
\SplStack::$$count  
Propertyprotectedarray $data = array()
inherited

Data represented by this stack

Inherited from: \SplStack::$$data
Default valuearray()Details
Type
array
Inherited_from
\SplStack::$$data  
Propertyprotectedint $mode = self::IT_MODE_KEEP
inherited

Mode used when iterating

Inherited from: \SplStack::$$mode
Default valueself::IT_MODE_KEEPDetails
Type
int
Inherited_from
\SplStack::$$mode  
Propertyprotectedfalse|array $stack = false
inherited

Sorted stack of values

Inherited from: \SplStack::$$stack
Default valuefalseDetails
Type
false | array
Inherited_from
\SplStack::$$stack  
Propertyprotected$stopped = false
Default valuefalseDetails
Type
n/a

Methods

methodpublicbottom() : mixed
inherited

Return last element in the stack

Inherited from: \SplStack::bottom()
Returns
Type Description
mixed
methodpubliccontains(mixed $value) : void

Check if any of the responses match the given value.

Parameters
Name Type Description
$value mixed

The value to look for among responses

methodpubliccount() : int
inherited

Countable: return count of items in the stack

Inherited from: \SplStack::count()
Returns
Type Description
int
methodpubliccurrent() : mixed
inherited

Iterator: return current item in the stack

Inherited from: \SplStack::current()
Returns
Type Description
mixed
methodpublicfirst() : mixed

Convenient access to the first handler return value.

Returns
Type Description
mixed The first handler return value
methodpublicgetIteratorMode() : int
inherited

Get iteration mode

Inherited from: \SplStack::getIteratorMode()
Returns
Type Description
int
methodpublicisEmpty() : bool
inherited

Is the stack empty?

Inherited from: \SplStack::isEmpty()
Returns
Type Description
bool
methodpublickey() : mixed
inherited

Iterator: return key of current item in the stack

Inherited from: \SplStack::key()
Returns
Type Description
mixed
methodpubliclast() : mixed

Convenient access to the last handler return value.

If the collection is empty, returns null. Otherwise, returns value returned by last handler.

Returns
Type Description
mixed The last handler return value
methodpublicnext() : void
inherited

Iterator: advance pointer to next item in the stack

Inherited from: \SplStack::next()
methodpublicoffsetExists(mixed $index) : bool
inherited

ArrayAccess: does an item exist at the specified offset?

Inherited from: \SplStack::offsetExists()
Parameters
Name Type Description
$index mixed
Returns
Type Description
bool
methodpublicoffsetGet(mixed $index) : mixed
inherited

ArrayAccess: get the item at the specified offset

Inherited from: \SplStack::offsetGet()
Parameters
Name Type Description
$index mixed
Returns
Type Description
mixed
Throws
Exception Description
\OutOfRangeException
methodpublicoffsetSet(mixed $index, mixed $newval) : void
inherited

ArrayAccess: add an item at the specified offset

Inherited from: \SplStack::offsetSet()
Parameters
Name Type Description
$index mixed
$newval mixed
methodpublicoffsetUnset(mixed $index) : void
inherited

ArrayAccess: unset the item at the specified offset

Inherited from: \SplStack::offsetUnset()
Parameters
Name Type Description
$index mixed
Throws
Exception Description
\OutOfRangeException
methodpublicpop() : mixed
inherited

Pop a node from the end of the stack

Inherited from: \SplStack::pop()
Returns
Type Description
mixed
Throws
Exception Description
\RuntimeException
methodpublicprev() : void
inherited

Move the iterator to the previous node

Inherited from: \SplStack::prev()
methodpublicpush(mixed $value) : void
inherited

Push an element to the list

Inherited from: \SplStack::push()
Parameters
Name Type Description
$value mixed
methodpublicrewind() : void
inherited

Iterator: rewind to beginning of stack

Inherited from: \SplStack::rewind()
methodpublicserialize() : string
inherited

Serialize the storage

Inherited from: \SplStack::serialize()
Returns
Type Description
string
methodpublicsetIteratorMode(int $mode) : void
inherited

Set the iterator mode

Inherited from: \SplStack::setIteratorMode()

Must be set to one of IT_MODE_DELETE or IT_MODE_KEEP

Parameters
Name Type Description
$mode int
Throws
Exception Description
\InvalidArgumentException
methodpublicsetStopped(bool $flag) : \Zend_EventManager_ResponseCollection

Mark the collection as stopped (or its opposite)

Parameters
Name Type Description
$flag bool
Returns
Type Description
\Zend_EventManager_ResponseCollection
methodpublicshift() : mixed
inherited

Shifts a node from the beginning of the list

Inherited from: \SplStack::shift()
Returns
Type Description
mixed
Throws
Exception Description
\RuntimeException
methodpublicstopped() : bool

Did the last response provided trigger a short circuit of the stack?

Returns
Type Description
bool
methodpublictop() : mixed
inherited

Peek at the top node of the stack

Inherited from: \SplStack::top()
Returns
Type Description
mixed
methodpublicunserialize( $serialized) : void
inherited

Unserialize the storage

Inherited from: \SplStack::unserialize()
Parameters
Name Type Description
$serialized

string

methodpublicunshift(mixed $value) : void
inherited

Unshift a node onto the beginning of the list

Inherited from: \SplStack::unshift()
Parameters
Name Type Description
$value mixed
methodpublicvalid() : bool
inherited

Iterator: is the current pointer valid?

Inherited from: \SplStack::valid()
Returns
Type Description
bool
Documentation was generated by phpDocumentor 2.0.0a8.