本文整理汇总了PHP中JTableObserverContenthistory类的典型用法代码示例。如果您正苦于以下问题:PHP JTableObserverContenthistory类的具体用法?PHP JTableObserverContenthistory怎么用?PHP JTableObserverContenthistory使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了JTableObserverContenthistory类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* 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');
}
示例2: __construct
/**
* 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();
}
示例3: __construct
/**
* 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');
}
示例4: __construct
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'));
}
示例5: __construct
/**
* 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');
}
示例6: __construct
/**
* 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'));
}
示例7: __construct
/**
* 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: __construct
/**
* 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: __construct
/**
* Constructor
*
* @param object Database connector object
*/
function __construct(&$db)
{
parent::__construct('#__costbenefitprojection_intervention', 'id', $db);
// Adding History Options
JTableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_costbenefitprojection.intervention'));
}
示例10: __construct
/**
* 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'));
}
示例11: __construct
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'));
}
示例12: __construct
/**
* Constructor
*
* @param JDatabaseDriver $db A database connector object
*/
public function __construct($db)
{
parent::__construct('#__tags', 'id', $db);
JTableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_tags.tag'));
}
示例13: __construct
/**
* Constructor
*
* @param JDatabaseDriver &$_db Database connector object
*
* @since 1.5
*/
public function __construct(&$_db)
{
$this->checked_out_time = $_db->getNullDate();
parent::__construct('#__banner_clients', 'id', $_db);
JTableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_banners.client'));
}
示例14: __construct
/**
* Constructor
*
* @param JDatabaseDriver &$db Database object
*
* @since 2.5
*/
public function __construct(&$db)
{
parent::__construct('#__user_notes', 'id', $db);
JTableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_users.note'));
}
示例15: __construct
/**
* 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'));
}