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

public RenderAjax ( $blnDisplayOutput = true )
 /**
  * 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;
 }
Пример #2
0
 /**
  * Renders the AjaxHelper for the QForm
  * @param QControlBase $objControl
  *
  * @return string The Ajax helper string (should be JS commands)
  */
 protected function RenderAjaxHelper($objControl)
 {
     // $strToReturn = '';
     if ($objControl) {
         $strToReturn = $objControl->RenderAjax(false);
     }
     if ($strToReturn) {
         $strToReturn .= "\r\n";
     }
     foreach ($objControl->GetChildControls() as $objChildControl) {
         $strToReturn .= $this->RenderAjaxHelper($objChildControl);
     }
     return $strToReturn;
 }