public function set($name, $value, $where = '')
    {
        if (($name && $this->canSetProperty($name)) || strpos($name, 'on ') === 0 || strpos($name, 'as ') === 0) {
            parent::__set($name, $value);
        } else {
            $this->setItem($name, $value, $where);
        }
    }
public function set($name, $value, $where = '')
    {
        if (($name && $this->canSetProperty($name)) || strpos($name, 'on ') === 0 || strpos($name, 'as ') === 0) {
            parent::__set($name, $value);
        } else {
            $this->setItem($name, $value, $where);
        }
    }
public function set ( $ name , $ value , $ where = '' ) { if ( ( $ name && $ this -> canSetProperty ( $ name ) ) || strpos ( $ name , 'on ' ) === 0 || strpos ( $ name , 'as ' ) === 0 ) { parent :: __set ( $ name , $ value ) ; } else { $ this -> setItem ( $ name , $ value , $ where ) ; } }
Sets an item. Silently resets if already exists.
@param int|string   $name
@param mixed        $value the element value
@param string|array $where where to put, see [[setItem()]]
@see setItem()
Sets an item . Silently resets if already exists .