public function guide_item_add() { $type = (int) getRequest('param0'); $mode = (string) getRequest('param1'); $inputData = Array("type-id" => $type); if($mode == "do") { $object = $this->saveAddedObjectData($inputData); $this->chooseRedirect($this->pre_lang . '/admin/data/guide_item_edit/' . $object->getId() . '/'); } else if ($mode == 'fast') { $objects = umiObjectsCollection::getINstance(); try { $objects->addObject(null, $type); } catch(fieldRestrictionException $e) {} } $this->setDataType("form"); $this->setActionType("create"); $data = $this->prepareData($inputData, "object"); $this->setData($data); return $this->doData(); }