ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 ilDataCollectionRecordListGUI::listRecords More...
 
 infoScreenForward ()
 show information screen More...
 
 addLocatorItems ()
 Functions to be overwritten. More...
 
 setTabs ()
 setTabs create tabs (repository/workspace switch) More...
 
 addListFieldsTabs ($a_active)
 
 listRecords ()
 
 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...
 
 isVisible ()
 
 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
 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 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"
 
- 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...
 
 prepareOutput ()
 prepare output 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 ($column_gui)
 May be overwritten in subclasses. More...
 
 checkPermission ($a_perm, $a_cmd="")
 
 showPossibleSubObjects ()
 show possible subobjects (pulldown menu) More...
 
 redirectToRefId ()
 
 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 ()
 
 setTabs ()
 create tabs (repository/workspace switch) More...
 
 getReturnLocation ()
 Deprecated functions. More...
 
 setReturnLocation ()
 
 showActions ()
 
 getTitlesByRefId ()
 
 getTabs ()
 
 __showButton ()
 
 hitsperpageObject ()
 
 __initTableGUI ()
 
 __setTableGUIBasicData ()
 
 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 ()
 
 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...
 

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
 

Detailed Description

Member Function Documentation

◆ _goto()

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

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

345 {
346 $id = explode("_", $a_target);
347
348 $_GET["baseClass"] = "ilRepositoryGUI";
349 $_GET[self::GET_REF_ID] = $id[0];
350 $_GET[self::GET_DCL_GTR] = $id[1]; //recordID
351 $_GET["cmd"] = "listRecords";
352 require_once('./ilias.php');
353 exit;
354 }
$_GET["client_id"]
exit
Definition: login.php:54

References $_GET, exit, GET_DCL_GTR, and GET_REF_ID.

◆ addHeaderAction()

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

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

541 {
542 global $ilUser, $ilAccess, $tpl, $lng, $ilCtrl;
543
544 require_once('./Services/Object/classes/class.ilCommonActionDispatcherGUI.php');
545 $dispatcher = new ilCommonActionDispatcherGUI(ilCommonActionDispatcherGUI::TYPE_REPOSITORY, $ilAccess, "dcl", $this->ref_id, $this->obj_id);
546
547 require_once('./Services/Object/classes/class.ilObjectListGUI.php');
548 ilObjectListGUI::prepareJSLinks($this->ctrl->getLinkTarget($this, "redrawHeaderAction", "", true), $ilCtrl->getLinkTargetByClass(array(
549 "ilcommonactiondispatchergui",
550 "ilnotegui"
551 ), "", "", true, false), $ilCtrl->getLinkTargetByClass(array( "ilcommonactiondispatchergui", "iltagginggui" ), "", "", true, false));
552
553 $lg = $dispatcher->initHeaderAction();
554 //$lg->enableNotes(true);
555 //$lg->enableComments(ilObjWiki::_lookupPublicNotes($this->getPageObject()->getParentId()), false);
556
557 // notification
558 if ($ilUser->getId() != ANONYMOUS_USER_ID AND $this->object->getNotification() == 1) {
559 require_once('./Services/Notification/classes/class.ilNotification.php');
561 //Command Activate Notification
562 $ilCtrl->setParameter($this, "ntf", 1);
563 $lg->addCustomCommand($ilCtrl->getLinkTarget($this, "toggleNotification"), "dcl_notification_deactivate_dcl");
564
565 $lg->addHeaderIcon("not_icon", ilUtil::getImagePath("notification_on.svg"), $lng->txt("dcl_notification_activated"));
566 } else {
567 //Command Deactivate Notification
568 $ilCtrl->setParameter($this, "ntf", 2);
569 $lg->addCustomCommand($ilCtrl->getLinkTarget($this, "toggleNotification"), "dcl_notification_activate_dcl");
570
571 $lg->addHeaderIcon("not_icon", ilUtil::getImagePath("notification_off.svg"), $lng->txt("dcl_notification_deactivated"));
572 }
573 $ilCtrl->setParameter($this, "ntf", "");
574 }
575
576 if (!$a_redraw) {
577 $tpl->setHeaderActionMenu($lg->getHeaderAction());
578 } else {
579 return $lg->getHeaderAction();
580 }
581
582 $tpl->setHeaderActionMenu($lg->getHeaderAction());
583 }
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 $ilUser
Definition: imgupload.php:15

References $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:

◆ addListFieldsTabs()

ilObjDataCollectionGUI::addListFieldsTabs (   $a_active)
Parameters
$a_active

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

