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

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

This also works for global events. When behaviors are enabled, it will check for a behavior of the specified name, and also check the behavior for events and properties.
С версии: 3.2.3
public __isset ( $name )
    public function __isset($name)
    {
        if (method_exists($this, $getter = 'get' . $name)) {
            return $this->{$getter}() !== null;
        } else {
            if (method_exists($this, $jsgetter = 'getjs' . $name)) {
                return $this->{$jsgetter}() !== null;
            } else {
                if (strncasecmp($name, 'on', 2) === 0 && method_exists($this, $name)) {
                    $name = strtolower($name);
                    return isset($this->_e[$name]) && $this->_e[$name]->getCount();
                } else {
                    if (strncasecmp($name, 'fx', 2) === 0) {
                        $name = strtolower($name);
                        return isset(self::$_ue[$name]) && self::$_ue[$name]->getCount();
                    } else {
                        if ($this->_m !== null && $this->_m->getCount() > 0 && $this->_behaviorsenabled) {
                            if (isset($this->_m[$name])) {
                                return true;
                            }
                            foreach ($this->_m->toArray() as $behavior) {
                                if (!$behavior instanceof IBehavior || $behavior->getEnabled()) {
                                    return isset($behavior->{$name});
                                }
                            }
                        } else {
                            return false;
                        }
                    }
                }
            }
        }
    }