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); } }
/** * Delete field * @return NULL * @param $key string **/ function clear($key) { if ($key == 'id') { $key = '_id'; } return parent::clear($key); }