_detect_api_key() protected method

See if the user has provided an API key
protected _detect_api_key ( ) : boolean
return boolean
Exemplo n.º 1
0
 /**
  * Detect API Key
  *
  * See if the user has provided an API key
  *
  * @return boolean
  */
 protected function _detect_api_key()
 {
     log_message('debug', 'debug DETECTING API KEY');
     $ret = FALSE;
     $ret = parent::_detect_api_key();
     if ($ret === FALSE) {
         $this->rest->key = $this->input->ip_address();
     }
     return true;
 }