| [ Index ] |
PHP Cross Reference of Joomla 2.5.4 DE |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @package Joomla.Platform 4 * @subpackage Base 5 * 6 * @copyright Copyright (C) 2005 - 2012 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 * Adapter Instance Class 14 * 15 * @package Joomla.Platform 16 * @subpackage Base 17 * @since 11.1 18 */ 19 class JAdapterInstance extends JObject 20 { 21 /** 22 * Parent 23 * 24 * @var JInstaller 25 * @since 11.1 26 */ 27 protected $parent = null; 28 29 /** 30 * Database 31 * 32 * @var JDatabase 33 * @since 11.1 34 */ 35 protected $db = null; 36 37 /** 38 * Constructor 39 * 40 * @param object &$parent Parent object [JAdapter instance] 41 * @param object &$db Database object [JDatabase instance] 42 * @param array $options Configuration Options 43 * 44 * @since 11.1 45 */ 46 public function __construct(&$parent, &$db, $options = array()) 47 { 48 // Set the properties from the options array that is passed in 49 $this->setProperties($options); 50 51 // Set the parent and db in case $options for some reason overrides it. 52 $this->parent = &$parent; 53 // Pull in the global dbo in case something happened to it. 54 $this->db = $db ? $db : JFactory::getDBO(); 55 } 56 57 /** 58 * Retrieves the parent object 59 * 60 * @return object parent 61 * 62 * @since 11.1 63 */ 64 public function getParent() 65 { 66 return $this->parent; 67 } 68 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Tue Apr 3 11:40:28 2012 | Cross-referenced by PHPXref 0.7.1 |