Kimai_Database_Mysql::customer_get_data PHP Method

customer_get_data() public method

Returns the data of a customer
Author: th
public customer_get_data ( integer $customerID ) : array
$customerID integer id of the customer
return array the customer's data, false on failure
    public function customer_get_data($customerID)
    {
        $filter['customerID'] = MySQL::SQLValue($customerID, MySQL::SQLVALUE_NUMBER);
        $table = $this->getCustomerTable();
        $result = $this->conn->SelectRows($table, $filter);
        if (!$result) {
            $this->logLastError('customer_get_data');
            return false;
        }
        return $this->conn->RowArray(0, MYSQLI_ASSOC);
    }
Kimai_Database_Mysql