當前位置: 首頁>>代碼示例>>PHP>>正文


PHP vmPlugin::__construct方法代碼示例

本文整理匯總了PHP中vmPlugin::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP vmPlugin::__construct方法的具體用法?PHP vmPlugin::__construct怎麽用?PHP vmPlugin::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在vmPlugin的用法示例。


在下文中一共展示了vmPlugin::__construct方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1:

 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->_tablepkey = 'virtuemart_calc_id';
     $this->_tablename = '#__virtuemart_calc_plg_' . $this->_name;
     $this->_psType = 'calculation';
 }
開發者ID:lenard112,項目名稱:cms,代碼行數:7,代碼來源:vmcalculationplugin.php

示例2: __construct

 /**
  * Constructor
  *
  * @param object $subject The object to observe
  * @param array  $config  An array that holds the plugin configuration
  */
 public function __construct(&$subject, $config = array())
 {
     parent::__construct($subject, $config);
     $this->_path = VMPATH_ROOT . DS . 'plugins' . DS . $this->getName();
     //$lang = JFactory::getLanguage();
     //$lang->load('plg_vmextended_'.$this->getName(),JPATH_ADMINISTRATOR);
 }
開發者ID:cuongnd,項目名稱:etravelservice,代碼行數:13,代碼來源:vmextendedplugin.php

示例3:

 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     // $this->_tablename = '#__virtuemart_userfield_' . $this->_name;
     // $this->_createTable();
     // $this->_tableChecked = true;
 }
開發者ID:denis1001,項目名稱:Virtuemart-2-Joomla-3-Bootstrap,代碼行數:7,代碼來源:vmuserfieldtypeplugin.php

示例4: ucfirst

 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->_tablepkey = 'virtuemart_product_id';
     $this->_tablename = '#__virtuemart_product_' . $this->_psType . '_plg_' . $this->_name;
     $this->_idName = 'virtuemart_custom_id';
     $this->_configTableFileName = $this->_psType . 's';
     $this->_configTableClassName = 'Table' . ucfirst($this->_psType) . 's';
     //TablePaymentmethods
     $this->_configTable = '#__virtuemart_customs';
 }
開發者ID:joselapria,項目名稱:virtuemart,代碼行數:11,代碼來源:vmcustomplugin.php

示例5: ucfirst

 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->_tablepkey = 'id';
     //virtuemart_order_id';
     $this->_idName = 'virtuemart_' . $this->_psType . 'method_id';
     $this->_configTable = '#__virtuemart_' . $this->_psType . 'methods';
     $this->_configTableFieldName = $this->_psType . '_params';
     $this->_configTableFileName = $this->_psType . 'methods';
     $this->_configTableClassName = 'Table' . ucfirst($this->_psType) . 'methods';
     //TablePaymentmethods
     // 		$this->_configTableIdName = $this->_psType.'_jplugin_id';
     $this->_loggable = TRUE;
     //$this->_tableChecked = TRUE;
 }
開發者ID:naka211,項目名稱:studiekorrektur,代碼行數:15,代碼來源:vmpsplugin.php

示例6:

 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->_tablename = '#__virtuemart_coupon_' . $this->_name;
 }
開發者ID:denis1001,項目名稱:Virtuemart-2-Joomla-3-Bootstrap,代碼行數:5,代碼來源:vmcouponplugin.php

示例7: __construct

 /**
  * Constructor
  *
  * @param object $subject The object to observe
  * @param array  $config  An array that holds the plugin configuration
  */
 public function __construct(&$subject, $config = array())
 {
     parent::__construct($subject, $config);
     $this->_path = JPATH_PLUGINS . DS . $this->getName();
     JPlugin::loadLanguage('plg_vmextended_' . $this->getName());
 }
開發者ID:joselapria,項目名稱:virtuemart,代碼行數:12,代碼來源:vmextendedplugin.php


注:本文中的vmPlugin::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。