function execute()
 {
     $this->frame = false;
     $item = Payment::getItem(Request::get('payment'), 'connection');
     $settings = Settings::getHtml(false, $item['settings']);
     $this->smarty->assign('settings', $settings);
 }
Пример #2
0
 public function __construct($plugin, $app)
 {
     $this->plugin = $plugin;
     $this->app = $app;
     $item = Payment::getItem($plugin, $app);
     $this->settings = $item['settings'];
 }
 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;
 }