Exemplo n.º 1
0
 public function log()
 {
     $message = $this->input->get('message', null, 'string');
     $priority = $this->input->get('priority', 'INFO', 'string');
     $category = $this->input->get('category', 'General', 'string');
     if (!empty($message)) {
         \Dsc\Models::log($message, $priority, $category);
     }
 }
Exemplo n.º 2
0
 /**
  *	Delete field
  *	@return NULL
  *	@param $key string
  **/
 function clear($key)
 {
     if ($key == 'id') {
         $key = '_id';
     }
     return parent::clear($key);
 }