Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe JDatabaseIterator
+ Graphe d'héritage de JDatabaseIterator:

Fonctions membres publiques

 __construct ($cursor, $column=null, $class='stdClass')
 
 __destruct ()
 
 current ()
 
 key ()
 
 next ()
 
 rewind ()
 
 valid ()
 

Fonctions membres protégées

 fetchObject ()
 
 freeResult ()
 

Attributs protégés

 $cursor
 
 $class
 

Attributs privés

 $_column
 
 $_current
 
 $_key
 
 $_fetched = 0
 

Description détaillée

Joomla Platform Database Driver Class

Depuis
3.0.0

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $cursor,
  $column = null,
  $class = 'stdClass' 
)

Database iterator constructor.

Paramètres
mixed$cursorThe database cursor.
string$columnAn option column to use as the iterator key.
string$classThe class of object that is returned.
Exceptions
InvalidArgumentException

Références $class.

◆ __destruct()

__destruct ( )

Database iterator destructor.

Depuis
3.0.0

Documentation des fonctions membres

◆ current()

current ( )

The current element in the iterator.

Renvoie
object
Voir également
Iterator::current()
Depuis
3.0.0

◆ fetchObject()

fetchObject ( )
abstractprotected

Method to fetch a row from the result set cursor as an object.

Renvoie
mixed Either the next row from the result set or false if there are no more rows.
Depuis
3.0.0

◆ freeResult()

freeResult ( )
abstractprotected

Method to free up the memory used for the result set.

Renvoie
void
Depuis
3.0.0

◆ key()

key ( )

The key of the current element in the iterator.

Renvoie
int|string
Voir également
Iterator::key()
Depuis
3.0.0

◆ next()

next ( )

Moves forward to the next result from the SQL query.

Renvoie
void
Voir également
Iterator::next()
Depuis
3.0.0

◆ rewind()

rewind ( )

Rewinds the iterator.

This iterator cannot be rewound.

Renvoie
void
Voir également
Iterator::rewind()
Depuis
3.0.0

◆ valid()

valid ( )

Checks if the current position of the iterator is valid.

Renvoie
boolean
Voir également
Iterator::valid()
Depuis
3.0.0

Documentation des champs

◆ $_column

$_column
private

◆ $_current

$_current
private

◆ $_fetched

$_fetched = 0
private

◆ $_key

$_key
private

◆ $class

$class
protected

◆ $cursor

$cursor
protected

La documentation de cette classe a été générée à partir du fichier suivant :