當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。