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

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

Note, this method is different from {@link findControl} in that it searches through all controls that have this control as the ancestor while {@link findcontrol} only searches through controls that have this control as the direct naming container.
public findControlsByID ( $id ) : array
Результат array list of controls found
    public function findControlsByID($id)
    {
        $controls = array();
        if ($this->getHasControls()) {
            foreach ($this->_rf[self::RF_CONTROLS] as $control) {
                if ($control instanceof TControl) {
                    if ($control->_id === $id) {
                        $controls[] = $control;
                    }
                    $controls = array_merge($controls, $control->findControlsByID($id));
                }
            }
        }
        return $controls;
    }
TControl