本文整理汇总了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);
}
示例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)));
}
示例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);
}
示例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();
}
示例5: save
public function save()
{
parent::saveObject();
}
示例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();
}
示例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());
}
示例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");
}