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;
}