本文整理汇总了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';
}
示例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);
}
示例3:
function __construct(&$subject, $config)
{
parent::__construct($subject, $config);
// $this->_tablename = '#__virtuemart_userfield_' . $this->_name;
// $this->_createTable();
// $this->_tableChecked = true;
}
示例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';
}
示例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;
}
示例6:
function __construct(&$subject, $config)
{
parent::__construct($subject, $config);
$this->_tablename = '#__virtuemart_coupon_' . $this->_name;
}
示例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());
}