Dotclear 2.24
|
Query Result Static Record Class. More...
Public Member Functions | |
__construct ($result, ?array $info) | |
field ($n) | |
exists ($n) | |
index (?int $row=null) | |
rows () | |
set ($n, $v) | |
sort ($field, string $order='asc') | |
![]() | |
__construct ($result, array $info) | |
toStatic () | |
__call (string $f, $args) | |
__get ($n) | |
f ($n) | |
field ($n) | |
exists ($n) | |
__isset (string $n) | |
extend (string $class) | |
extensions () | |
index (?int $row=null) | |
fetch () | |
moveStart () | |
moveEnd () | |
moveNext () | |
movePrev () | |
isEnd () | |
isStart () | |
isEmpty () | |
count () | |
columns () | |
rows () | |
row () | |
current () | |
key () | |
next () | |
rewind () | |
valid () | |
Static Public Member Functions | |
static | newFromArray (?array $data) |
Data Fields | |
$__data = [] | |
Additional Inherited Members | |
![]() | |
getData () | |
![]() | |
$__link | |
$__result | |
$__info | |
$__extend = [] | |
$__index = 0 | |
$__row = false | |
Query Result Static Record Class.
Unlike record class, this one contains all results in an associative array.
__construct | ( | $result, | |
?array | $info | ||
) |
Constructs a new instance.
mixed | $result | The result |
array | $info | The information |
|
static |
Static record from array
Returns a new instance of object from an associative array.
array | $data | Data array |
References record\count().
Referenced by dcRecord\newFromArray().
field | ( | $n | ) |
Get field value
string | int | $n | Field name|position |
Reimplemented from record.
References record\$__index.
exists | ( | $n | ) |
Check if a field exists
string | int | $n | Field name|position |
Reimplemented from record.
index | ( | ?int | $row = null | ) |
Get current index
int | $row | The row |
Reimplemented from record.
References record\$__index.
set | ( | $n, | |
$v | |||
) |
Changes value of a given field in the current row.
string | int | $n | Field name|position |
mixed | $v | Field value |
References record\$__index.
sort | ( | $field, | |
string | $order = 'asc' |
||
) |
Sorts values by a field in a given order.
string | int | $field | Field name|position |
string | $order | Sort type (asc or desc) |
$__data = [] |
Referenced by rows().