424 {
425 global $ilTabs, $ilCtrl, $lng;
426
427 $ilTabs->addSubTab("list_fields", $lng->txt("dcl_list_fields"), $ilCtrl->getLinkTargetByClass("ildatacollectionfieldlistgui", "listFields"));
428
429 $ilCtrl->setParameterByClass("ildatacollectionrecordviewviewdefinitiongui", "table_id", $this->table_id);
430 $ilTabs->addSubTab("view_viewdefinition", $lng->txt("dcl_record_view_viewdefinition"), $ilCtrl->getLinkTargetByClass("ildatacollectionrecordviewviewdefinitiongui", "edit"));
431
432 $ilTabs->activateSubTab($a_active);
433 }

References $ilCtrl, and ilObjectGUI\$lng.

◆ addLocatorItems()

ilObjDataCollectionGUI::addLocatorItems ( )

Functions to be overwritten.

Reimplemented from ilObject2GUI.

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

333 {
334 global $ilLocator;
335
336 if (is_object($this->object)) {
337 $ilLocator->addItem($this->object->getTitle(), $this->ctrl->getLinkTarget($this, ""), "", $this->node_id);
338 }
339 }

◆ afterSave()

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

Reimplemented from ilObjectGUI.

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

372 {
373 ilUtil::sendSuccess($this->lng->txt("object_added"), true);
374 $this->ctrl->redirectByClass("ilDataCollectionFieldListGUI", "listFields");
375 }
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 507 of file class.ilObjDataCollectionGUI.php.

507 {
508 global $lng;
509 $this->table = ilDataCollectionCache::getTableCache($this->object->getMainTableId());
510 $tables = $this->object->getTables();
511 if (count($tables) == 1 AND count($this->table->getRecordFields()) == 0 AND count($this->table->getRecords()) == 0
512 AND $this->object->getOnline()
513 ) {
514 ilUtil::sendInfo($lng->txt("dcl_no_content_warning"), true);
515 }
516 }
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.

References ilObjectGUI\$lng, ilDataCollectionCache\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 469 of file class.ilObjDataCollectionGUI.php.

469 {
470 $obj = new ilObjDataCollection($this->ref_id, true);
471
472 return $obj;
473 }
Class ilObjDataCollection.

◆ getEditFormCustomValues()

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

Reimplemented from ilObjectGUI.

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

481 {
482 $a_values["is_online"] = $this->object->getOnline();
483 $a_values["rating"] = $this->object->getRating();
484 $a_values["public_notes"] = $this->object->getPublicNotes();
485 $a_values["approval"] = $this->object->getApproval();
486 $a_values["notification"] = $this->object->getNotification();
487
488 return $a_values;
489 }

◆ getStandardCmd()

ilObjDataCollectionGUI::getStandardCmd ( )
Returns
string

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

89 {
90 return "render";
91 }

◆ getType()

ilObjDataCollectionGUI::getType ( )
Returns
string

Reimplemented from ilObject2GUI.

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

97 {
98 return "dcl";
99 }

◆ 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 295 of file class.ilObjDataCollectionGUI.php.

295 {
296 $this->ctrl->setCmd("showSummary");
297 $this->ctrl->setCmdClass("ilinfoscreengui");
298 $this->infoScreenForward();
299 }
infoScreenForward()
show information screen

References infoScreenForward().

+ Here is the call graph for this function:

◆ infoScreenForward()

ilObjDataCollectionGUI::infoScreenForward ( )

show information screen

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

315 {
316 global $ilTabs, $ilErr;
317
318 $ilTabs->activateTab("id_info");
319
320 if (!$this->checkPermissionBool("visible")) {
321 $ilErr->raiseError($this->lng->txt("msg_no_perm_read"));
322 }
323
324 require_once('./Services/InfoScreen/classes/class.ilInfoScreenGUI.php');
325 $info = new ilInfoScreenGUI($this);
326 $info->enablePrivateNotes();
327 $info->addMetaDataSections($this->object->getId(), 0, $this->object->getType());
328
329 $this->ctrl->forwardCommand($info);
330 }
Class ilInfoScreenGUI.
checkPermissionBool($a_perm, $a_cmd="", $a_type="", $a_node_id=null)
Check permission.
$info
Definition: example_052.php:80

References $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 362 of file class.ilObjDataCollectionGUI.php.

362 {
363 $forms = parent::initCreationForms($a_new_type);
364
365 return $forms;
366 }

◆ initEditCustomForm()

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

Reimplemented from ilObjectGUI.

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

