Class ilObjExternalFeedGUI. More...
Inheritance diagram for ilObjExternalFeedGUI:
Collaboration diagram for ilObjExternalFeedGUI:Public Member Functions | |
| ilObjExternalFeedGUI ($a_data, $a_id, $a_call_by_reference, $a_prepare_output=true) | |
| Constructor public. | |
| & | executeCommand () |
| execute command | |
| createObject () | |
| create new object form | |
| save ($a_feed_block) | |
| save object public | |
| exitSave () | |
| Exit save. | |
| update ($a_feed_block) | |
| update object public | |
| cancelUpdate () | |
| Cancel update. | |
| afterUpdate () | |
| After update. | |
| getTabs (&$tabs_gui) | |
| get tabs public | |
Class ilObjExternalFeedGUI.
ilObjExternalFeedGUI: ilExternalFeedBlockGUI, ilPermissionGUI ilObjExternalFeedGUI: ilRepositoryGUI, ilAdministrationGUI
Definition at line 35 of file class.ilObjExternalFeedGUI.php.
| ilObjExternalFeedGUI::afterUpdate | ( | ) |
After update.
Reimplemented from ilObjectGUI.
Definition at line 172 of file class.ilObjExternalFeedGUI.php.
References $_GET, $ilCtrl, ilObjectGUI::$tree, and ilObjectGUI::redirectToRefId().
{
global $ilCtrl, $tree;
// always send a message
$par = $tree->getParentId($_GET["ref_id"]);
$_GET["ref_id"] = $par;
$this->redirectToRefId($par);
}
Here is the call graph for this function:| ilObjExternalFeedGUI::cancelUpdate | ( | ) |
Cancel update.
Definition at line 154 of file class.ilObjExternalFeedGUI.php.
References $_GET, $ilCtrl, ilObjectGUI::$tree, and ilObjectGUI::redirectToRefId().
{
global $ilCtrl, $tree;
// always send a message
//ilUtil::sendInfo($this->lng->txt("object_added"), true);
$par = $tree->getParentId($_GET["ref_id"]);
$_GET["ref_id"] = $par;
$this->redirectToRefId($par);
//$this->ctrl->returnToParent($this);
}
Here is the call graph for this function:| ilObjExternalFeedGUI::createObject | ( | ) |
create new object form
public
Reimplemented from ilObjectGUI.
Definition at line 89 of file class.ilObjExternalFeedGUI.php.
References $ilCtrl, and executeCommand().
{
global $ilCtrl;
$ilCtrl->setCmdClass("ilexternalfeedblockgui");
$ilCtrl->setCmd("create");
return $this->executeCommand();
}
Here is the call graph for this function:| & ilObjExternalFeedGUI::executeCommand | ( | ) |
execute command
Reimplemented from ilObjectGUI.
Definition at line 48 of file class.ilObjExternalFeedGUI.php.
References $cmd, $ret, ilObjectGUI::$tpl, and ilObjectGUI::prepareOutput().
Referenced by createObject().
{
global $rbacsystem, $tpl;
$next_class = $this->ctrl->getNextClass($this);
switch($next_class)
{
case 'ilpermissiongui':
$this->prepareOutput();
include_once("./classes/class.ilPermissionGUI.php");
$perm_gui =& new ilPermissionGUI($this);
$ret =& $this->ctrl->forwardCommand($perm_gui);
break;
case "ilexternalfeedblockgui":
$this->prepareOutput();
include_once("./Services/Block/classes/class.ilExternalFeedBlockGUI.php");
$fb_gui =& new ilExternalFeedBlockGUI();
$fb_gui->setGuiObject($this);
if (is_object($this->object))
{
$fb_gui->setRefId($this->object->getRefId());
}
$ret =& $this->ctrl->forwardCommand($fb_gui);
$tpl->setContent($ret);
break;
default:
$cmd = $this->ctrl->getCmd("view");
if ($cmd != "create")
{
$this->prepareOutput();
}
$cmd .= "Object";
$this->$cmd();
break;
}
return true;
}
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjExternalFeedGUI::exitSave | ( | ) |
Exit save.
Definition at line 127 of file class.ilObjExternalFeedGUI.php.
References $ilCtrl, and ilUtil::sendInfo().
{
global $ilCtrl;
// always send a message
ilUtil::sendInfo($this->lng->txt("object_added"), true);
$this->ctrl->returnToParent($this);
}
Here is the call graph for this function:| ilObjExternalFeedGUI::getTabs | ( | &$ | tabs_gui | ) |
get tabs public
| object | tabs gui object |
Reimplemented from ilObjectGUI.
Definition at line 188 of file class.ilObjExternalFeedGUI.php.
References $_GET, and $ilCtrl.
{
global $rbacsystem, $ilCtrl;
if (in_array($ilCtrl->getCmd(), array("create", "saveFeedBlock")))
{
return;
}
$ilCtrl->setParameterByClass("ilexternalfeedblockgui", "external_feed_block_id",
$_GET["external_feed_block_id"]);
$ilCtrl->saveParameter($this, "external_feed_block_id");
if ($rbacsystem->checkAccess('write', $this->object->getRefId()))
{
$force_active = ($_GET["cmd"] == "edit" ||
$this->ctrl->getNextClass() == "ilexternalfeedblockgui")
? true
: false;
$tabs_gui->addTarget("edit_properties",
$this->ctrl->getLinkTargetByClass("ilexternalfeedblockgui", "editFeedBlock"),
"edit", get_class($this),
"", $force_active);
}
if($rbacsystem->checkAccess('edit_permission',$this->object->getRefId()))
{
$tabs_gui->addTarget("perm_settings",
$this->ctrl->getLinkTargetByClass("ilpermissiongui", "perm"), "", "ilpermissiongui");
}
}
| ilObjExternalFeedGUI::ilObjExternalFeedGUI | ( | $ | a_data, | |
| $ | a_id, | |||
| $ | a_call_by_reference, | |||
| $ | a_prepare_output = true | |||
| ) |
Constructor public.
Definition at line 41 of file class.ilObjExternalFeedGUI.php.
References ilObjectGUI::ilObjectGUI().
{
$this->type = "feed";
$this->ilObjectGUI($a_data,$a_id,$a_call_by_reference,$a_prepare_output);
}
Here is the call graph for this function:| ilObjExternalFeedGUI::save | ( | $ | a_feed_block | ) |
save object public
Definition at line 101 of file class.ilObjExternalFeedGUI.php.
References $_GET, and ilObjectGUI::saveObject().
{
global $rbacadmin, $ilUser;
// create and insert forum in objecttree
$_GET["new_type"] = "feed";
$_POST["Fobject"]["title"] = $a_feed_block->getTitle();
$_POST["Fobject"]["desc"] = $a_feed_block->getFeedUrl();
$newObj = parent::saveObject();
$newObj->setOwner($ilUser->getId());
$newObj->updateOwner();
$a_feed_block->setContextObjId($newObj->getId());
$a_feed_block->setContextObjType("feed");
// setup rolefolder & default local roles
//$roles = $newObj->initDefaultRoles();
// ...finally assign role to creator of object
//$rbacadmin->assignUser($roles[0], $newObj->getOwner(), "y");
}
Here is the call graph for this function:| ilObjExternalFeedGUI::update | ( | $ | a_feed_block | ) |
update object public
Definition at line 140 of file class.ilObjExternalFeedGUI.php.
References ilObjectGUI::updateObject().
{
global $rbacadmin;
// update object
$_POST["Fobject"]["title"] = $a_feed_block->getTitle();
$_POST["Fobject"]["desc"] = $a_feed_block->getFeedUrl();
$newObj = parent::updateObject();
}
Here is the call graph for this function:
1.7.1