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

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

A behavior is only effective when it is enabled. Behaviors may implement the function: public function dyDisableBehavior($name,$behavior[, $chain]) { } to be executed when disableBehavior is called. All attached behaviors are notified through dyDisableBehavior.
С версии: 3.2.3
public disableBehavior ( $name )
    public function disableBehavior($name)
    {
        if ($this->_m != null && isset($this->_m[$name])) {
            if ($this->_m[$name] instanceof IBehavior) {
                $this->_m[$name]->setEnabled(false);
                $this->dyDisableBehavior($name, $this->_m[$name]);
                return true;
            }
            return false;
        }
        return null;
    }