Prado\Collections\TAttributeCollection::add PHP Метод

add() публичный Метод

This overrides the parent implementation by converting the key to lower case first if CaseSensitive is false.
public add ( $key, $value )
    public function add($key, $value)
    {
        parent::add($this->_caseSensitive ? $key : strtolower($key), $value);
    }

Usage Example

Пример #1
0
 public function testRemove()
 {
     $collection = new TAttributeCollection();
     $collection->add('Property', 'value');
     $collection->remove('Property');
     self::assertEquals(0, count($collection));
 }