当前位置: 首页>>代码示例>>PHP>>正文


PHP VmTable::__construct方法代码示例

本文整理汇总了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');
 }
开发者ID:denis1001,项目名称:Virtuemart-2-Joomla-3-Bootstrap,代码行数:12,代码来源:shoppergroups.php

示例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();
 }
开发者ID:joselapria,项目名称:virtuemart,代码行数:11,代码来源:currencies.php

示例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();
 }
开发者ID:joselapria,项目名称:virtuemart,代码行数:11,代码来源:rating_votes.php

示例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();
 }
开发者ID:denis1001,项目名称:Virtuemart-2-Joomla-3-Bootstrap,代码行数:11,代码来源:rating_reviews.php

示例5:

 function __construct(&$db)
 {
     parent::__construct('#__virtuemart_calcs', 'virtuemart_calc_id', $db);
     $this->setObligatoryKeys('calc_name');
     $this->setObligatoryKeys('calc_kind');
     $this->setLoggable();
 }
开发者ID:brenot,项目名称:forumdesenvolvimento,代码行数:7,代码来源:calcs.php

示例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');
 }
开发者ID:cybershocik,项目名称:Darek,代码行数:13,代码来源:invoices.php

示例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');
 }
开发者ID:brenot,项目名称:forumdesenvolvimento,代码行数:12,代码来源:manufacturercategories.php

示例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();
 }
开发者ID:denis1001,项目名称:Virtuemart-2-Joomla-3-Bootstrap,代码行数:13,代码来源:states.php

示例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);
 }
开发者ID:denis1001,项目名称:Virtuemart-2-Joomla-3-Bootstrap,代码行数:12,代码来源:customs.php

示例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();
 }
开发者ID:brenot,项目名称:forumdesenvolvimento,代码行数:12,代码来源:medias.php

示例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();
 }
开发者ID:joselapria,项目名称:virtuemart,代码行数:12,代码来源:product_customfields.php

示例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();
 }
开发者ID:joselapria,项目名称:virtuemart,代码行数:11,代码来源:orderstates.php

示例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');
 }
开发者ID:Arturogcalleja,项目名称:herbolario,代码行数:13,代码来源:ratings.php

示例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');
 }
开发者ID:brenot,项目名称:forumdesenvolvimento,代码行数:13,代码来源:manufacturers.php

示例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);
 }
开发者ID:Gskflute,项目名称:joomla25,代码行数:13,代码来源:countries.php


注:本文中的VmTable::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。