Prado\TComponent::canSetProperty PHP Метод

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

A property can be written if the class has a setter method for the property name. Note, property name is case-insensitive. This also checks for setjs. When enabled, it loops through all active behaviors for the set property when undefined by the object.
public canSetProperty ( $name ) : boolean
Результат boolean whether the property can be written
    public function canSetProperty($name)
    {
        if (method_exists($this, 'set' . $name) || method_exists($this, 'setjs' . $name)) {
            return true;
        } else {
            if ($this->_m !== null && $this->_behaviorsenabled) {
                foreach ($this->_m->toArray() as $behavior) {
                    if ((!$behavior instanceof IBehavior || $behavior->getEnabled()) && $behavior->canSetProperty($name)) {
                        return true;
                    }
                }
            }
        }
        return false;
    }