本文整理汇总了PHP中VmTable::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP VmTable::__construct方法的具体用法?PHP VmTable::__construct怎么用?PHP VmTable::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类VmTable
的用法示例。
在下文中一共展示了VmTable::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
/**
* @author Markus �hler
* @author Max Milbers
* @param JDataBase $db
*/
function __construct(&$db)
{
parent::__construct('#__virtuemart_shoppergroups', 'virtuemart_shoppergroup_id', $db);
$this->setUniqueName('shopper_group_name');
$this->setLoggable();
$this->setTableShortCut('sg');
}
示例2:
/**
* @author Max Milbers
* @param $db A database connector object
*/
function __construct(&$db)
{
parent::__construct('#__virtuemart_currencies', 'virtuemart_currency_id', $db);
$this->setUniqueName('currency_name');
$this->setLoggable();
$this->setOrderable();
}
示例3:
/**
* @author Max Milbers
* @param $db A database connector object
*/
function __construct(&$db)
{
parent::__construct('#__virtuemart_rating_votes', 'virtuemart_rating_vote_id', $db);
$this->setPrimaryKey('virtuemart_product_id');
// $this->setObligatoryKeys('vote');
$this->setLoggable();
}
示例4:
/**
* @author Max Milbers
* @param JDataBase $db
*/
function __construct(&$db)
{
parent::__construct('#__virtuemart_rating_reviews', 'virtuemart_rating_review_id', $db);
$this->setPrimaryKey('virtuemart_rating_review_id');
$this->setObligatoryKeys('comment');
$this->setLoggable();
}
示例5:
function __construct(&$db)
{
parent::__construct('#__virtuemart_calcs', 'virtuemart_calc_id', $db);
$this->setObligatoryKeys('calc_name');
$this->setObligatoryKeys('calc_kind');
$this->setLoggable();
}
示例6:
/**
*
* @author Max Milbers
* @param $db Class constructor; connect to the database
*
*/
function __construct($db)
{
parent::__construct('#__virtuemart_invoices', 'virtuemart_invoice_id', $db);
$this->setUniqueName('invoice_number');
$this->setLoggable();
$this->setTableShortCut('inv');
}
示例7:
/**
* @author Max Milbers
* @param JDataBase $db
*/
function __construct(&$db)
{
parent::__construct('#__virtuemart_manufacturercategories', 'virtuemart_manufacturercategories_id', $db);
$this->setUniqueName('mf_category_name');
$this->setLoggable();
$this->setTranslatable(array('mf_category_name', 'mf_category_desc'));
$this->setSlug('mf_category_name');
}
示例8:
/**
* @author RickG
* @author Max Milbers
* @param JDataBase $db
*/
function __construct(&$db)
{
parent::__construct('#__virtuemart_states', 'virtuemart_state_id', $db);
$this->setUniqueName('state_name');
$this->setObligatoryKeys('state_2_code');
$this->setObligatoryKeys('state_3_code');
$this->setLoggable();
}
示例9:
/**
* @author Patrick Kohl
* @param JDataBase $db
*/
function __construct(&$db)
{
parent::__construct('#__virtuemart_customs', 'virtuemart_custom_id', $db);
$this->setUniqueName('custom_title');
$this->setObligatoryKeys('field_type');
$this->setLoggable();
$this->setOrderable('ordering', false);
}
示例10:
/**
* @author Max Milbers
* @param JDataBase $db
*/
function __construct(&$db)
{
parent::__construct('#__virtuemart_medias', 'virtuemart_media_id', $db);
//In a VmTable the primary key is the same as the _tbl_key and therefore not needed
// $this->setPrimaryKey('virtuemart_media_id');
// $this->setUniqueName('file_title');
$this->setLoggable();
}
示例11:
/**
* @author Max Milbers
* @param $db A database connector object
*/
function __construct(&$db)
{
parent::__construct('#__virtuemart_product_customfields', 'virtuemart_customfield_id', $db);
$this->setPrimaryKey('virtuemart_product_id');
// $this->setSecondaryKey('virtuemart_customfield_id');
$this->setLoggable();
$this->setOrderable();
}
示例12:
/**
* @param $db Class constructor; connect to the database
*/
function __construct(&$db)
{
parent::__construct('#__virtuemart_orderstates', 'virtuemart_orderstate_id', $db);
$this->setObligatoryKeys('order_status_code');
$this->setObligatoryKeys('order_status_name');
$this->setObligatoryKeys('order_stock_handle');
$this->setLoggable();
}
示例13:
/**
* @author Max Milbers
* @param JDataBase $db
*/
function __construct(&$db)
{
parent::__construct('#__virtuemart_ratings', 'virtuemart_rating_id', $db);
//In a VmTable the primary key is the same as the _tbl_key and therefore not needed
$this->setPrimaryKey('virtuemart_rating_id');
// $this->setObligatoryKeys('virtuemart_product_id');
$this->setLoggable();
$this->setTableShortCut('r');
}
示例14:
/**
* @author Max Milbers
* @param JDataBase $db
*/
function __construct(&$db)
{
parent::__construct('#__virtuemart_manufacturers', 'virtuemart_manufacturer_id', $db);
$this->setUniqueName('mf_name');
$this->setLoggable();
$this->setTranslatable(array('mf_name', 'mf_email', 'mf_desc', 'mf_url'));
$this->setSlug('mf_name');
$this->setTableShortCut('m');
}
示例15:
/**
* @author Max Milbers
* @param $db A database connector object
*/
function __construct(&$db)
{
parent::__construct('#__virtuemart_countries', 'virtuemart_country_id', $db);
$this->setUniqueName('country_name');
$this->setObligatoryKeys('country_2_code');
$this->setObligatoryKeys('country_3_code');
$this->setLoggable();
$this->setOrderable('ordering', false);
}