Kimai_Database_Mysql::group_edit PHP Method

group_edit() public method

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