ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilObjDataCollectionGUI Class Reference

Class ilObjDataCollectionGUI. More...

+ Inheritance diagram for ilObjDataCollectionGUI:
+ Collaboration diagram for ilObjDataCollectionGUI:

Public Member Functions

 getStandardCmd ()
 
 getType ()
 
 infoScreen ()
 this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually, if everything works through ilCtrl in the future this may be changed More...
 
 render ()
 show Content; redirect to ilDclRecordListGUI::listRecords More...
 
 infoScreenForward ()
 show information screen More...
 
 addLocatorItems ()
 Functions to be overwritten. More...
 
 setTabs ()
 setTabs create tabs (repository/workspace switch) More...
 
 listRecords ()
 called by goto More...
 
 getDataCollectionObject ()
 
 getEditFormCustomValues (array &$a_values)
 
 updateCustom (ilPropertyFormGUI $a_form)
 
 toggleNotification ()
 
 addHeaderAction ($a_redraw=false)
 
- Public Member Functions inherited from ilObject2GUI
 __construct ($a_id=0, $a_id_type=self::REPOSITORY_NODE_ID, $a_parent_node_id=0)
 Constructor. More...
 
 executeCommand ()
 execute command More...
 
 delete ()
 Display delete confirmation form (repository/workspace switch) More...
 
 confirmedDelete ()
 Delete objects (repository/workspace switch) More...
 
 getHTML ()
 
 withReferences ()
 Final/Private declaration of unchanged parent methods. 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...
 
 prepareOutput ($a_show_subobjects=true)
 prepare output More...
 
 isVisible ($a_ref_id, $a_type)
 
 trash ()
 
 undelete ()
 
 cancelDelete ()
 
 removeFromSystem ()
 
 cloneAll ()
 
 view ()
 view object content (repository/workspace switch) More...
 
 getType ()
 Functions that must be overwritten. More...
 
 create ()
 Deleted in ilObject. More...
 
 save ()
 
 edit ()
 
 update ()
 
 cancel ()
 
 importFile ()
 Import. More...
 
- Public Member Functions inherited from ilObjectGUI
 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...
 
 prepareOutput ($a_show_subobjects=true)
 prepare output More...
 
 getAdminTabs ()
 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 ()
 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 ilObject2GUI
static handleAfterSaveCallback (ilObject $a_obj, $a_callback_ref_id)
 After creation callback. More...
 
- 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...
 

Data Fields

const GET_DCL_GTR = "dcl_gtr"
 
const GET_REF_ID = "ref_id"
 
const GET_VIEW_ID = "tableview_id"
 
- Data Fields inherited from ilObject2GUI
 $tree
 
const OBJECT_ID = 0
 
const REPOSITORY_NODE_ID = 1
 
const WORKSPACE_NODE_ID = 2
 
const REPOSITORY_OBJECT_ID = 3
 
const WORKSPACE_OBJECT_ID = 4
 
const PORTFOLIO_OBJECT_ID = 5
 
- 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

 initCreationForms ($a_new_type)
 
 afterSave (ilObject $a_new_object)
 
 initEditCustomForm (ilPropertyFormGUI $a_form)
 
