Exemple #1
0
 /**
  * Handle a client request, either generating a client or having HTML_AJAX handle the request
  *
  * @return boolean true if request was handled, false otherwise
  */
 function handleRequest()
 {
     if ($this->options == true) {
         $this->_loadOptions();
     }
     //basically a hook for iframe but allows processing of data earlier
     $this->ajax->populatePayload();
     if (!isset($_GET['c']) && (count($this->options['client']) > 0 || count($this->options['stub']) > 0)) {
         $this->generateClient();
         return true;
     } else {
         if (!empty($_GET['c'])) {
             $this->_init($this->_cleanIdentifier($this->ajax->_getVar('c')));
         }
         return $this->ajax->handleRequest();
     }
 }