Source for file database.php
Documentation is available at database.php
* @package Joomla.Platform
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
* Joomla Platform Database Model Class
* @package Joomla.Platform
* @param JRegistry $state The model state.
* @param JDatabaseDriver $db The database adpater.
public function __construct(JRegistry $state =
null, JDatabaseDriver $db =
null)
$this->db = isset
($db) ?
$db :
$this->loadDb();
* Get the database driver.
* @return JDatabaseDriver The database driver.
* Set the database driver.
* @param JDatabaseDriver $db The database driver.
public function setDb(JDatabaseDriver $db)
* Load the database driver.
* @return JDatabaseDriver The database driver.
Documentation generated on Tue, 19 Nov 2013 14:57:46 +0100 by phpDocumentor 1.4.3