Joomla Platform
13.1
Documentation des API du framework Joomla Platform
Page principale
Pages associées
Espaces de nommage
Classes
Fichiers
Exemples
Liste des fichiers
Membres de fichier
Tout
Classes
Espaces de nommage
Fichiers
Fonctions
Variables
Pages
mysql.php
Aller à la documentation de ce fichier.
1
<?php
2
/**
3
* @package Joomla.Platform
4
* @subpackage Database
5
*
6
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
7
* @license GNU General Public License version 2 or later; see LICENSE
8
*/
9
10
defined(
'JPATH_PLATFORM'
) or die;
11
12
/**
13
* MySQL database iterator.
14
*
15
* @package Joomla.Platform
16
* @subpackage Database
17
* @see http://dev.mysql.com/doc/
18
* @since 12.1
19
*/
20
class
JDatabaseIteratorMysql
extends
JDatabaseIterator
21
{
22
/**
23
* Get the number of rows in the result set for the executed SQL given by the cursor.
24
*
25
* @return integer The number of rows in the result set.
26
*
27
* @since 12.1
28
* @see Countable::count()
29
*/
30
public
function
count()
31
{
32
return
mysql_num_rows($this->cursor);
33
}
34
35
/**
36
* Method to fetch a row from the result set cursor as an object.
37
*
38
* @return mixed Either the next row from the result set or false if there are no more rows.
39
*
40
* @since 12.1
41
*/
42
protected
function
fetchObject()
43
{
44
return
mysql_fetch_object($this->cursor, $this->
class
);
45
}
46
47
/**
48
* Method to free up the memory used for the result set.
49
*
50
* @return void
51
*
52
* @since 12.1
53
*/
54
protected
function
freeResult()
55
{
56
mysql_free_result($this->cursor);
57
}
58
}
Documentation et API générés le 16/11/2013 par l'équipe
Dev.joomla.fr
de l'
AFUJ
avec la solution