Habari\FormContainer::__isset PHP Метод

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

Magic property isset, returns if the specified control exists
public __isset ( string $name ) : boolean
$name string The name of the control
Результат boolean If the control object is set
    function __isset($name)
    {
        if (isset($this->controls[$name])) {
            return true;
        }
        foreach ($this->controls as $control) {
            if ($control instanceof FormContainer) {
                // Assignment is needed to avoid an indirect modification notice
                if ($ctrl = $control->{$name}) {
                    return true;
                }
            }
        }
        return false;
    }