API Documentation

Queue/Message/Iterator.php

Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Queue
subpackage
Message
version
$Id: Iterator.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Queue_Message_Iterator

Description

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.

Zend_Queue_Message_Iterator

Implements
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Queue
subpackage
Message
Properties
$_data
$_connected
$_queue
$_queueClass
$_messageClass
$_pointer
Methods
__construct
__sleep
__wakeup
toArray
getQueue
setQueue
getQueueClass
rewind
current
key
next
valid
count

Description

Properties

$_connected

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.

Details

$_connected
boolean
visibility
protected
default
true
final
false
static
false

$_data

array $_data = 'array'

The data for the queue message

Details

$_data
array
visibility
protected
default
array
final
false
static
false

$_messageClass

string $_messageClass = 'Zend_Queue_Message'

Zend_Queue_Message class name

Details

$_messageClass
string
visibility
protected
default
Zend_Queue_Message
final
false
static
false

$_pointer

integer $_pointer = '0'

Iterator pointer.

Details

$_pointer
integer
visibility
protected
default
0
final
false
static
false

$_queue

Zend_Queue_Adapter_AdapterInterface $_queue = 'null'

Zend_Queue_Adapter_AdapterInterface parent class or instance

Details

$_queue
Zend_Queue_Adapter_AdapterInterface
visibility
protected
default
null
final
false
static
false

$_queueClass

string $_queueClass = 'null'

Name of the class of the Zend_Queue_Adapter_AdapterInterface object.

Details

$_queueClass
string
visibility
protected
default
null
final
false
static
false

Methods

__construct

__construct( array $options = array ) : void

Constructor

Arguments
$options
array
('queue', 'messageClass', 'data'=>array());
Details
visibility
public
final
false
static
false

__sleep

__sleep( ) : array

Store queue and data in serialized object

Output
array
Details
visibility
public
final
false
static
false

__wakeup

__wakeup( ) : void

Setup to do on wakeup.

A de-serialized Message should not be assumed to have access to a live queue connection, so set _connected = false.

Details
visibility
public
final
false
static
false

count

count( ) : integer

Returns the number of elements in the collection.

Implements Countable::count()

Output
integer
Details
visibility
public
final
false
static
false

current

current( ) : Zend_Queue_Message

Return the current element.

Similar to the current() function for arrays in PHP Required by interface Iterator.

Output
Zend_Queue_Message
current element from the collection
Details
visibility
public
final
false
static
false

getQueue

getQueue( ) : Zend_Queue|null

Returns the queue object, or null if this is disconnected message set

Output
Zend_Queue|null
Details
visibility
public
final
false
static
false

getQueueClass

getQueueClass( ) : string

Query the class name of the Queue object for which this Message was created.

Output
string
Details
visibility
public
final
false
static
false

key

key( ) : integer

Return the identifying key of the current element.

Similar to the key() function for arrays in PHP. Required by interface Iterator.

Output
integer
Details
visibility
public
final
false
static
false

next

next( ) : void

Move forward to next element.

Similar to the next() function for arrays in PHP. Required by interface Iterator.

Details
visibility
public
final
false
static
false

rewind

rewind( ) : void

Rewind the Iterator to the first element.

Similar to the reset() function for arrays in PHP. Required by interface Iterator.

Details
visibility
public
final
false
static
false

setQueue

setQueue( Zend_Queue_Adapter_AdapterInterface $queue ) : boolean

Set the queue object, to re-establish a live connection to the queue for a Message that has been de-serialized.

Arguments
$queue
Zend_Queue_Adapter_AdapterInterface
Output
boolean
Details
visibility
public
final
false
static
false
throws

toArray

toArray( ) : array

Returns all data as an array.

Used for debugging.

Output
array
Details
visibility
public
final
false
static
false

valid

valid( ) : bool

Check 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.

Output
bool
False if there's nothing more to iterate over
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.