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

detachClassBehavior() публичный статический Метод

PHP 5.3 uses Late Static Binding to derive the static class upon which this method is called.
С версии: 3.2.3
public static detachClassBehavior ( $name, $class = null, $priority = false )
$name the key of the class behavior
$class string class on which to attach this behavior. Defaults to null.
$priority numeric|null|false priority. false is any priority, null is default {@link TPriorityList} priority, and numeric is a specific priority.
    public static function detachClassBehavior($name, $class = null, $priority = false)
    {
        if (!$class && function_exists('get_called_class')) {
            $class = get_called_class();
        }
        if (!$class) {
            throw new TInvalidOperationException('component_no_class_provided_nor_late_binding');
        }
        $class = strtolower($class);
        if (!is_string($name)) {
            $name = get_class($name);
        }
        if (empty(self::$_um[$class]) || !isset(self::$_um[$class][$name])) {
            return false;
        }
        $param = self::$_um[$class][$name];
        $behavior = $param->getBehavior();
        unset(self::$_um[$class][$name]);
        $behaviorObject = is_string($behavior) ? new $behavior() : $behavior;
        return $behaviorObject->raiseEvent('fxDetachClassBehavior', null, $param);
    }