TAttributeCollection class
TAttributeCollection implements a collection for storing attribute names and values.
Besides all functionalities provided by TMap, TAttributeCollection allows you to get and set attribute values like getting and setting properties. For example, the following usages are all valid for a TAttributeCollection object:
They are equivalent to the following:
- $collection->Text='text';
- echo $collection->Text;
Note, attribute names are case-insensitive. They are converted to lower-case in the collection storage.
Located in /Collections/TAttributeCollection.php (line 45)
TComponent | --TMap | --TAttributeCollection
Adds an item into the map.
This overrides the parent implementation by converting the key to lower case first if CaseSensitive is false.
Determines whether a property can be read.
This method overrides parent implementation by returning true if the collection contains the named key.
Determines whether a property can be set.
This method overrides parent implementation by always returning true because you can always add a new value to the collection.
Returns whether the specified is in the map.
This overrides the parent implementation by converting the key to lower case first if CaseSensitive is false.
Determines whether a property is defined.
This method overrides parent implementation by returning true if the collection contains the named key.
Returns the item with the specified key.
This overrides the parent implementation by converting the key to lower case first if CaseSensitive is false.
Removes an item from the map by its key.
This overrides the parent implementation by converting the key to lower case first if CaseSensitive is false.
Returns a property value or an event handler list by property or event name.
This method overrides the parent implementation by returning a key value if the key exists in the collection.
Sets value of a component property.
This method overrides the parent implementation by adding a new key value to the collection.
Inherited From TMap
TMap::__construct()
TMap::add()
TMap::clear()
TMap::contains()
TMap::copyFrom()
TMap::count()
TMap::getCount()
TMap::getIterator()
TMap::getKeys()
TMap::getReadOnly()
TMap::itemAt()
TMap::mergeWith()
TMap::offsetExists()
TMap::offsetGet()
TMap::offsetSet()
TMap::offsetUnset()
TMap::remove()
TMap::setReadOnly()
TMap::toArray()
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:30:33 -0400 by phpDocumentor 1.3.0RC4