當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ilObjectGUI::saveObject方法代碼示例

本文整理匯總了PHP中ilObjectGUI::saveObject方法的典型用法代碼示例。如果您正苦於以下問題:PHP ilObjectGUI::saveObject方法的具體用法?PHP ilObjectGUI::saveObject怎麽用?PHP ilObjectGUI::saveObject使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ilObjectGUI的用法示例。


在下文中一共展示了ilObjectGUI::saveObject方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: save

 /**
  * 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);
 }
開發者ID:Walid-Synakene,項目名稱:ilias,代碼行數:12,代碼來源:class.ilObjExternalFeedGUI.php

示例2: saveObject

 /**
  * 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)));
 }
開發者ID:khanhnnvn,項目名稱:ilias_E-learning,代碼行數:13,代碼來源:class.ilObjStyleSettingsGUI.php

示例3: saveObject

 /**
  * 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);
 }
開發者ID:arlendotcn,項目名稱:ilias,代碼行數:14,代碼來源:class.ilObjAssessmentFolderGUI.php

示例4: saveObject

 /**
  * 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();
 }
開發者ID:Walid-Synakene,項目名稱:ilias,代碼行數:16,代碼來源:class.ilObjAdvancedEditingGUI.php

示例5: save

 public function save()
 {
     parent::saveObject();
 }
開發者ID:arlendotcn,項目名稱:ilias,代碼行數:4,代碼來源:class.ilObject2GUI.php

示例6: 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();
 }
開發者ID:bheyser,項目名稱:qplskl,代碼行數:22,代碼來源:class.ilContainerReferenceGUI.php

示例7: 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());
 }
開發者ID:arlendotcn,項目名稱:ilias,代碼行數:25,代碼來源:class.ilObjWikiGUI.php

示例8: saveObject

 /**
  * 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");
 }
開發者ID:arlendotcn,項目名稱:ilias,代碼行數:18,代碼來源:class.ilObjRoleFolderGUI.php


注:本文中的ilObjectGUI::saveObject方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。