/** * Save advnced properties */ public function setadvancedAction() { $errors = array(); foreach (Ext_Grid::$advancedProperties as $key => $type) { $value = Request::post($key, $type, ''); if (!$this->_object->setAdvancedProperty($key, $value)) { $errors[$key] = $this->_lang->INVALID_VALUE; } } if (empty($errors)) { $this->_storeProject(); Response::jsonSuccess(); } else { Response::jsonError($this->_lang->INVALID_VALUE, $errors); } }