/**
* Renders the AjaxHelper for the QForm
* @param QControlBase $objControl
*
* @return string The Ajax helper string (should be JS commands)
*/
protected function RenderAjaxHelper($objControl)
{
$controls = [];
if ($objControl) {
$controls = array_merge($controls, $objControl->RenderAjax());
// will return an array of controls to be merged with current controls
foreach ($objControl->GetChildControls() as $objChildControl) {
$controls = array_merge($controls, $this->RenderAjaxHelper($objChildControl));
}
}
return $controls;
}