Kimai_Database_Mysql::timeEntry_edit_activity PHP Method

timeEntry_edit_activity() public method

Just edit the activity for an entry. This is used for changing the activity of a running entry.
public timeEntry_edit_activity ( integer $timeEntryID, integer $activityID ) : object
$timeEntryID integer id of the timesheet entry
$activityID integer id of the activity to change to
return object
    public function timeEntry_edit_activity($timeEntryID, $activityID)
    {
        $timeEntryID = MySQL::SQLValue($timeEntryID, MySQL::SQLVALUE_NUMBER);
        $activityID = MySQL::SQLValue($activityID, MySQL::SQLVALUE_NUMBER);
        $table = $this->kga['server_prefix'] . "timeSheet";
        $filter['timeEntryID'] = $timeEntryID;
        $values['activityID'] = $activityID;
        $query = MySQL::BuildSQLUpdate($table, $values, $filter);
        return $this->conn->Query($query);
    }
Kimai_Database_Mysql