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 license@zend.com so we can send you a copy immediately.
boolean $_connected = 'true'Connected is true if we have a reference to a live Zend_Queue_Adapter_AdapterInterface object.
This is false after the Message has been deserialized.
Detailsarray $_data = 'array'The data for the queue message
Detailsstring $_messageClass = 'Zend_Queue_Message'Zend_Queue_Message class name
Detailsinteger $_pointer = '0'Iterator pointer.
DetailsZend_Queue_Adapter_AdapterInterface $_queue = 'null'Zend_Queue_Adapter_AdapterInterface parent class or instance
Detailsstring $_queueClass = 'null'Name of the class of the Zend_Queue_Adapter_AdapterInterface object.
Details__construct(
array $options
=
array
)
:
voidConstructor
Details__sleep(
)
:
arrayStore queue and data in serialized object
Details__wakeup(
)
:
voidSetup to do on wakeup.
A de-serialized Message should not be assumed to have access to a live queue connection, so set _connected = false.
Detailscount(
)
:
integerReturns the number of elements in the collection.
Implements Countable::count()
Detailscurrent(
)
:
Zend_Queue_MessageReturn the current element.
Similar to the current() function for arrays in PHP Required by interface Iterator.
DetailsgetQueue(
)
:
Zend_Queue|nullReturns the queue object, or null if this is disconnected message set
DetailsgetQueueClass(
)
:
stringQuery the class name of the Queue object for which this Message was created.
Detailskey(
)
:
integerReturn the identifying key of the current element.
Similar to the key() function for arrays in PHP. Required by interface Iterator.
Detailsnext(
)
:
voidMove forward to next element.
Similar to the next() function for arrays in PHP. Required by interface Iterator.
Detailsrewind(
)
:
voidRewind the Iterator to the first element.
Similar to the reset() function for arrays in PHP. Required by interface Iterator.
DetailssetQueue(
Zend_Queue_Adapter_AdapterInterface $queue
)
:
booleanSet the queue object, to re-establish a live connection to the queue for a Message that has been de-serialized.
DetailstoArray(
)
:
arrayReturns all data as an array.
Used for debugging.
Detailsvalid(
)
:
boolCheck if there is a current element after calls to rewind() or next().
Used to check if we've iterated to the end of the collection. Required by interface Iterator.
Details