Kimai_Database_Mysql::group_edit PHP 메소드

group_edit() 공개 메소드

Edits a group by replacing its data by the new array
저자: 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
리턴 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