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

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

Behaviors may implement the function: public function dyListen($globalEvents[, $chain]) { $this->listen(); //eg } to be executed when listen is called. All attached behaviors are notified through dyListen.
public listen ( ) : numeric
Результат numeric the number of global events that were registered to the global event registry
    public function listen()
    {
        if ($this->_listeningenabled) {
            return;
        }
        $fx = array_filter(get_class_methods($this), array($this, 'filter_prado_fx'));
        foreach ($fx as $func) {
            $this->attachEventHandler($func, array($this, $func));
        }
        if (is_a($this, 'Prado\\Util\\IDynamicMethods')) {
            $this->attachEventHandler(TComponent::GLOBAL_RAISE_EVENT_LISTENER, array($this, '__dycall'));
            array_push($fx, TComponent::GLOBAL_RAISE_EVENT_LISTENER);
        }
        $this->_listeningenabled = true;
        $this->dyListen($fx);
        return count($fx);
    }