constructor __construct [line 485]
destructor __destruct [line 505]
method buildRow [line 813]
method count [line 729]
Returns the number of rows in this result.
Tags:
Implementation of:
- GALResultIterator::count()
- Returns the number of rows in this list or set.
method countFields [line 595]
Returns the number of fields contained in a result.
Tags:
Overridden in child classes as:
- GALTableIterator::countFields()
- Returns the number of fields contained in a result.
Implementation of:
- GALDesc::countFields()
- Returns the number of fields contained in a result.
method data_seek [line 633]
void data_seek(
int
$index)
|
|
Sets the internal pointer to the specified row.
This method sets the internal row pointer so that the next row returned by fetch() is the one on position $index in the result (starting from zero).
Tags:
Overridden in child classes as:
- GALTableIterator::data_seek()
- Sets the internal pointer to the specified row.
Implementation of:
- GALResultIterator::data_seek()
- Moves the internal pointer to the row with the given position inside the list.
Parameters:
method fetch [line 674]
Fetches a row from the MySQL query result.
This function fetches the current row (indicated by $index) from the database result, increases the internal pointer by one, constructs a GALRow object and returns it.
(Information for people writing classes that inherit from this class) Note that mysql_data_seek() is not called inside this function, so changing the $index variable is not sufficient to specify the next row that will be fetched. Please use data_seek()!
Tags:
Overridden in child classes as:
- GALTableIterator::fetch()
- Fetches the current row from the database.
Implementation of:
- GALResultIterator::fetch()
- Fetches the row the internal pointer points to and sets the internal pointer to the next row.
method filter [line 740]
Filters the rows of this result with a callback function.
Tags:
Implementation of:
- GALResultIterator::filter()
- Filters the rows of this iterator with a callback function.
Parameters:
method getFields [line 585]
method getFlags [line 517]
string getFlags(
string
$field)
|
|
Gets the flags of the given field.
Tags:
Overridden in child classes as:
- GALTableIterator::getFlags()
- Gets the flags of the given field.
Implementation of:
- GALDesc::getFlags()
- Gets the flags of the given field.
Parameters:
method getLength [line 553]
int getLength(
string
$field)
|
|
Gets the length of the given field.
Wrapper for mysql_field_len().
Tags:
Overridden in child classes as:
- GALTableIterator::getLength()
- Gets the length of the given field.
Implementation of:
- GALDesc::getLength()
- Gets the length of the given field.
Parameters:
method getParent [line 619]
Returns a reference to this object.
A GALResult hasn't got a parent, so it is a top level entity and getParent() returns a reference to this object itself ($this). This behavior is overridden in GALTableIterator::getParent().
Tags:
Overridden in child classes as:
- GALTableIterator::getParent()
- Returns the parent of this result.
Implementation of:
- GALDesc::getParent()
- Return the top level parent of an entity.
method getRowFactory [line 829]
method getTable [line 571]
string getTable(
string
$field)
|
|
Gets the name of the table the given field is contained in.
Wrapper for mysql_field_table().
Tags:
Overridden in child classes as:
- GALTableIterator::getTable()
- Gets the name of the table the given field is contained in.
Implementation of:
- GALDesc::getTable()
- Gets the name of the table the given field is contained in.
Parameters:
method getType [line 535]
string getType(
string
$field)
|
|
Gets the type of the given field.
Wrapper for mysql_field_type().
Tags:
Overridden in child classes as:
- GALTableIterator::getType()
- Gets the type of the given field.
Implementation of:
- GALDesc::getType()
- Gets the type of the given field.
Parameters:
method isField [line 606]
bool isField(
string
$field)
|
|
Checks if the given field is contained in a result.
Tags:
Implementation of:
- GALDesc::isField()
- Checks if the given field is contained in a result.
Parameters:
method iterator [line 802]
Creates a new iterator on the data of this result.
Tags:
Implementation of:
- GALResultIterator::iterator()
- Returns a new ResultIterator on the data of this iterator.
method position [line 656]
Returns the index of the current row.
This method returns the index of the row that will be returned by the next call of fetch() (starting from zero)
Tags:
Implementation of:
- GALResultIterator::position()
- Gets the index of the row the internal pointer points top.
method rewind [line 693]
Sets the internal pointer to zero.
This method changes the internal pointer so that it points to the first row, i.e. row 0.
Tags:
Implementation of:
- GALResultIterator::rewind()
- Moves the internal pointer to position 0.
method row [line 715]
Fetches the row with the specified index (starting from 0).
This method fetches the row that has the specified index inside this result without changing the internal pointer. It returns the same as
, but the internal pointer keeps unchanged.
Tags:
Implementation of:
- GALResultIterator::row()
- Fetches the row with the given index.
method setRowFactory [line 821]
method verticalFetch [line 779]
array verticalFetch(
string
$field)
|
|
Returns the value of the specified field in all rows of this iterator.
In the following example the table "users" contains these three rows:
to stdout.
Tags:
Overridden in child classes as:
- GALTableIterator::verticalFetch()
- Returns the value of the specified field in all rows of this iterator.
Implementation of:
- GALResultIterator::verticalFetch()
- Returns the value of a field in all rows of this iterator.
Parameters: