/**
  * save object
  * @access	public
  */
 function save($a_feed_block)
 {
     // create and insert forum in objecttree
     $_REQUEST["new_type"] = "feed";
     $_POST["title"] = $a_feed_block->getTitle();
     $_POST["desc"] = $a_feed_block->getFeedUrl();
     parent::saveObject($a_feed_block);
 }
 /**
  * Save object
  */
 function saveObject()
 {
     global $rbacadmin;
     // create and insert forum in objecttree
     $newObj = parent::saveObject();
     // put here object specific stuff
     // always send a message
     ilUtil::sendInfo($this->lng->txt("object_added"), true);
     ilUtil::redirect($this->getReturnLocation("save", $this->ctrl->getLinkTarget($this, "", "", false, false)));
 }
 /**
  * save object
  * @access	public
  */
 public function saveObject()
 {
     global $rbacadmin;
     // create and insert forum in objecttree
     $newObj = parent::saveObject();
     // put here object specific stuff
     // always send a message
     ilUtil::sendSuccess($this->lng->txt("object_added"), true);
     $this->ctrl->redirect($this);
 }
 /**
  * save object
  * @access	public
  */
 function saveObject()
 {
     global $rbacadmin;
     // create and insert forum in objecttree
     $newObj = parent::saveObject();
     // put here object specific stuff
     // always send a message
     ilUtil::sendSuccess($this->lng->txt("object_added"), true);
     $this->ctrl->redirect($this);
     //header("Location:".$this->getReturnLocation("save","adm_object.php?".$this->link_params));
     //exit();
 }
 public function save()
 {
     parent::saveObject();
 }
 /**
  * save object
  *
  * @access public
  * @param
  * @return
  */
 public function saveObject()
 {
     global $ilAccess;
     if (!(int) $_REQUEST['target_id']) {
         ilUtil::sendFailure($this->lng->txt('select_one'));
         $this->createObject();
         return false;
     }
     if (!$ilAccess->checkAccess('visible', '', (int) $_REQUEST['target_id'])) {
         ilUtil::sendFailure($this->lng->txt('permission_denied'));
         $this->createObject();
         return false;
     }
     parent::saveObject();
 }
 /**
  * save object
  * @access	public
  */
 function saveObject()
 {
     global $tpl, $lng, $rbacsystem;
     if (!$this->checkPermissionBool("create", "", "wiki", $_GET["ref_id"])) {
         $this->ilias->raiseError($this->lng->txt("permission_denied"), $this->ilias->error_obj->MESSAGE);
     }
     $this->initSettingsForm("create");
     if ($this->form_gui->checkInput()) {
         if (!ilObjWiki::checkShortTitleAvailability($this->form_gui->getInput("shorttitle"))) {
             $short_item = $this->form_gui->getItemByPostVar("shorttitle");
             $short_item->setAlert($lng->txt("wiki_short_title_already_in_use"));
         } else {
             // create and insert forum in objecttree
             $_POST["title"] = $this->form_gui->getInput("title");
             $_POST["desc"] = $this->form_gui->getInput("description");
             return parent::saveObject();
         }
     }
     $this->form_gui->setValuesByPost();
     $tpl->setContent($this->form_gui->getHtml());
 }
 /**
  * save object
  * @access	public
  */
 function saveObject()
 {
     global $rbacadmin;
     // role folders are created automatically
     $_GET["new_type"] = $this->object->getType();
     $_POST["Fobject"]["title"] = $this->object->getTitle();
     $_POST["Fobject"]["desc"] = $this->object->getDescription();
     // always call parent method first to create an object_data entry & a reference
     $newObj = parent::saveObject();
     // put here your object specific stuff
     // always send a message
     ilUtil::sendSuccess($this->lng->txt("rolf_added"), true);
     $this->ctrl->redirect($this, "view");
 }