Beispiel #1
0
 function ajaxSubmit($data)
 {
     $config = $this->user->getConfig();
     if (isset($config)) {
         $data = array_merge($config, $data);
     }
     $s = new Set();
     $s->setXmlns('movim:prefs')->setData(serialize($data))->request();
 }
Beispiel #2
0
 function ajaxSubmit($data)
 {
     if (!$this->validateForm($data)) {
         $this->refreshConfig();
         Notification::append(null, $this->__('config.not_valid'));
         return;
     }
     $config = $this->user->getConfig();
     if (isset($config)) {
         $data = array_merge($config, $data);
     }
     $s = new Set();
     $s->setXmlns('movim:prefs')->setData(serialize($data))->request();
 }