Kimai_Database_Mysql::status_edit PHP Method

status_edit() public method

Edits a status by replacing its data by the new array
Author: mo
public status_edit ( array $statusID, array $data ) : boolean
$statusID array groupID of the status to be edited
$data array name and other new data of the status
return boolean true on success, false on failure
    public function status_edit($statusID, $data)
    {
        $data = $this->clean_data($data);
        $values['status'] = MySQL::SQLValue($data['status']);
        $filter['statusID'] = MySQL::SQLValue($statusID, MySQL::SQLVALUE_NUMBER);
        $table = $this->kga['server_prefix'] . "statuses";
        $query = MySQL::BuildSQLUpdate($table, $values, $filter);
        return $this->conn->Query($query);
    }
Kimai_Database_Mysql