Kimai_Database_Mysql::rowExists PHP Method

rowExists() protected method

checks if a given db row based on the $idColumn & $id exists
protected rowExists ( string $table, array $filter ) : boolean
$table string
$filter array
return boolean
    protected function rowExists($table, array $filter)
    {
        $select = $this->conn->SelectRows($table, $filter);
        if (!$select) {
            $this->logLastError('rowExists');
            return false;
        }
        return (bool) $this->conn->RowArray(0, MYSQLI_ASSOC);
    }
Kimai_Database_Mysql