action_type = $actiontype; if($this->save()) { return true; } else { return false; } } }