- Protected Member Functions inherited from ilObject2GUI
 afterConstructor ()
 Do anything that should be done after constructor in here. More...
 
 assignObject ()
 create object instance as internal property (repository/workspace switch) More...
 
 getAccessHandler ()
 Get access handler. More...
 
 setLocator ()
 set Locator More...
 
 deleteConfirmation ()
 Display delete confirmation form (workspace specific) More...
 
 deleteConfirmedObjects ()
 Delete objects (workspace specific) More...
 
 setTitleAndDescription ()
 called by prepare output More...
 
 showUpperIcon ()
 
 omitLocator ($a_omit=true)
 
 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...
 
 getCenterColumnHTML ()
 Get center column. More...
 
 getRightColumnHTML ()
 Display right column. More...
 
 setColumnSettings (ilColumnGUI $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...
 
 showPossibleSubObjects ()
 show possible subobjects (pulldown menu) 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...
 
 fillCloneSearchTemplate ($a_tpl_varname, $a_type)
 
 searchCloneSource ()
 
 buildCloneSelect ($existing_objs)
 
 addAdminLocatorItems ($a_do_not_add_object=false)
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 setTabs ()
 create tabs (repository/workspace switch) More...
 
 getReturnLocation ($a_cmd, $a_location="")
 Deprecated functions. More...
 
 setReturnLocation ($a_cmd, $a_location)
 set specific return location for command More...
 
 showActions ()
 
 getTabs ()
 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...
 
 addLocatorItems ()
 Functions to be overwritten. More...
 
 initCreationForms ($a_new_type)
 Init creation froms. More...
 
 putObjectInTree (ilObject $a_obj, $a_parent_node_id=null)
 Add object to tree at given position. More...
 
 checkPermissionBool ($a_perm, $a_cmd="", $a_type="", $a_node_id=null)
 Check permission. More...
 
 initHeaderAction ($a_sub_type=null, $a_sub_id=null)
 Add header action menu. More...
 
 redrawHeaderAction ()
 Updating icons after ajax call. More...
 
 getPermanentLinkWidget ($a_append=null, $a_center=false)
 
 handleAutoRating (ilObject $a_new_obj)
 Activate rating automatically if parent container setting. More...
 
- Protected Member Functions inherited from ilObjectGUI
 assignObject ()
 
 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...
 
 getTabs ()
 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 (ilColumnGUI $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...
 

Private Member Functions

 emptyInfo ()
 

Additional Inherited Members

- Protected Attributes inherited from ilObject2GUI
 $object_id
 
 $node_id
 
 $creation_forms = array()
 
 $id_type = array()
 
 $parent_id
 
 $access_handler
 
- Protected Attributes inherited from ilObjectGUI
 $tmp_import_dir
 
 $tabs_gui = null
 
 $ctrl
 

Detailed Description

Member Function Documentation

◆ _goto()

static ilObjDataCollectionGUI::_goto (   $a_target)
static
Parameters
$a_target

Definition at line 335 of file class.ilObjDataCollectionGUI.php.

335 {
336 $id = explode("_", $a_target);
337
338 $_GET["baseClass"] = "ilRepositoryGUI";
339 $_GET[self::GET_REF_ID] = $id[0];
340 $_GET[self::GET_VIEW_ID] = $id[1];
341 $_GET[self::GET_DCL_GTR] = $id[2]; //recordID
342 $_GET["cmd"] = "listRecords";
343 require_once('./ilias.php');
344 exit;
345 }
$_GET["client_id"]

References $_GET, exit, GET_DCL_GTR, GET_REF_ID, and GET_VIEW_ID.

◆ addHeaderAction()

ilObjDataCollectionGUI::addHeaderAction (   $a_redraw = false)
Parameters
bool$a_redraw
Returns
string|void

Definition at line 530 of file class.ilObjDataCollectionGUI.php.

530 {
531 global $DIC;
532 $ilUser = $DIC['ilUser'];
533 $ilAccess = $DIC['ilAccess'];
534 $tpl = $DIC['tpl'];
535 $lng = $DIC['lng'];
536 $ilCtrl = $DIC['ilCtrl'];
537
538 require_once('./Services/Object/classes/class.ilCommonActionDispatcherGUI.php');
539 $dispatcher = new ilCommonActionDispatcherGUI(ilCommonActionDispatcherGUI::TYPE_REPOSITORY, $ilAccess, "dcl", $this->ref_id, $this->obj_id);
540
541 require_once('./Services/Object/classes/class.ilObjectListGUI.php');
542 ilObjectListGUI::prepareJSLinks($this->ctrl->getLinkTarget($this, "redrawHeaderAction", "", true), $ilCtrl->getLinkTargetByClass(array(
543 "ilcommonactiondispatchergui",
544 "ilnotegui"
545 ), "", "", true, false), $ilCtrl->getLinkTargetByClass(array( "ilcommonactiondispatchergui", "iltagginggui" ), "", "", true, false));
546
547 $lg = $dispatcher->initHeaderAction();
548 //$lg->enableNotes(true);
549 //$lg->enableComments(ilObjWiki::_lookupPublicNotes($this->getPageObject()->getParentId()), false);
550
551 // notification
552 if ($ilUser->getId() != ANONYMOUS_USER_ID AND $this->object->getNotification() == 1) {
553 require_once('./Services/Notification/classes/class.ilNotification.php');
555 //Command Activate Notification
556 $ilCtrl->setParameter($this, "ntf", 1);
557 $lg->addCustomCommand($ilCtrl->getLinkTarget($this, "toggleNotification"), "dcl_notification_deactivate_dcl");
558
559 $lg->addHeaderIcon("not_icon", ilUtil::getImagePath("notification_on.svg"), $lng->txt("dcl_notification_activated"));
560 } else {
561 //Command Deactivate Notification
562 $ilCtrl->setParameter($this, "ntf", 2);
563 $lg->addCustomCommand($ilCtrl->getLinkTarget($this, "toggleNotification"), "dcl_notification_activate_dcl");
564
565 $lg->addHeaderIcon("not_icon", ilUtil::getImagePath("notification_off.svg"), $lng->txt("dcl_notification_deactivated"));
566 }
567 $ilCtrl->setParameter($this, "ntf", "");
568 }
569
570 if (!$a_redraw) {
571 $tpl->setHeaderActionMenu($lg->getHeaderAction());
572 } else {
573 return $lg->getHeaderAction();
574 }
575
576 $tpl->setHeaderActionMenu($lg->getHeaderAction());
577 }
Class ilCommonActionDispatcherGUI.
static hasNotification($type, $user_id, $id)
Check notification status for object and user.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
$lg
Definition: example_018.php:62
global $ilCtrl
Definition: ilias.php:18
global $DIC
$ilUser
Definition: imgupload.php:18

References $DIC, $ilCtrl, $ilUser, $lg, ilObjectGUI\$lng, ilObjectGUI\$tpl, ilUtil\getImagePath(), ilNotification\hasNotification(), ilNotification\TYPE_DATA_COLLECTION, and ilCommonActionDispatcherGUI\TYPE_REPOSITORY.

+ Here is the call graph for this function:

◆ addLocatorItems()

ilObjDataCollectionGUI::addLocatorItems ( )

Functions to be overwritten.

Reimplemented from ilObject2GUI.

Definition at line 322 of file class.ilObjDataCollectionGUI.php.

322 {
323 global $DIC;
324 $ilLocator = $DIC['ilLocator'];
325
326 if (is_object($this->object)) {
327 $ilLocator->addItem($this->object->getTitle(), $this->ctrl->getLinkTarget($this, ""), "", $this->node_id);
328 }
329 }

References $DIC.

◆ afterSave()

ilObjDataCollectionGUI::afterSave ( ilObject  $a_new_object)
protected
Parameters
ilObject$a_new_object

Reimplemented from ilObjectGUI.

Definition at line 363 of file class.ilObjDataCollectionGUI.php.

363 {
364 ilUtil::sendSuccess($this->lng->txt("object_added"), true);
365 $this->ctrl->redirectByClass("ilDclTableListGUI", "listTables");
366 }
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.

References ilUtil\sendSuccess().

+ Here is the call graph for this function:

◆ emptyInfo()

ilObjDataCollectionGUI::emptyInfo ( )
private

Definition at line 493 of file class.ilObjDataCollectionGUI.php.

493 {
494 global $DIC;
495 $lng = $DIC['lng'];
496 $this->table = ilDclCache::getTableCache($this->object->getFirstVisibleTableId());
497 $tables = $this->object->getTables();
498 if (count($tables) == 1 AND count($this->table->getRecordFields()) == 0 AND count($this->table->getRecords()) == 0
499 AND $this->object->getOnline()
500 ) {
501 ilUtil::sendInfo($lng->txt("dcl_no_content_warning"), true);
502 }
503 }
static getTableCache($table_id=0)
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.

References $DIC, ilObjectGUI\$lng, ilDclCache\getTableCache(), and ilUtil\sendInfo().

Referenced by updateCustom().

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

◆ getDataCollectionObject()

ilObjDataCollectionGUI::getDataCollectionObject ( )
Returns
ilObjDataCollection

Definition at line 456 of file class.ilObjDataCollectionGUI.php.

456 {
457 $obj = new ilObjDataCollection($this->ref_id, true);
458
459 return $obj;
460 }
Class ilObjDataCollection.

Referenced by initEditCustomForm().

+ Here is the caller graph for this function:

◆ getEditFormCustomValues()

ilObjDataCollectionGUI::getEditFormCustomValues ( array &  $a_values)
Parameters
array$a_values
Returns
array|void

Reimplemented from ilObjectGUI.

Definition at line 468 of file class.ilObjDataCollectionGUI.php.

468 {
469 $a_values["is_online"] = $this->object->getOnline();
470 $a_values["rating"] = $this->object->getRating();
471 $a_values["public_notes"] = $this->object->getPublicNotes();
472 $a_values["approval"] = $this->object->getApproval();
473 $a_values["notification"] = $this->object->getNotification();
474
475 return $a_values;
476 }

◆ getStandardCmd()

ilObjDataCollectionGUI::getStandardCmd ( )
Returns
string

Definition at line 98 of file class.ilObjDataCollectionGUI.php.

98 {
99 return "render";
100 }

◆ getType()

ilObjDataCollectionGUI::getType ( )
Returns
string

Reimplemented from ilObject2GUI.

Definition at line 106 of file class.ilObjDataCollectionGUI.php.

106 {
107 return "dcl";
108 }

◆ infoScreen()

ilObjDataCollectionGUI::infoScreen ( )

this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually, if everything works through ilCtrl in the future this may be changed

Definition at line 281 of file class.ilObjDataCollectionGUI.php.

281 {
282 $this->ctrl->setCmd("showSummary");
283 $this->ctrl->setCmdClass("ilinfoscreengui");
284 $this->infoScreenForward();
285 }
infoScreenForward()
show information screen

References infoScreenForward().

+ Here is the call graph for this function:

◆ infoScreenForward()

ilObjDataCollectionGUI::infoScreenForward ( )

show information screen

Definition at line 302 of file class.ilObjDataCollectionGUI.php.

302 {
303 global $DIC;
304 $ilTabs = $DIC['ilTabs'];
305 $ilErr = $DIC['ilErr'];
306
307 $ilTabs->activateTab("id_info");
308
309 if (!$this->checkPermissionBool("visible") && !$this->checkPermissionBool("read")) {
310 $ilErr->raiseError($this->lng->txt("msg_no_perm_read"));
311 }
312
313 require_once('./Services/InfoScreen/classes/class.ilInfoScreenGUI.php');
314 $info = new ilInfoScreenGUI($this);
315 $info->enablePrivateNotes();
316 $info->addMetaDataSections($this->object->getId(), 0, $this->object->getType());
317
318 $this->ctrl->forwardCommand($info);
319 }
Class ilInfoScreenGUI.
checkPermissionBool($a_perm, $a_cmd="", $a_type="", $a_node_id=null)
Check permission.
$info
Definition: example_052.php:80
global $ilErr
Definition: raiseError.php:16

References $DIC, $ilErr, $info, and ilObject2GUI\checkPermissionBool().

Referenced by infoScreen().

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

◆ initCreationForms()

ilObjDataCollectionGUI::initCreationForms (   $a_new_type)
protected
Parameters
string$a_new_type
Returns
array

Reimplemented from ilObject2GUI.

Definition at line 353 of file class.ilObjDataCollectionGUI.php.

353 {
354 $forms = parent::initCreationForms($a_new_type);
355
356 return $forms;
357 }

◆ initEditCustomForm()

ilObjDataCollectionGUI::initEditCustomForm ( ilPropertyFormGUI  $a_form)
protected
Parameters
ilPropertyFormGUI$a_form

Reimplemented from ilObjectGUI.

Definition at line 418 of file class.ilObjDataCollectionGUI.php.

418 {
419 global $DIC;
420 $ilTabs = $DIC['ilTabs'];
421
422 $ilTabs->activateTab("id_settings");
423
424 // is_online
425 $cb = new ilCheckboxInputGUI($this->lng->txt("online"), "is_online");
426 $cb->setInfo($this->lng->txt("dcl_online_info"));
427 $a_form->addItem($cb);
428
429 // Notification
430 $cb = new ilCheckboxInputGUI($this->lng->txt("dcl_activate_notification"), "notification");
431 $cb->setInfo($this->lng->txt("dcl_notification_info"));
432 $a_form->addItem($cb);
433
434 //table order
435 $order_options = array();
436 foreach($this->getDataCollectionObject()->getTables() as $table) {
437 $order_options[$table->getId()] = $table->getTitle();
438 }
439 }
This class represents a checkbox property in a property form.
addItem($a_item)
Add Item (Property, SectionHeader).

References $DIC, ilPropertyFormGUI\addItem(), and getDataCollectionObject().

+ Here is the call graph for this function:

◆ listRecords()

ilObjDataCollectionGUI::listRecords ( )

called by goto

Definition at line 445 of file class.ilObjDataCollectionGUI.php.

445 {
446 global $DIC;
447 $ilCtrl = $DIC['ilCtrl'];
448 $ilCtrl->setParameterByClass("ildclrecordlistgui", "tableview_id", $_GET["tableview_id"]);
449 $ilCtrl->redirectByClass("ildclrecordlistgui", "show");
450 }

References $_GET, $DIC, and $ilCtrl.

◆ render()

ilObjDataCollectionGUI::render ( )

show Content; redirect to ilDclRecordListGUI::listRecords

Definition at line 291 of file class.ilObjDataCollectionGUI.php.

291 {
292 global $DIC;
293 $ilCtrl = $DIC['ilCtrl'];
294 $this->ctrl->setParameterByClass('ilDclRecordListGUI', 'tableview_id', $_GET['tableview_id']);
295 $ilCtrl->redirectByClass("ildclrecordlistgui", "show");
296 }

References $_GET, $DIC, and $ilCtrl.

◆ setTabs()

ilObjDataCollectionGUI::setTabs ( )

setTabs create tabs (repository/workspace switch)

this had to be moved here because of the context-specific permission tab

Reimplemented from ilObject2GUI.

Definition at line 375 of file class.ilObjDataCollectionGUI.php.

375 {
376 global $DIC;
377 $ilAccess = $DIC['ilAccess'];
378 $ilTabs = $DIC['ilTabs'];
379 $lng = $DIC['lng'];
380 $ilHelp = $DIC['ilHelp'];
381
382 $ilHelp->setScreenIdComponent("dcl");
383
384 // list records
385 if ($ilAccess->checkAccess('read', "", $this->object->getRefId())) {
386 $ilTabs->addTab("id_records", $lng->txt("content"), $this->ctrl->getLinkTargetByClass("ildclrecordlistgui", "show"));
387 }
388
389 // info screen
390 if ($ilAccess->checkAccess('visible', "", $this->object->getRefId()) || $ilAccess->checkAccess('read', "", $this->object->getRefId())) {
391 $ilTabs->addTab("id_info", $lng->txt("info_short"), $this->ctrl->getLinkTargetByClass("ilinfoscreengui", "showSummary"));
392 }
393
394 // settings
395 if ($ilAccess->checkAccess('write', "", $this->object->getRefId())) {
396 $ilTabs->addTab("id_settings", $lng->txt("settings"), $this->ctrl->getLinkTarget($this, "editObject"));
397 }
398
399 // list tables
400 if ($ilAccess->checkAccess('write', "", $this->object->getRefId())) {
401 $ilTabs->addTab("id_tables", $lng->txt("dcl_tables"), $this->ctrl->getLinkTargetByClass("ildcltablelistgui", "listTables"));
402 }
403
404 // export
405 if ($ilAccess->checkAccess("write", "", $this->object->getRefId())) {
406 $ilTabs->addTab("export", $lng->txt("export"), $this->ctrl->getLinkTargetByClass("ildclexportgui", ""));
407 }
408
409 // edit permissions
410 if ($ilAccess->checkAccess('edit_permission', "", $this->object->getRefId())) {
411 $ilTabs->addTab("id_permissions", $lng->txt("perm_settings"), $this->ctrl->getLinkTargetByClass("ilpermissiongui", "perm"));
412 }
413 }

References $DIC, and ilObjectGUI\$lng.

◆ toggleNotification()

ilObjDataCollectionGUI::toggleNotification ( )

Definition at line 507 of file class.ilObjDataCollectionGUI.php.

507 {
508 global $DIC;
509 $ilCtrl = $DIC['ilCtrl'];
510 $ilUser = $DIC['ilUser'];
511
512 require_once('./Services/Notification/classes/class.ilNotification.php');
513 switch ($_GET["ntf"]) {
514 case 1:
516 break;
517 case 2:
519 break;
520 }
521 $ilCtrl->redirectByClass("ildclrecordlistgui", "show");
522 }
static setNotification($type, $user_id, $id, $status=true)
Set notification status for object and user.

References $_GET, $DIC, $ilCtrl, $ilUser, ilNotification\setNotification(), and ilNotification\TYPE_DATA_COLLECTION.

+ Here is the call graph for this function:

◆ updateCustom()

ilObjDataCollectionGUI::updateCustom ( ilPropertyFormGUI  $a_form)
Parameters
ilPropertyFormGUI$a_form

Reimplemented from ilObjectGUI.

Definition at line 482 of file class.ilObjDataCollectionGUI.php.

482 {
483 $this->object->setOnline($a_form->getInput("is_online"));
484 $this->object->setRating($a_form->getInput("rating"));
485 $this->object->setPublicNotes($a_form->getInput("public_notes"));
486 $this->object->setApproval($a_form->getInput("approval"));
487 $this->object->setNotification($a_form->getInput("notification"));
488
489 $this->emptyInfo();
490 }
getInput($a_post_var, $ensureValidation=true)
Returns the value of a HTTP-POST variable, identified by the passed id.

References emptyInfo(), and ilPropertyFormGUI\getInput().

+ Here is the call graph for this function:

Field Documentation

◆ GET_DCL_GTR

const ilObjDataCollectionGUI::GET_DCL_GTR = "dcl_gtr"

Definition at line 40 of file class.ilObjDataCollectionGUI.php.

Referenced by _goto().

◆ GET_REF_ID

const ilObjDataCollectionGUI::GET_REF_ID = "ref_id"

Definition at line 41 of file class.ilObjDataCollectionGUI.php.

Referenced by _goto().

◆ GET_VIEW_ID

const ilObjDataCollectionGUI::GET_VIEW_ID = "tableview_id"

Definition at line 42 of file class.ilObjDataCollectionGUI.php.

Referenced by _goto().


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