ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilObjExternalFeedGUI Class Reference

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 @access public. More...
 
 executeCommand ()
 execute command More...
 
 createObject ()
 create new object form More...
 
 save ($a_feed_block)
 save object @access public More...
 
 afterSave (ilObject $a_new_object, $a_feed_block)
 
 exitSave ()
 Exit save. More...
 
 update ($a_feed_block)
 update object @access public More...
 
 cancelUpdate ()
 Cancel update. More...
 
 afterUpdate ()
 After update. More...
 
 setTabs ()
 get tabs @access public More...
 
- Public Member Functions inherited from ilObjectGUI
 ilObjectGUI ($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
 Constructor @access public. More...
 
executeCommand ()
 execute command More...
 
 withReferences ()
 determines wether objects are referenced or not (got ref ids or not) More...
 
 setCreationMode ($a_mode=true)
 if true, a creation screen is displayed the current $_GET[ref_id] don't belong to the current class! the mode is determined in ilrepositorygui More...
 
 getCreationMode ()
 get creation mode More...
 
 getAdminTabs (&$tabs_gui)
 administration tabs show only permissions and trash folder More...
 
 getHTML ()
 
 confirmedDeleteObject ()
 confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled More...
 
 cancelDeleteObject ()
 cancel deletion of object More...
 
 cancelObject ($in_rep=false)
 cancel action and go back to previous page @access public More...
 
 createObject ()
 create new object form More...
 
 cancelCreation ()
 cancel create action and go back to repository parent More...
 
 saveObject ()
 save object More...
 
 editObject ()
 edit object More...
 
 addExternalEditFormCustom (ilPropertyFormGUI $a_form)
 
 updateObject ()
 updates object entry in object_data More...
 
 getFormAction ($a_cmd, $a_formaction="")
 get form action for command (command is method name without "Object", e.g. More...
 
 isVisible ($a_ref_id, $a_type)
 
 viewObject ()
 list childs of current object More...
 
 deleteObject ($a_error=false)
 Display deletion confirmation screen. More...
 
 cloneAllObject ()
 Clone single (not container object) Method is overwritten in ilContainerGUI. More...
 

Static Public Member Functions

static _goto ($a_target)
 
- Static Public Member Functions inherited from ilObjectGUI
static _gotoRepositoryRoot ($a_raise_error=false)
 Goto repository root. More...
 
static _gotoRepositoryNode ($a_ref_id, $a_cmd="frameset")
 Goto repository root. More...
 

Additional Inherited Members

- Data Fields inherited from ilObjectGUI
const COPY_WIZARD_NEEDS_PAGE = 1
 
 $ilias
 
 $objDefinition
 
 $tpl
 
 $tree
 
 $lng
 
 $data
 
 $object
 
 $ref_id
 
 $obj_id
 
 $maxcount
 
 $formaction
 
 $return_location
 
 $target_frame
 
 $tab_target_script
 
 $actions
 
 $sub_objects
 
 $omit_locator = false
 
const CFORM_NEW = 1
 
const CFORM_IMPORT = 2
 
const CFORM_CLONE = 3
 
- Protected Member Functions inherited from ilObjectGUI
 assignObject ()
 
 prepareOutput ()
 prepare output More...
 
 setTitleAndDescription ()
 called by prepare output More...
 
 initHeaderAction ($a_sub_type=null, $a_sub_id=null)
 Add header action menu. More...
 
 insertHeaderAction ($a_list_gui)
 Insert header action into main template. More...
 
 addHeaderAction ()
 Add header action menu. More...
 
 redrawHeaderActionObject ()
 Ajax call: redraw action header only. More...
 
 showMountWebfolderIcon ()
 
 setTabs ()
 set admin tabs @access public More...
 
 setAdminTabs ()
 set admin tabs @access public More...
 
 setLocator ()
 set Locator More...
 
 addLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 omitLocator ($a_omit=true)
 
 addAdminLocatorItems ($a_do_not_add_object=false)
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 initCreationForms ($a_new_type)
 Init creation froms. More...
 
 getCreationFormsHTML (array $a_forms)
 Get HTML for creation forms (accordion) More...
 
 initCreateForm ($a_new_type)
 Init object creation form. More...
 
 initDidacticTemplate (ilPropertyFormGUI $form)
 Show didactic template types. More...
 
 addDidacticTemplateOptions (array &$a_options)
 Add custom templates. More...
 
 getDidacticTemplateVar ($a_type)
 Get didactic template setting from creation screen. More...
 
 putObjectInTree (ilObject $a_obj, $a_parent_node_id=null)
 Add object to tree at given position. More...
 
 afterSave (ilObject $a_new_object)
 Post (successful) object creation hook. More...
 
 initEditForm ()
 Init object edit form. More...
 
 initEditCustomForm (ilPropertyFormGUI $a_form)
 Add custom fields to update form. More...
 
 getEditFormValues ()
 Get values for edit form. More...
 
 getEditFormCustomValues (array &$a_values)
 Add values to custom edit fields. More...
 
 validateCustom (ilPropertyFormGUI $a_form)
 Validate custom values (if not possible with checkInput()) More...
 
 updateCustom (ilPropertyFormGUI $a_form)
 Insert custom update form values into object. More...
 
 afterUpdate ()
 Post (successful) object update hook. More...
 
 initImportForm ($a_new_type)
 Init object import form. More...
 
 importFileObject ($parent_id=null, $a_catch_errors=true)
 Import. More...
 
 afterImport (ilObject $a_new_object)
 Post (successful) object import hook. More...
 
 setFormAction ($a_cmd, $a_formaction)
 set specific form action for command More...
 
 getReturnLocation ($a_cmd, $a_location="")
 get return location for command (command is method name without "Object", e.g. More...
 
 setReturnLocation ($a_cmd, $a_location)
 set specific return location for command More...
 
 getTargetFrame ($a_cmd, $a_target_frame="")
 get target frame for command (command is method name without "Object", e.g. More...
 
 setTargetFrame ($a_cmd, $a_target_frame)
 set specific target frame for command More...
 
 showPossibleSubObjects ()
 show possible subobjects (pulldown menu) More...
 
 getTemplateFile ($a_cmd, $a_type="")
 get a template blockfile format: tpl. More...
 
 getTitlesByRefId ($a_ref_ids)
 get Titles of objects this method is used for error messages in methods cut/copy/paste More...
 
 getTabs (&$tabs_gui)
 get tabs abstract method. More...
 
 __showButton ($a_cmd, $a_text, $a_target='')
 
 hitsperpageObject ()
 
__initTableGUI ()
 
 __setTableGUIBasicData (&$tbl, &$result_set, $a_from="")
 standard implementation for tables use 'from' variable use different initial setting of table More...
 
 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 save/import method where the object gui type (of the new object) doesn't match with the type of the current $_GET["ref_id"] value More...
 
 fillCloneTemplate ($a_tpl_varname, $a_type)
 Fill object clone template This method can be called from any object GUI class that wants to offer object cloning. More...
 
 getCenterColumnHTML ()
 Get center column. More...
 
 getRightColumnHTML ()
 Display right column. More...
 
 setColumnSettings ($column_gui)
 May be overwritten in subclasses. More...
 
 checkPermission ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission and redirect on error. More...
 
 checkPermissionBool ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission. More...
 
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files. More...
 
 handleAutoRating (ilObject $a_new_obj)
 Activate rating automatically if parent container setting. More...
 
- Protected Attributes inherited from ilObjectGUI
 $tmp_import_dir
 

Detailed Description

Member Function Documentation

◆ _goto()

static ilObjExternalFeedGUI::_goto (   $a_target)
static

Definition at line 203 of file class.ilObjExternalFeedGUI.php.

204 {
205 global $tree;
206
207 $id = explode("_", $a_target);
208 $ref_id = $id[0];
209
210 // is sideblock: so show parent instead
211 $container_id = $tree->getParentId($ref_id);
212
213 // #14870
214 include_once "Services/Link/classes/class.ilLink.php";
215 ilUtil::redirect(ilLink::_getLink($container_id));
216 }
static redirect($a_script)
http redirect to other script

References ilObjectGUI\$ref_id, ilObjectGUI\$tree, ilLink\_getLink(), and ilUtil\redirect().

+ Here is the call graph for this function:

◆ afterSave()

ilObjExternalFeedGUI::afterSave ( ilObject  $a_new_object,
  $a_feed_block 
)

Definition at line 102 of file class.ilObjExternalFeedGUI.php.

103 {
104 // saveObject() parameters are sent as array
105 $a_feed_block = $a_feed_block[0];
106
107 $a_feed_block->setContextObjId($a_new_object->getId());
108 $a_feed_block->setContextObjType("feed");
109 }
getId()
get object id @access public

References ilObject\getId().

+ Here is the call graph for this function:

◆ afterUpdate()

ilObjExternalFeedGUI::afterUpdate ( )

After update.

Reimplemented from ilObjectGUI.

Definition at line 152 of file class.ilObjExternalFeedGUI.php.

153 {
154 global $tree;
155
156 $par = $tree->getParentId($_GET["ref_id"]);
157 $_GET["ref_id"] = $par;
158 $this->redirectToRefId($par);
159 }
$_GET["client_id"]
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...

References $_GET, ilObjectGUI\$tree, and ilObjectGUI\redirectToRefId().

+ Here is the call graph for this function:

◆ cancelUpdate()

ilObjExternalFeedGUI::cancelUpdate ( )

Cancel update.

Definition at line 139 of file class.ilObjExternalFeedGUI.php.

140 {
141 global $tree;
142
143 $par = $tree->getParentId($_GET["ref_id"]);
144 $_GET["ref_id"] = $par;
145 $this->redirectToRefId($par);
146 }

References $_GET, ilObjectGUI\$tree, and ilObjectGUI\redirectToRefId().

+ Here is the call graph for this function:

◆ createObject()

ilObjExternalFeedGUI::createObject ( )

create new object form

@access public

Reimplemented from ilObjectGUI.

Definition at line 81 of file class.ilObjExternalFeedGUI.php.

82 {
83 global $ilCtrl;
84 $ilCtrl->setCmdClass("ilexternalfeedblockgui");
85 $ilCtrl->setCmd("create");
86 return $this->executeCommand();
87 }
global $ilCtrl
Definition: ilias.php:18

References $ilCtrl, and executeCommand().

+ Here is the call graph for this function:

◆ executeCommand()

ilObjExternalFeedGUI::executeCommand ( )

execute command

Reimplemented from ilObjectGUI.

Definition at line 28 of file class.ilObjExternalFeedGUI.php.

29 {
30 global $tpl, $ilTabs;
31
32 $next_class = $this->ctrl->getNextClass($this);
33
34 switch($next_class)
35 {
36 case 'ilpermissiongui':
37 $this->prepareOutput();
38 $ilTabs->activateTab("id_permissions");
39 include_once("Services/AccessControl/classes/class.ilPermissionGUI.php");
40 $perm_gui =& new ilPermissionGUI($this);
41 $ret =& $this->ctrl->forwardCommand($perm_gui);
42 break;
43
44 case "ilexternalfeedblockgui":
45 $this->prepareOutput();
46 $ilTabs->activateTab("id_settings");
47 include_once("./Services/Block/classes/class.ilExternalFeedBlockGUI.php");
48 $fb_gui =& new ilExternalFeedBlockGUI();
49 $fb_gui->setGuiObject($this);
50 if (is_object($this->object))
51 {
52 $fb_gui->setRefId($this->object->getRefId());
53 }
54 $ret =& $this->ctrl->forwardCommand($fb_gui);
55 $tpl->setContent($ret);
56 break;
57
58 case "ilexportgui":
59 $this->prepareOutput();
60 $ilTabs->activateTab("export");
61 include_once("./Services/Export/classes/class.ilExportGUI.php");
62 $exp_gui = new ilExportGUI($this);
63 $exp_gui->addFormat("xml");
64 $ret = $this->ctrl->forwardCommand($exp_gui);
65// $this->tpl->show();
66 break;
67
68 default:
69 $cmd = $this->ctrl->getCmd("view");
70 if ($cmd != "create")
71 {
72 $this->prepareOutput();
73 }
74 $cmd .= "Object";
75 $this->$cmd();
76 break;
77 }
78 return true;
79 }
Export User Interface Class.
BlockGUI class for external feed block.
prepareOutput()
prepare output
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
$cmd
Definition: sahs_server.php:35

References $cmd, $ret, ilObjectGUI\$tpl, and ilObjectGUI\prepareOutput().

Referenced by createObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ exitSave()

ilObjExternalFeedGUI::exitSave ( )

Exit save.

Definition at line 115 of file class.ilObjExternalFeedGUI.php.

116 {
117 global $ilCtrl;
118
119 // always send a message
120 ilUtil::sendSuccess($this->lng->txt("object_added"), true);
121 $this->ctrl->returnToParent($this);
122 }
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.

References $ilCtrl, and ilUtil\sendSuccess().

+ Here is the call graph for this function:

◆ ilObjExternalFeedGUI()

ilObjExternalFeedGUI::ilObjExternalFeedGUI (   $a_data,
  $a_id,
  $a_call_by_reference,
  $a_prepare_output = true 
)

Constructor @access public.

Definition at line 21 of file class.ilObjExternalFeedGUI.php.

22 {
23 $this->type = "feed";
24 $this->ilObjectGUI($a_data,$a_id,$a_call_by_reference,$a_prepare_output);
25 }
ilObjectGUI($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
Constructor @access public.

References ilObjectGUI\ilObjectGUI().

+ Here is the call graph for this function:

◆ save()

ilObjExternalFeedGUI::save (   $a_feed_block)

save object @access public

Definition at line 93 of file class.ilObjExternalFeedGUI.php.

94 {
95 // create and insert forum in objecttree
96 $_REQUEST["new_type"] = "feed";
97 $_POST["title"] = $a_feed_block->getTitle();
98 $_POST["desc"] = $a_feed_block->getFeedUrl();
99 parent::saveObject($a_feed_block);
100 }
$_POST['username']
Definition: cron.php:12
if($_REQUEST['ilias_path']) define('ILIAS_HTTP_PATH' $_REQUEST['ilias_path']
Definition: index.php:7

References $_POST, and $_REQUEST.

◆ setTabs()

ilObjExternalFeedGUI::setTabs ( )

get tabs @access public

Reimplemented from ilObjectGUI.

Definition at line 165 of file class.ilObjExternalFeedGUI.php.

166 {
167 global $ilAccess, $ilCtrl, $ilTabs, $lng, $ilHelp;
168
169 if (in_array($ilCtrl->getCmd(), array("create", "saveFeedBlock")))
170 {
171 return;
172 }
173 $ilHelp->setScreenIdComponent("feed");
174
175 $ilCtrl->setParameterByClass("ilexternalfeedblockgui", "external_feed_block_id",
176 $_GET["external_feed_block_id"]);
177 $ilCtrl->saveParameter($this, "external_feed_block_id");
178
179 if ($ilAccess->checkAccess('write', '', $this->object->getRefId()))
180 {
181 $ilTabs->addTab("id_settings",
182 $lng->txt("settings"),
183 $this->ctrl->getLinkTargetByClass("ilexternalfeedblockgui", "editFeedBlock"));
184 }
185
186 // export
187 if ($ilAccess->checkAccess("write", "", $this->object->getRefId()) && DEVMODE == 1)
188 {
189 $ilTabs->addTab("export",
190 $lng->txt("export"),
191 $this->ctrl->getLinkTargetByClass("ilexportgui", ""));
192 }
193
194
195 if($ilAccess->checkAccess('edit_permission', '', $this->object->getRefId()))
196 {
197 $ilTabs->addTab("id_permissions",
198 $lng->txt("perm_settings"),
199 $this->ctrl->getLinkTargetByClass("ilpermissiongui", "perm"));
200 }
201 }

References $_GET, $ilCtrl, and ilObjectGUI\$lng.

◆ update()

ilObjExternalFeedGUI::update (   $a_feed_block)

update object @access public

Definition at line 128 of file class.ilObjExternalFeedGUI.php.

129 {
130 $_POST["title"] = $a_feed_block->getTitle();
131 $_POST["desc"] = $a_feed_block->getFeedUrl();
132 parent::updateObject();
133 }

References $_POST.


The documentation for this class was generated from the following file: