Implements interfaces:
TQueue class
TQueue implements a queue.
The typical queue operations are implemented, which include enqueue(), dequeue() and peek(). In addition, contains() can be used to check if an item is contained in the queue. To obtain the number of the items in the queue, check the Count property.
Items in the queue may be traversed using foreach as follows,
- foreach($queue as $item) ...
Located in /Collections/TQueue.php (line 35)
TComponent | --TQueue
Constructor.
Initializes the queue with an array or an iterable object.
Removes all items in the queue.
Copies iterable data into the queue.
Note, existing data in the list will be cleared first.
Returns the number of items in the queue.
This method is required by Countable interface.
Removes and returns the object at the beginning of the queue.
Adds an object to the end of the queue.
Returns an iterator for traversing the items in the queue.
This method is required by the interface IteratorAggregate.
Returns the item at the top of the queue.
Unlike pop(), this method does not remove the item from the queue.
Inherited From TComponent
TComponent::addParsedObject()
TComponent::attachEventHandler()
TComponent::canGetProperty()
TComponent::canSetProperty()
TComponent::createdOnTemplate()
TComponent::detachEventHandler()
TComponent::evaluateExpression()
TComponent::evaluateStatements()
TComponent::getEventHandlers()
TComponent::getSubProperty()
TComponent::hasEvent()
TComponent::hasEventHandler()
TComponent::hasProperty()
TComponent::raiseEvent()
TComponent::setSubProperty()
TComponent::__get()
TComponent::__set()
Documentation generated on Mon, 21 Apr 2008 11:35:54 -0400 by phpDocumentor 1.3.0RC4