本文整理匯總了PHP中Gateway::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Gateway::__construct方法的具體用法?PHP Gateway::__construct怎麽用?PHP Gateway::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Gateway
的用法示例。
在下文中一共展示了Gateway::__construct方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
/**
* Constructor
*
* @param \Zend\Config\Config $config VuFind configuration
*/
public function __construct(\Zend\Config\Config $config)
{
// Use a special row class when we're in privacy mode:
$privacy = isset($config->Authentication->privacy) && $config->Authentication->privacy;
$rowClass = 'VuFind\\Db\\Row\\' . ($privacy ? 'PrivateUser' : 'User');
parent::__construct('user', $rowClass);
$this->config = $config;
}
示例2: __construct
public function __construct($client = NULL)
{
parent::__construct($client);
self::$shipping_by_product = Gateway::getConfig('SHIPPING_BY_PRODUCT');
self::$shipping_by_product_fieldname = Gateway::getConfig('SHIPPING_BY_PRODUCT_FIELDNAME');
if (Gateway::getConfig('CUSTOMIZABLE_FIELDS')) {
$customizable_fields = explode('¤', Gateway::getConfig('CUSTOMIZABLE_FIELDS'));
foreach ($customizable_fields as $customizable_field) {
$customizable_value = explode('|', $customizable_field);
self::$customizable_field[$customizable_value[0]] = $customizable_value[1];
}
}
}
示例3: __construct
/**
* Constructor
*/
public function __construct()
{
parent::__construct('change_tracker', 'VuFind\\Db\\Row\\ChangeTracker');
}
示例4: __construct
/**
* Constructor
*
* @param \Zend\Config\Config $config VuFind configuration
*/
public function __construct(\Zend\Config\Config $config)
{
parent::__construct('user', 'VuFind\\Db\\Row\\User');
$this->config = $config;
}
示例5: __construct
/**
* Constructor
*/
public function __construct()
{
parent::__construct('user_stats_fields');
}
示例6: __construct
public function __construct()
{
parent::__construct();
}