4require_once 
"./Services/Object/classes/class.ilObjectGUI.php";
 
   31    public function __construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output = 
true)
 
   35        $this->tpl = 
$DIC[
"tpl"];
 
   36        $this->tabs = 
$DIC->tabs();
 
   37        $this->ctrl = 
$DIC->ctrl();
 
   38        $this->tree = 
$DIC->repositoryTree();
 
   39        $this->access = 
$DIC->access();
 
   40        $this->lng = 
$DIC->language();
 
   41        $this->help = 
$DIC[
"ilHelp"];
 
   43        parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
 
   52        $next_class = $this->ctrl->getNextClass($this);
 
   54        switch ($next_class) {
 
   55            case 'ilpermissiongui':
 
   57                $ilTabs->activateTab(
"id_permissions");
 
   58                include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
 
   60                $ret = $this->ctrl->forwardCommand($perm_gui);
 
   63            case "ilexternalfeedblockgui":
 
   65                $ilTabs->activateTab(
"id_settings");
 
   66                include_once(
"./Services/Block/classes/class.ilExternalFeedBlockGUI.php");
 
   68                $fb_gui->setGuiObject($this);
 
   69                if (is_object($this->
object)) {
 
   70                    $fb_gui->setRefId($this->object->getRefId());
 
   72                $ret = $this->ctrl->forwardCommand($fb_gui);
 
   78                $ilTabs->activateTab(
"export");
 
   79                include_once(
"./Services/Export/classes/class.ilExportGUI.php");
 
   81                $exp_gui->addFormat(
"xml");
 
   82                $ret = $this->ctrl->forwardCommand($exp_gui);
 
   87                $cmd = $this->ctrl->getCmd(
"view");
 
   88                if ($cmd != 
"create") {
 
  101        $ilCtrl->setCmdClass(
"ilexternalfeedblockgui");
 
  110    public function save($a_feed_block)
 
  113        $_REQUEST[
"new_type"] = 
"feed";
 
  114        $_POST[
"title"] = $a_feed_block->getTitle();
 
  115        $_POST[
"desc"] = $a_feed_block->getFeedUrl();
 
  116        parent::saveObject($a_feed_block);
 
  121        if ($a_feed_block != 
null) {
 
  123            $a_feed_block = $a_feed_block[0];
 
  125            $a_feed_block->setContextObjId($a_new_object->
getId());
 
  126            $a_feed_block->setContextObjType(
"feed");
 
  140        $this->ctrl->returnToParent($this);
 
  149        $_POST[
"title"] = $a_feed_block->getTitle();
 
  150        $_POST[
"desc"] = $a_feed_block->getFeedUrl();
 
  151        parent::updateObject();
 
  163        $_GET[
"ref_id"] = $par;
 
  176        $_GET[
"ref_id"] = $par;
 
  192        if (in_array(
$ilCtrl->getCmd(), array(
"create", 
"saveFeedBlock"))) {
 
  195        $ilHelp->setScreenIdComponent(
"feed");
 
  198            "ilexternalfeedblockgui",
 
  199            "external_feed_block_id",
 
  200            $_GET[
"external_feed_block_id"]
 
  202        $ilCtrl->saveParameter($this, 
"external_feed_block_id");
 
  204        if ($ilAccess->checkAccess(
'write', 
'', $this->object->getRefId())) {
 
  207                $lng->txt(
"settings"),
 
  208                $this->ctrl->getLinkTargetByClass(
"ilexternalfeedblockgui", 
"editFeedBlock")
 
  213        if ($ilAccess->checkAccess(
"write", 
"", $this->object->getRefId()) && DEVMODE == 1) {
 
  217                $this->ctrl->getLinkTargetByClass(
"ilexportgui", 
"")
 
  222        if ($ilAccess->checkAccess(
'edit_permission', 
'', $this->object->getRefId())) {
 
  225                $lng->txt(
"perm_settings"),
 
  226                $this->ctrl->getLinkTargetByClass(
"ilpermissiongui", 
"perm")
 
  231    public static function _goto($a_target)
 
  237        $id = explode(
"_", $a_target);
 
  244        include_once 
"Services/Link/classes/class.ilLink.php";
 
An exception for terminatinating execution or to throw for unit testing.
Export User Interface Class.
BlockGUI class for external feed block.
static _getLink($a_ref_id, $a_type='', $a_params=array(), $append="")
Class ilObjExternalFeedGUI.
save($a_feed_block)
save object @access public
update($a_feed_block)
update object @access public
cancelUpdate()
Cancel update.
afterSave(ilObject $a_new_object, $a_feed_block=null)
__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output=true)
Constructor @access public.
createObject()
create new object form
setTabs()
get tabs @access public
afterUpdate()
After update.
executeCommand()
execute command
Class ilObjectGUI Basic methods of all Output classes.
prepareOutput($a_show_subobjects=true)
prepare output
redirectToRefId($a_ref_id, $a_cmd="")
redirects to (repository) view per ref id usually to a container and usually used at the end of a sav...
Class ilObject Basic functions for all objects.
getId()
get object id @access public
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static redirect($a_script)
if(!array_key_exists('StateId', $_REQUEST)) $id