private function data_untag($data_id, $tag) { $error = -1; $result = untag_item('dataset', $data_id, $tag, $this->user_id, $error); //update index $this->elasticsearch->index('data', $data_id); if ($result == false) { $this->returnError($error, $this->version); } else { $this->xmlContents('entity-untag', $this->version, array('id' => $data_id, 'type' => 'data')); } }
private function _openml_setup_untag() { $id = $this->input->get('setup_id'); $tag = $this->input->get('tag'); $error = -1; $result = untag_item('algorithm_setup', $id, $tag, $this->user_id, $error); //update index $this->elasticsearch->index('setup', $id); if ($result == false) { $this->_returnError($error); } else { $this->_xmlContents('entity-untag', array('id' => $id, 'type' => 'setup')); } }