/**
  * General processor for AJAX requests.
  * (called by typo3/ajax.php)
  *
  * @param	array		$params: additional parameters (not used here)
  * @param	TYPO3AJAX	&$ajaxObj: the TYPO3AJAX object of this request
  * @return	void
  * @author	Oliver Hader <*****@*****.**>
  */
 public function processAjaxRequest($params, TYPO3AJAX &$ajaxObj)
 {
     $this->ajaxObj = $ajaxObj;
     $ajaxIdParts = explode('::', $ajaxObj->getAjaxID(), 2);
     $ajaxMethod = $ajaxIdParts[1];
     $response = array();
     // Process the AJAX requests:
     if ($ajaxMethod == 'loadTemplates') {
         $ajaxObj->setContent($this->loadTemplates(intval(t3lib_div::_GP('pageId'))));
         $ajaxObj->setContentFormat('jsonbody');
     }
 }
 /**
  * General processor for AJAX requests.
  * (called by typo3/ajax.php)
  *
  * @param	array		$params: additional parameters (not used here)
  * @param	TYPO3AJAX	&$ajaxObj: the TYPO3AJAX object of this request
  * @return	void
  * @author	Oliver Hader <*****@*****.**>
  */
 public function processAjaxRequest($params, TYPO3AJAX &$ajaxObj)
 {
     $this->ajaxObj = $ajaxObj;
     // Load the TSref XML information:
     $this->loadFile(t3lib_extMgm::extPath('t3editor') . 'res/tsref/tsref.xml');
     $ajaxIdParts = explode('::', $ajaxObj->getAjaxID(), 2);
     $ajaxMethod = $ajaxIdParts[1];
     $response = array();
     // Process the AJAX requests:
     if ($ajaxMethod == 'getTypes') {
         $ajaxObj->setContent($this->getTypes());
         $ajaxObj->setContentFormat('jsonbody');
     } elseif ($ajaxMethod == 'getDescription') {
         $ajaxObj->addContent('', $this->getDescription(t3lib_div::_GP('typeId'), t3lib_div::_GP('parameterName')));
         $ajaxObj->setContentFormat('plain');
     }
 }