Prado\Web\UI\TControl::findControlsByType PHP Метод

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

Finds all child and grand-child controls that are of the specified type.
public findControlsByType ( $type, $strict = true ) : array
Результат array list of controls found
    public function findControlsByType($type, $strict = true)
    {
        $controls = array();
        if ($this->getHasControls()) {
            foreach ($this->_rf[self::RF_CONTROLS] as $control) {
                if (is_object($control) && (get_class($control) === $type || !$strict && $control instanceof $type)) {
                    $controls[] = $control;
                }
                if ($control instanceof TControl && $control->getHasControls()) {
                    $controls = array_merge($controls, $control->findControlsByType($type, $strict));
                }
            }
        }
        return $controls;
    }
TControl