예제 #1
0
 function saveItem()
 {
     if ((int) $this->request('i')) {
         $item = new struct_corecatalog_measurement(array('ms_id' => (int) $this->request('i')));
         $item->load();
         $item->CopyToStruct($this->getAllRequest());
         $item->save();
     } elseif ($this->request('adda') == 'add') {
         $item = new struct_corecatalog_measurement($this->getAllRequest());
         $item->ms_langid = $this->getContentLangID();
         $item->insert();
     }
 }