public function __construct(&$db = null) { if ($db == null) { $db = JFactory::getDbo(); } parent::__construct('#__ganalytics_profiles', 'id', $db); }
/** * Constructor * * @param JDatabaseDriver $db Database connector object * * @since 1.5 */ public function __construct(JDatabaseDriver $db) { $this->typeAlias = 'com_banners.banner'; parent::__construct('#__banners', 'id', $db); $this->created = JFactory::getDate()->toSql(); $this->setColumnAlias('published', 'state'); }
/** * Constructor * * @param object Database connector object */ function __construct(&$db) { parent::__construct('#__bt_portfolios', 'id', $db); if ($this->id == 0) { $this->extra_fields = self::loadExtraFields($this->extra_fields, 0); } }
/** * Constructor * * @param JDatabase &$db A database connector object. * * @since 11.1 */ public function __construct(&$db) { parent::__construct('#__users', 'id', $db); // Initialise. $this->id = 0; $this->sendEmail = 0; }
function __construct(&$kunena_db) { $fbConfig =& CKunenaConfig::getInstance(); parent::__construct('#__fb_sessions', 'userid', $kunena_db); $this->lasttime = time() + $fbConfig->board_ofset - KUNENA_SECONDS_IN_YEAR; $this->currvisit = time() + $fbConfig->board_ofset; }
/** * Constructor * * @access public * @subpackage Yireo * @param string $table_name * @param string $primary_key * @param JDatabase $db * @return null */ public function __construct($table_name, $primary_key, $db) { // Determine the table name $table_namespace = preg_replace('/^com_/', '', JFactory::getApplication()->input->getCmd('option')); if (!empty($table_name)) { if (!strstr($table_name, '#__')) { $table_name = $table_namespace . '_' . $table_name; } } else { $table_name = $table_namespace; } // Call the constructor to finish construction parent::__construct($table_name, $primary_key, $db); // Initialize the fields based on an array $fields = $this->getDatabaseFields(); if (!empty($fields)) { foreach ($fields as $field) { if (!empty($this->_defaults[$field])) { $this->{$field} = $this->_defaults[$field]; } else { $this->{$field} = null; } } } }
/** * Constructor * * @param database &$db A database connector object. * * @return JTableSession * * @since 11.1 */ function __construct(&$db) { parent::__construct('#__session', 'session_id', $db); $this->guest = 1; $this->username = ''; }
function XmapPlugin(&$_db, $id = NULL) { parent::__construct('#__xmap_ext', 'id', $_db); if ($id) { $this->load($id); } }
/** * Constructor * * @param JDatabaseDriver $db A database connector object * * @since 11.1 */ public function __construct(JDatabaseDriver $db) { $this->typeAlias = 'com_content.article'; parent::__construct('#__content', 'id', $db); // Set the alias since the column is called state $this->setColumnAlias('published', 'state'); }
/** * Constructor * * @param JDatabaseDriver &$db Database connector object * * @since 1.5 */ public function __construct(&$db) { parent::__construct('#__banners', 'id', $db); JTableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_banners.banner')); $this->created = JFactory::getDate()->toSql(); $this->setColumnAlias('published', 'state'); }
public function __construct(&$db = null) { parent::__construct('#__dpfields_fields', 'id', $db); $this->setColumnAlias('published', 'state'); JObserverMapper::addObserverClassToClass('JTableObserverTags', 'DPFieldsTableField', array('typeAlias' => 'com_dpfields.field')); JObserverMapper::addObserverClassToClass('JTableObserverContenthistory', 'DPFieldsTableField', array('typeAlias' => 'com_dpfields.field')); }
/** * Null Constructor */ function iCalEventDetail(&$db) { // get default value for multiday from params $cfg = JEVConfig::getInstance(); $this->_multiday = $cfg->get('multiday', 1); parent::__construct('#__jevents_vevdetail', 'evdet_id', $db); }
/** * Constructor * * @param JDatabaseDriver &$_db Database connector object * * @since 1.5 */ public function __construct(&$_db) { parent::__construct('#__banners', 'id', $_db); JTableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_banners.banner')); $date = JFactory::getDate(); $this->created = $date->toSql(); }
/** * Constructor * * @param object Database connector object * @since 1.0 */ function __construct(&$db) { $tableName = '#__arcna_animals'; parent::__construct($tableName, 'id', $db); $fields =& $this->getFields(); $this->initDataObject($fields, $this); }
/** * Constructor * * @param object $db Database Object * @return void */ public function __construct(&$db) { parent::__construct('#__newsletter_mailinglists', 'id', $db); //set up the assoc table $this->_tbl_assoc = '#__newsletter_mailinglist_emails'; $this->_tbl_assoc_key = 'id'; }
/** * Constructor * * @param JDatabaseDriver $db Database driver object. * * @since 11.1 * @deprecated 13.3 Use SQL queries to interact with the session table. */ public function __construct(JDatabaseDriver $db) { JLog::add('JTableSession is deprecated. Use SQL queries directly to interact with the session table.', JLog::WARNING, 'deprecated'); parent::__construct('#__session', 'session_id', $db); $this->guest = 1; $this->username = ''; }
function __construct(&$db) { if (empty($db)) { $db =& JFactory::getDBO(); } parent::__construct('#__jdefender_filesystem', 'id', $db); }
function __construct(&$_db) { parent::__construct('#__banner', 'bid', $_db); jimport('joomla.utilities.date'); $now = new JDate(); $this->set('date', $now->toMySQL()); }
/** * @param database A database connector object */ function __construct(&$db) { parent::__construct('#__chem', 'id', $db); jimport('joomla.error.log'); $options['format'] = $this->_format; $this->_log =& JLog::getInstance('impotrprocess.' . date('Y_m_d') . '.php', null, JPATH_ROOT . DS . 'logs' . DS); $this->_log->setOptions($options); }
public function __construct($table, $key = 'id', $alias = null, $db = null) { $this->_alias = $alias; if (!isset($db)) { $db = JFactory::getDbo(); } parent::__construct($table, $key, $db); }
/** * Object constructor to set table and key fields. In most cases this will * be overridden by child classes to explicitly set the table and key fields * for a particular database table. * * @param string Name of the table to model. * @param string Name of the primary key field in the table. * @param object JDatabase connector object. * @since 1.0 */ function __construct($table, $key, &$db) { parent::__construct($table, $key, $db); $this->_excluded = array('asset_id', 'parent_id', 'lft', 'rgt', 'level', 'checked_out', 'checked_out_time'); $this->_aliases = array(); $this->_jsons = array(); //array('params', 'metadata', 'attribs', 'images', 'urls'); }
function TableOrderShippings(&$db) { $tbl_key = 'ordershipping_id'; $tbl_suffix = 'ordershippings'; $this->set('_suffix', $tbl_suffix); $name = 'j2store'; parent::__construct("#__{$name}_{$tbl_suffix}", $tbl_key, $db); }
/** * Constructor * * @param JDatabaseDriver &$db A database connector object * * @since 1.5 */ public function __construct(&$db) { parent::__construct('#__weblinks', 'id', $db); // Set the published column alias $this->setColumnAlias('published', 'state'); JTableObserverTags::createObserver($this, array('typeAlias' => 'com_weblinks.weblink')); JTableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_weblinks.weblink')); }
/** * Constructor * * @param JDatabaseDriver &$db A database connector object * * @since 1.5 */ public function __construct(&$db) { parent::__construct('#__htraininglogs_cfg_intensity', 'id', $db); // Set the published column alias $this->setColumnAlias('published', 'state'); JTableObserverTags::createObserver($this, array('typeAlias' => 'com_htraininglogs.h_cfg_intensitylevel')); JTableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_htraininglogs.h_cfg_intensitylevel')); }
/** * Constructor * * @param JDatabaseDriver $db A database connector object * * @since 11.1 */ public function __construct(JDatabaseDriver $db) { parent::__construct('#__content', 'id', $db); JTableObserverTags::createObserver($this, array('typeAlias' => 'com_content.article')); JTableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_content.article')); // Set the alias since the column is called state $this->setColumnAlias('published', 'state'); }
function TableShippingMethods($db) { $tbl_key = 'shipping_method_id'; $tbl_suffix = 'shippingmethods'; $this->set('_suffix', $tbl_suffix); $name = 'j2store'; parent::__construct("#__{$name}_{$tbl_suffix}", $tbl_key, $db); }
/** * Constructor * * @param object Database connector object */ public function __construct(&$db) { // Initialize the fields $this->_fields = array('id' => null, 'name' => null, 'element' => null, 'folder' => null); // Set the required fields $this->_required = array('name'); parent::__construct('#__simplelists_plugins', 'id', $db); }
/** * Constructor for this class. * * @return * @param object $db */ public function __construct(&$db) { parent::__construct('#__discuss_users', 'id', $db); $this->numPostCreated = 0; $this->numPostAnswered = 0; $this->profileLink = ''; $this->avatarLink = ''; }
function __construct(&$db) { $this->_months = array("JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC"); $this->_changeDateTime = new DateTime('0001-01-01'); $user = JFactory::getUser(); $this->user_id = $user->id; parent::__construct('#__joaktree_logs', 'id', $db); }
/** * Constructor * * @param JDatabase &$db A database connector object */ public function __construct(&$db) { // add observer for content history JObserverMapper::addObserverClassToClass('JTableObserverContenthistory', 'AkrecipesTablerecipe', array('typeAlias' => 'com_akrecipes.recipe')); parent::__construct('#__akrecipes_recipe', 'id', $db); // add observer for tags JTableObserverTags::createObserver($this, array('typeAlias' => 'com_akrecipes.recipe')); }