/** * Constructor * * @param JDatabaseDriver $db Database driver object. * * @since 11.1 */ public function __construct(JDatabaseDriver $db) { parent::__construct('#__categories', 'id', $db); JTableObserverTags::createObserver($this, array('typeAlias' => '{extension}.category')); JTableObserverContenthistory::createObserver($this, array('typeAlias' => '{extension}.category')); $this->access = (int) JFactory::getConfig()->get('access'); }
/** * 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 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'); }
/** * 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')); }
/** * 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')); }
function __construct(&$db) { parent::__construct('#__digicom_products', 'id', $db); // Set the published column alias $this->setColumnAlias('published', 'published'); JTableObserverTags::createObserver($this, array('typeAlias' => 'com_digicom.product')); JTableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_digicom.product')); }
/** * Constructor * * @param JDatabaseDriver &$db Database connector object * */ public function __construct(&$db) { parent::__construct('#__knvbapi2_selecties', 'id', $db); $date = JFactory::getDate(); $user = JFactory::getUser(); $this->created = $date->toSQL(); $this->created_by = $user->id; $this->modified = $date->toSQL(); $this->modified_by = $user->id; JTableObserverTags::createObserver($this, array('typeAlias' => 'com_knvbapi2.selectie')); JTableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_knvbapi2.selectie')); }
/** * Constructor * * @param JDatabaseDriver &$db Database connector object * * @since 1.0 */ public function __construct(&$db) { parent::__construct('#__proveedor_details', 'id', $db); JTableObserverTags::createObserver($this, array('typeAlias' => 'com_proveedor.proveedor')); JTableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_proveedor.proveedor')); }
/** * Constructor * * @param JDatabaseDriver &$db A database connector object */ public function __construct(&$db) { parent::__construct('#__newsfeeds', 'id', $db); JTableObserverTags::createObserver($this, array('typeAlias' => 'com_newsfeeds.newsfeed')); JTableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_newsfeeds.newsfeed')); }
/** * Constructor * * @param object Database connector object */ function __construct(&$db) { parent::__construct('#__jdownloads_files', 'file_id', $db); // we need also the 'tags' functionality JTableObserverTags::createObserver($this, array('typeAlias' => 'com_jdownloads.download')); }
/** * Constructor * * @param JDatabase A database connector object */ public function __construct(&$db) { parent::__construct('#__dzproduct_items', 'id', $db); JTableObserverTags::createObserver($this, array('typeAlias' => 'com_dzproduct.item')); JObserverMapper::addObserverClassToClass('JTableObserverTags', 'DZProductTableItem', array('typeAlias' => 'com_dzproduct.item')); }
/** * 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')); }
public function __construct(&$_db) { parent::__construct('#__ksenmart_products', 'id', $_db); JTableObserverTags::createObserver($this, array('typeAlias' => 'com_ksenmart.product')); JTableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_ksenmart.product')); }
/** * Constructor * * @param JDatabaseDriver &$db A database connector object */ public function __construct(&$db) { parent::__construct('#__edashboard', 'id', $db); JTableObserverTags::createObserver($this, array('typeAlias' => 'com_edashboard.post')); }
public function __construct(JDatabaseDriver $db) { parent::__construct('#__uideas_items', 'id', $db); JTableObserverTags::createObserver($this, array('typeAlias' => 'com_userideas.item')); }