439 {
440 global $ilCtrl, $ilErr, $ilTabs;
441
442 $ilTabs->activateTab("id_settings");
443
444 // is_online
445 $cb = new ilCheckboxInputGUI($this->lng->txt("online"), "is_online");
446 $cb->setInfo($this->lng->txt("dcl_online_info"));
447 $a_form->addItem($cb);
448
449 // Notification
450 $cb = new ilCheckboxInputGUI($this->lng->txt("dcl_activate_notification"), "notification");
451 $cb->setInfo($this->lng->txt("dcl_notification_info"));
452 $a_form->addItem($cb);
453 }
This class represents a checkbox property in a property form.
addItem($a_item)
Add Item (Property, SectionHeader).

References $ilCtrl, $ilErr, and ilPropertyFormGUI\addItem().

+ Here is the call graph for this function:

◆ listRecords()

ilObjDataCollectionGUI::listRecords ( )
Deprecated:

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

459 {
460 global $ilCtrl;
461
462 $ilCtrl->redirectByClass("ildatacollectionrecordlistgui", "listRecords");
463 }

References $ilCtrl.

◆ render()

ilObjDataCollectionGUI::render ( )

show Content; redirect to ilDataCollectionRecordListGUI::listRecords

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

305 {
306 global $ilCtrl;
307
308 $ilCtrl->redirectByClass("ildatacollectionrecordlistgui", "listRecords");
309 }

References $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 384 of file class.ilObjDataCollectionGUI.php.

384 {
385 global $ilAccess, $ilTabs, $lng, $ilHelp;
386
387 $ilHelp->setScreenIdComponent("dcl");
388
389 // list records
390 if ($ilAccess->checkAccess('read', "", $this->object->getRefId())) {
391 $ilTabs->addTab("id_records", $lng->txt("content"), $this->ctrl->getLinkTargetByClass("ildatacollectionrecordlistgui", "listRecords"));
392 }
393
394 // info screen
395 if ($ilAccess->checkAccess('visible', "", $this->object->getRefId())) {
396 $ilTabs->addTab("id_info", $lng->txt("info_short"), $this->ctrl->getLinkTargetByClass("ilinfoscreengui", "showSummary"));
397 }
398
399 // settings
400 if ($ilAccess->checkAccess('write', "", $this->object->getRefId())) {
401 $ilTabs->addTab("id_settings", $lng->txt("settings"), $this->ctrl->getLinkTarget($this, "editObject"));
402 }
403
404 // list fields
405 if ($ilAccess->checkAccess('write', "", $this->object->getRefId())) {
406 $ilTabs->addTab("id_fields", $lng->txt("dcl_list_fields"), $this->ctrl->getLinkTargetByClass("ildatacollectionfieldlistgui", "listFields"));
407 }
408
409 // export
410 if ($ilAccess->checkAccess("write", "", $this->object->getRefId())) {
411 $ilTabs->addTab("export", $lng->txt("export"), $this->ctrl->getLinkTargetByClass("ilexportgui", ""));
412 }
413
414 // edit permissions
415 if ($ilAccess->checkAccess('edit_permission', "", $this->object->getRefId())) {
416 $ilTabs->addTab("id_permissions", $lng->txt("perm_settings"), $this->ctrl->getLinkTargetByClass("ilpermissiongui", "perm"));
417 }
418 }

References ilObjectGUI\$lng.

◆ toggleNotification()

ilObjDataCollectionGUI::toggleNotification ( )

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

520 {
521 global $ilCtrl, $ilUser;
522
523 require_once('./Services/Notification/classes/class.ilNotification.php');
524 switch ($_GET["ntf"]) {
525 case 1:
527 break;
528 case 2:
530 break;
531 }
532 $ilCtrl->redirectByClass("ildatacollectionrecordlistgui", "listRecords");
533 }
static setNotification($type, $user_id, $id, $status=true)
Set notification status for object and user.

References $_GET, $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 495 of file class.ilObjDataCollectionGUI.php.

495 {
496 global $ilUser;
497
498 $this->object->setOnline($a_form->getInput("is_online"));
499 $this->object->setRating($a_form->getInput("rating"));
500 $this->object->setPublicNotes($a_form->getInput("public_notes"));
501 $this->object->setApproval($a_form->getInput("approval"));
502 $this->object->setNotification($a_form->getInput("notification"));
503 $this->emptyInfo();
504 }
getInput($a_post_var, $ensureValidation=true)
Returns the value of a HTTP-POST variable, identified by the passed id.

References $ilUser, 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 37 of file class.ilObjDataCollectionGUI.php.

Referenced by _goto().

◆ GET_REF_ID

const ilObjDataCollectionGUI::GET_REF_ID = "ref_id"

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

Referenced by _goto().


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