当前位置: 首页>>代码示例>>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;未经允许,请勿转载。