ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilMDCopyrightUsageGUI Class Reference
+ Collaboration diagram for ilMDCopyrightUsageGUI:

Public Member Functions

 __construct (int $a_entry_id)
 
 executeCommand ()
 
 showUsageTable ()
 
 getEntryId ()
 

Data Fields

const DEFAULT_CMD = 'showUsageTable'
 

Protected Member Functions

 applyUsageFilter ()
 
 resetUsageFilter ()
 
 setTabs ()
 

Protected Attributes

int $entry_id
 
ilGlobalTemplateInterface $tpl
 
ilCtrl $ctrl
 
ilLanguage $lng
 
ilTabsGUI $tabs
 
GlobalHttpState $http
 
Factory $refinery
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilMDCopyrightUsageGUI::__construct ( int  $a_entry_id)

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

References $DIC, ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ILIAS\Repository\tabs().

29  {
30  global $DIC;
31 
32  $this->tpl = $DIC->ui()->mainTemplate();
33  $this->http = $DIC->http();
34  $this->ctrl = $DIC->ctrl();
35  $this->lng = $DIC->language();
36  $this->tabs = $DIC->tabs();
37  $this->refinery = $DIC->refinery();
38 
39  $this->entry_id = $a_entry_id;
40  }
global $DIC
Definition: feed.php:28
static http()
Fetches the global http state from ILIAS.
+ Here is the call graph for this function:

Member Function Documentation

◆ applyUsageFilter()

ilMDCopyrightUsageGUI::applyUsageFilter ( )
protected

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

References ILIAS\Repository\ctrl().

98  : void
99  {
100  $table_gui = new ilMDCopyrightUsageTableGUI(
101  $this,
102  self::DEFAULT_CMD,
103  );
104  $table_gui->init();
105  $table_gui->resetOffset(); // sets record offset to 0 (first page)
106  $table_gui->writeFilterToSession(); // writes filter to session
107 
108  $this->ctrl->redirect($this, self::DEFAULT_CMD);
109  }
+ Here is the call graph for this function:

◆ executeCommand()

ilMDCopyrightUsageGUI::executeCommand ( )

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

References ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\refinery(), and setTabs().

42  : void
43  {
44  // save usage id for all request
45  $this->ctrl->saveParameter($this, 'entry_id');
46 
47  $user = '';
48  if ($this->http->wrapper()->query()->has('user')) {
49  $user = $this->http->wrapper()->query()->retrieve(
50  'user',
51  $this->refinery->kindlyTo()->string()
52  );
53  }
54 
55  $this->setTabs();
56  $next_class = $this->ctrl->getNextClass($this);
57  switch ($this->ctrl->getNextClass($this)) {
58  case 'ilpublicuserprofilegui':
59  $profile_gui = new ilPublicUserProfileGUI($this->http->wrapper()->query()->retrieve(
60  'user',
61  $this->refinery->kindlyTo()->int()
62  ));
63  $profile_gui->setBackUrl(
64  $this->ctrl->getLinkTarget($this, self::DEFAULT_CMD)
65  );
66  $html = $this->ctrl->forwardCommand($profile_gui);
67  $this->tpl->setContent($html);
68  break;
69 
70  default:
71  $cmd = $this->ctrl->getCmd(self::DEFAULT_CMD);
72  $this->$cmd();
73  break;
74  }
75  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static http()
Fetches the global http state from ILIAS.
+ Here is the call graph for this function:

◆ getEntryId()

ilMDCopyrightUsageGUI::getEntryId ( )

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

References $entry_id.

Referenced by ilMDCopyrightUsageTableGUI\__construct().

93  : int
94  {
95  return $this->entry_id;
96  }
+ Here is the caller graph for this function:

◆ resetUsageFilter()

ilMDCopyrightUsageGUI::resetUsageFilter ( )
protected

Definition at line 111 of file class.ilMDCopyrightUsageGUI.php.

References ILIAS\Repository\ctrl().

111  : void
112  {
113  $table_gui = new ilMDCopyrightUsageTableGUI(
114  $this,
115  self::DEFAULT_CMD,
116  );
117  $table_gui->init();
118  $table_gui->resetOffset(); // sets record offest to 0 (first page)
119  $table_gui->resetFilter(); // clears filter
120 
121  $this->ctrl->redirect($this, self::DEFAULT_CMD);
122  }
+ Here is the call graph for this function:

◆ setTabs()

ilMDCopyrightUsageGUI::setTabs ( )
protected

Definition at line 124 of file class.ilMDCopyrightUsageGUI.php.

References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\tabs().

Referenced by executeCommand().

124  : void
125  {
126  $this->tabs->clearTargets();
127  $this->tabs->setBackTarget(
128  $this->lng->txt('back'),
129  $this->ctrl->getParentReturn($this)
130  );
131  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showUsageTable()

ilMDCopyrightUsageGUI::showUsageTable ( )

Definition at line 77 of file class.ilMDCopyrightUsageGUI.php.

References ILIAS\Repository\lng().

77  : void
78  {
79  $this->tpl->setOnScreenMessage('info', $this->lng->txt("meta_info_only_repository_objects"));
80 
81  $table_gui = new ilMDCopyrightUsageTableGUI(
82  $this,
83  self::DEFAULT_CMD,
84  );
85  $table_gui->setFilterCommand("applyUsageFilter");
86  $table_gui->setResetCommand("resetUsageFilter");
87  $table_gui->init();
88  $table_gui->parse();
89 
90  $this->tpl->setContent($table_gui->getHTML());
91  }
+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilCtrl ilMDCopyrightUsageGUI::$ctrl
protected

Definition at line 22 of file class.ilMDCopyrightUsageGUI.php.

◆ $entry_id

int ilMDCopyrightUsageGUI::$entry_id
protected

Definition at line 19 of file class.ilMDCopyrightUsageGUI.php.

Referenced by getEntryId().

◆ $http

GlobalHttpState ilMDCopyrightUsageGUI::$http
protected

Definition at line 25 of file class.ilMDCopyrightUsageGUI.php.

◆ $lng

ilLanguage ilMDCopyrightUsageGUI::$lng
protected

Definition at line 23 of file class.ilMDCopyrightUsageGUI.php.

◆ $refinery

Factory ilMDCopyrightUsageGUI::$refinery
protected

Definition at line 26 of file class.ilMDCopyrightUsageGUI.php.

◆ $tabs

ilTabsGUI ilMDCopyrightUsageGUI::$tabs
protected

Definition at line 24 of file class.ilMDCopyrightUsageGUI.php.

◆ $tpl

ilGlobalTemplateInterface ilMDCopyrightUsageGUI::$tpl
protected

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

◆ DEFAULT_CMD

const ilMDCopyrightUsageGUI::DEFAULT_CMD = 'showUsageTable'

Definition at line 17 of file class.ilMDCopyrightUsageGUI.php.


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