Source for file mysqli.php

Documentation is available at mysqli.php

  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.  * MySQLi database iterator.
  14.  *
  15.  * @package     Joomla.Platform
  16.  * @subpackage  Database
  17.  * @since       12.1
  18.  */
  19. {
  20.     /**
  21.      * Get the number of rows in the result set for the executed SQL given by the cursor.
  22.      *
  23.      * @return  integer  The number of rows in the result set.
  24.      *
  25.      * @since   12.1
  26.      * @see     Countable::count()
  27.      */
  28.     public function count()
  29.     {
  30.         return mysqli_num_rows($this->cursor);
  31.     }
  32.  
  33.     /**
  34.      * Method to fetch a row from the result set cursor as an object.
  35.      *
  36.      * @return  mixed   Either the next row from the result set or false if there are no more rows.
  37.      *
  38.      * @since   12.1
  39.      */
  40.     protected function fetchObject()
  41.     {
  42.         return mysqli_fetch_object($this->cursor$this->class);
  43.     }
  44.  
  45.     /**
  46.      * Method to free up the memory used for the result set.
  47.      *
  48.      * @return  void 
  49.      *
  50.      * @since   12.1
  51.      */
  52.     protected function freeResult()
  53.     {
  54.         mysqli_free_result($this->cursor);
  55.     }
  56. }

Documentation generated on Tue, 19 Nov 2013 15:09:17 +0100 by phpDocumentor 1.4.3