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

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

This is the method registered for all instanced objects should a class behavior be added after the class is instanced. Only when the class to which the behavior is being added is in this object's class hierarchy, via {@link getClassHierarchy}, is the behavior added to this instance.
С версии: 3.2.3
public fxAttachClassBehavior ( $sender, $param )
$sender the application
$param TClassBehaviorEventParameter
    public function fxAttachClassBehavior($sender, $param)
    {
        if (in_array($param->getClass(), $this->getClassHierarchy(true))) {
            return $this->attachBehavior($param->getName(), $param->getBehavior(), $param->getPriority());
        }
    }