◆ __construct()
Constructs a new instance.
- Parameters
-
◆ toStatic()
◆ toExtStatic()
◆ __call()
__call |
( |
string |
$f, |
|
|
|
$args |
|
) |
| |
Magic call
Magic call function. Calls function added by extend()
if exists, passing it self object and arguments.
- Parameters
-
string | $f | Function name |
mixed | $args | Arguments |
- Returns
- mixed
◆ __get()
Magic get
Alias for field()
.
- Parameters
-
string | int | $n | Field name or field position |
- Returns
- mixed
References field().
◆ f()
Get field
Alias for field()
.
- Parameters
-
string | int | $n | Field name or field position |
- Returns
- mixed
References field().
◆ field()
Get field value
- Parameters
-
string | int | $n | Field name|position |
- Returns
- mixed
Referenced by __get(), and f().
◆ exists()
◆ __isset()
Field isset
Returns true if a field exists (magic method from PHP 5.1).
- Parameters
-
- Returns
- bool
◆ extend()
Extend record
Extends this instance capabilities by adding all public static methods of $class to current instance. Class methods should take at least this record as first parameter.
- See also
- __call()
- Parameters
-
◆ extensions()
Returns record extensions.
- Returns
- array
◆ index()
index |
( |
?int |
$row = null | ) |
|
◆ fetch()
◆ moveStart()
Moves index to first position.
- Returns
- bool
◆ moveEnd()
Moves index to last position.
- Returns
- bool
◆ moveNext()
◆ movePrev()
◆ isEnd()
◆ isStart()
◆ isEmpty()
◆ columns()
Get columns
- Returns
- array array of columns, with name as key and type as value.
◆ rows()
◆ row()
- Returns
- array current rows.
◆ count()
- Returns
- int number of rows in record
◆ current()
- See also
- Iterator::current
◆ key()
- See also
- Iterator::key
References index().
◆ next()
◆ rewind()
◆ valid()
◆ newFromArray()
static newFromArray |
( |
?array |
$data | ) |
|
|
static |
◆ set()
Changes value of a given field in the current row.
- Parameters
-
string | int | $n | Field name|position |
mixed | $v | Field value |
- Returns
- mixed
◆ sort()
sort |
( |
|
$field, |
|
|
string |
$order = 'asc' |
|
) |
| |
Sorts values by a field in a given order.
- Parameters
-
string | int | $field | Field name|position |
string | $order | Sort type (asc or desc) |
- Returns
- mixed
◆ lexicalSort()
lexicalSort |
( |
string |
$field, |
|
|
string |
$order = 'asc' |
|
) |
| |
Lexically sorts values by a field in a given order.
- Parameters
-
string | $field | The field |
string | $order | The order |
◆ $dynamic
◆ $static
The documentation for this class was generated from the following file: