JDatabaseIteratorPostgresql
Extends \JDatabaseIteratorPostgreSQL database iterator.
since |
3.2.0 |
---|---|
deprecated |
4.0 Use PDO PostgreSQL instead |
package |
Joomla.Platform |
Methods
__construct
Database iterator constructor.
__construct(mixed $cursor, string $column = null, string $class = 'stdClass')
throws |
|
---|
Arguments
- $cursor
mixed
The database cursor.- $column
string
An option column to use as the iterator key.- $class
string
The class of object that is returned.
__destruct
Database iterator destructor.
__destruct()
since |
3.0.0 |
---|
count
Get the number of rows in the result set for the executed SQL given by the cursor.
count() : integer
since |
3.2.0 |
---|---|
see | \Countable::count() |
Response
integer
The number of rows in the result set.
current
The current element in the iterator.
current() : object
see | \Iterator::current() |
---|---|
since |
3.0.0 |
Response
object
fetchObject
Method to fetch a row from the result set cursor as an object.
fetchObject() : mixed
since |
3.0.0 |
---|
Response
mixed
Either the next row from the result set or false if there are no more rows.
freeResult
Method to free up the memory used for the result set.
freeResult() : void
since |
3.0.0 |
---|
key
The key of the current element in the iterator.
key() : integer|string
see | \Iterator::key() |
---|---|
since |
3.0.0 |
Response
integer|string
next
Moves forward to the next result from the SQL query.
next() : void
see | \Iterator::next() |
---|---|
since |
3.0.0 |
rewind
Rewinds the iterator.
rewind() : void
This iterator cannot be rewound.
see | \Iterator::rewind() |
---|---|
since |
3.0.0 |
valid
Checks if the current position of the iterator is valid.
valid() : boolean
see | \Iterator::valid() |
---|---|
since |
3.0.0 |
Response
boolean
Properties
cursor
The database cursor.
since |
3.0.0 |
---|
Type(s)
mixed
class
The class of object to create.
since |
3.0.0 |
---|
Type(s)
string
_column
The name of the column to use for the key of the database record.
since |
3.0.0 |
---|
Type(s)
mixed
_current
The current database record.
since |
3.0.0 |
---|
Type(s)
mixed
_key
A numeric or string key for the current database record.
since |
3.0.0 |
---|
Type(s)
integer|string
_fetched
The number of fetched records.
since |
3.0.0 |
---|
Type(s)
integer