Ejemplo n.º 1
0
 /**
  * Check for GET Params existence
  *
  * @note The PRESENCE of key is tested, not its value
  *
  * @param string $param
  *   Desired Param from Dynamic Params
  *
  * @return boolean
  *   TRUE if exists, FALSE otherwise OR if a
  *   Next\HTTP\Request\RequestException is caught
  *
  * @throws Next\Controller\ControllerException
  *   Testing existence of internal properties
  */
 public function __isset($param)
 {
     $param = trim($param);
     if (substr($param, 0, 1) == '_') {
         throw ControllerException::unnecessaryTest();
     }
     try {
         return $this->_application->getRequest()->getQuery($param) !== FALSE;
     } catch (RequestException $e) {
         return FALSE;
     }
 }