Exemplo n.º 1
0
 /**
  * Load options from _GET
  *
  * @access private
  */
 function _loadOptions()
 {
     $this->options = array('client' => array(), 'stub' => array());
     if (isset($_GET['client'])) {
         $clients = explode(',', $this->ajax->_getVar('client'));
         $client = array();
         foreach ($clients as $val) {
             $cleanVal = $this->_cleanIdentifier($val);
             if (!empty($cleanVal)) {
                 $client[] = strtolower($cleanVal);
             }
         }
         if (count($client) > 0) {
             $this->options['client'] = $client;
         }
     }
     if (isset($_GET['stub'])) {
         $stubs = explode(',', $this->ajax->_getVar('stub'));
         $stub = array();
         foreach ($stubs as $val) {
             $cleanVal = $this->_cleanIdentifier($val);
             if (!empty($cleanVal)) {
                 $stub[] = strtolower($cleanVal);
             }
         }
         if (count($stub) > 0) {
             $this->options['stub'] = $stub;
         }
     }
 }