/** * This method will process all results added in a response */ function processResults() { // include support for wysiwyg editors if (!empty($this->wysiwyg_ids) || !empty($this->wysiwyg_forms)) { require_once dirname(__FILE__) . '/editors/YDAjaxEditor.php'; // add suport for wysiwyg editors applyed to IDs foreach ($this->wysiwyg_ids as $htmlID) { $this->response->addScript(YDAjaxEditor::JSinit($htmlID)); } // add support for wysiwyg editors applyed to form elements // foreach form, cycle all wysiwyg elements to compute their initialization foreach ($this->wysiwyg_forms as $formName => $formElements) { foreach ($formElements as $formElementID) { $this->response->addScript(YDAjaxEditor::JSinit($formElementID)); } } } // return XML to client browser return $this->response->getXML(); }