public function findComponentByHandler($handler)
    {
        foreach ($this->page->components as $component) {
            if ($component->methodExists($handler)) {
                return $component;
            }
        }

        foreach ($this->layout->components as $component) {
            if ($component->methodExists($handler)) {
                return $component;
            }
        }

        return null;
    }
public function findComponentByHandler($handler)
    {
        foreach ($this->page->components as $component) {
            if ($component->methodExists($handler)) {
                return $component;
            }
        }

        foreach ($this->layout->components as $component) {
            if ($component->methodExists($handler)) {
                return $component;
            }
        }

        return null;
    }
public function findComponentByHandler ( $ handler ) { foreach ( $ this -> page -> components as $ component ) { if ( $ component -> methodExists ( $ handler ) ) { return $ component ; } } foreach ( $ this -> layout -> components as $ component ) { if ( $ component -> methodExists ( $ handler ) ) { return $ component ; } } return null ; }
Searches the layout and page components by an AJAX handler
@param string $handler
@return ComponentBase The component object, if found
Searches the layout and page components by an AJAX handler