Implements interfaces:
TStack class
TStack implements a stack.
The typical stack operations are implemented, which include push(), pop() and peek(). In addition, contains() can be used to check if an item is contained in the stack. To obtain the number of the items in the stack, check the Count property.
Items in the stack may be traversed using foreach as follows,
- foreach($stack as $item) ...
Located in /Collections/TStack.php (line 34)
TComponent | --TStack
Constructor.
Initializes the stack with an array or an iterable object.
Removes all items in the stack.
Copies iterable data into the stack.
Note, existing data in the list will be cleared first.
Returns the number of items in the stack.
This method is required by Countable interface.
Returns an iterator for traversing the items in the stack.
This method is required by the interface IteratorAggregate.
Returns the item at the top of the stack.
Unlike pop(), this method does not remove the item from the stack.
Pops up the item at the top of the stack.
Pushes an item into the stack.
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:36:20 -0400 by phpDocumentor 1.3.0RC4