Example #1
0
 function offsetExists($name)
 {
     if (parent::offsetExists($name) || $this->filter->match($name)) {
         return true;
     }
     return false;
 }
Example #2
0
 function offsetSet($key, $value)
 {
     if ($this->isStronglyTyped() && !$value instanceof $this->_type) {
         throw new \Core\Exception('DataArray does not accept items of type: ' . get_class($value));
     }
     parent::offsetSet($key, $value);
 }
Example #3
0
 function offsetUnset($offset)
 {
     parent::offsetUnset($offset);
     if ($this->Parameters->exists('hash')) {
         $offset = $this->hash($offset);
     }
     $this->remove($offset);
 }
Example #4
0
 function __construct($name = null, array $attributes = null, Node $parent = null)
 {
     parent::__construct();
     if (is_string($name)) {
         $this->setName($name);
     }
     if ($parent instanceof Node) {
         $parent->_children->add($this);
     }
     if (is_array($attributes)) {
         $this->setAttributes($attributes);
     }
 }
Example #5
0
 public function offsetUnset($offset)
 {
     $this->dirty();
     parent::offsetUnset($offset);
 }
Example #6
0
 function insert($key, $value)
 {
     parent::insert($this->hash($key), $value);
 }
Example #7
0
 function __construct(\IO\Context $context)
 {
     $this->setContext($context);
     parent::__construct();
 }