class Record extends Record (View source)

IBS Record

Methods

__construct(array $data)

Constructor e.g.

from  Record
array
getData()

get row data

from  Record
mixed
getDataByKey(string $key)

get row data for given column

from  Record

Details

__construct(array $data)

Constructor e.g.

$data = [
  "DOMAIN" => "mydomain.com",
  "USER"   => "test.user",
  // ... further column data ...
];

Parameters

array $data

data object

array getData()

get row data

Return Value

array

row data

mixed getDataByKey(string $key)

get row data for given column

Parameters

string $key

column name

Return Value

mixed

row data for given column or null if column does not exist