Пример #1
0
 /**
  * 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');
 }
Пример #2
0
 /**
  * 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'));
 }
Пример #3
0
 /**
  * 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');
 }
Пример #4
0
 /**
  * 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'));
 }
Пример #5
0
 /**
  * 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'));
 }
Пример #6
0
 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'));
 }
Пример #7
0
 /**
  * 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'));
 }
Пример #8
0
 /**
  * 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'));
 }
Пример #9
0
 /**
  * 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'));
 }
Пример #10
0
 /**
  * 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'));
 }
Пример #11
0
 /**
  * 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'));
 }
Пример #12
0
 /**
  * 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'));
 }
Пример #13
0
 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'));
 }
Пример #14
0
 /**
  * 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'));
 }
Пример #15
0
 public function __construct(JDatabaseDriver $db)
 {
     parent::__construct('#__uideas_items', 'id', $db);
     JTableObserverTags::createObserver($this, array('typeAlias' => 'com_userideas.item'));
 }