本文整理汇总了PHP中Payment::getItem方法的典型用法代码示例。如果您正苦于以下问题:PHP Payment::getItem方法的具体用法?PHP Payment::getItem怎么用?PHP Payment::getItem使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Payment
的用法示例。
在下文中一共展示了Payment::getItem方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: execute
function execute()
{
$this->frame = false;
$item = Payment::getItem(Request::get('payment'), 'connection');
$settings = Settings::getHtml(false, $item['settings']);
$this->smarty->assign('settings', $settings);
}
示例2: __construct
public function __construct($plugin, $app)
{
$this->plugin = $plugin;
$this->app = $app;
$item = Payment::getItem($plugin, $app);
$this->settings = $item['settings'];
}
示例3: execute
function execute()
{
$payment = Request::post('payment');
$settings = Payment::getItem($payment, 'connection');
$keys = array_keys($settings['settings']);
$data = array();
foreach ($keys as $key) {
if (!isset($_POST[$key])) {
continue;
}
$data[$key] = Request::post($key);
}
if (isset($data['payment'])) {
unset($data['payment']);
}
$model = new PluginSettingsModel();
$model->updateSetting('connection', $payment, $data);
return true;
}