ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilMDCopyrightUsageGUI Class Reference
+ Collaboration diagram for ilMDCopyrightUsageGUI:

Public Member Functions

 __construct (int $a_entry_id)
 ilMDCopyrightUsageGUI constructor. More...
 
 executeCommand ()
 
 showUsageTable ()
 Sho usage table. More...
 
 getEntryId ()
 

Data Fields

const DEFAULT_CMD = 'showUsageTable'
 

Protected Member Functions

 applyUsageFilter ()
 Apply filter. More...
 
 resetUsageFilter ()
 Reset filter. More...
 
 setTabs ()
 Set tabs. More...
 

Protected Attributes

 $entry_id
 
 $tpl = null
 
 $ctrl = null
 
 $lng = null
 
 $tabs = null
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilMDCopyrightUsageGUI::__construct ( int  $a_entry_id)

ilMDCopyrightUsageGUI constructor.

Parameters
int$a_entry_id

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

References $DIC.

46  {
47  global $DIC;
48 
49  $this->tpl = $DIC->ui()->mainTemplate();
50 
51  $this->ctrl = $DIC->ctrl();
52  $this->lng = $DIC->language();
53  $this->tabs = $DIC->tabs();
54 
55  $this->entry_id = $a_entry_id;
56  }
global $DIC
Definition: saml.php:7

Member Function Documentation

◆ applyUsageFilter()

ilMDCopyrightUsageGUI::applyUsageFilter ( )
protected

Apply filter.

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

122  {
123  $table_gui = new ilMDCopyrightUsageTableGUI(
124  $this,
125  self::DEFAULT_CMD,
126  $this->entry_id
127  );
128  $table_gui->init();
129  $table_gui->resetOffset(); // sets record offset to 0 (first page)
130  $table_gui->writeFilterToSession(); // writes filter to session
131 
132  $this->ctrl->redirect($this, self::DEFAULT_CMD);
133  }

◆ executeCommand()

ilMDCopyrightUsageGUI::executeCommand ( )

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

References $_GET, $html, setTabs(), and ilUtil\stripSlashes().

62  {
63  // save usage id for all request
64  $this->ctrl->saveParameter($this, 'entry_id');
65 
66  $this->setTabs();
67  $next_class = $this->ctrl->getNextClass($this);
68  switch ($this->ctrl->getNextClass($this)) {
69  case 'ilpublicuserprofilegui':
70  $profile_gui = new ilPublicUserProfileGUI(ilUtil::stripSlashes($_GET['user']));
71  $profile_gui->setBackUrl(
72  $this->ctrl->getLinkTarget($this, self::DEFAULT_CMD)
73  );
74  $html = $this->ctrl->forwardCommand($profile_gui);
75  $this->tpl->setContent($html);
76  break;
77 
78  default:
79  $cmd = $this->ctrl->getCmd(self::DEFAULT_CMD);
80  $this->$cmd();
81  break;
82  }
83  }
$_GET["client_id"]
GUI class for public user profile presentation.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
$html
Definition: example_001.php:87
+ Here is the call graph for this function:

◆ getEntryId()

ilMDCopyrightUsageGUI::getEntryId ( )
Returns
int

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

References $entry_id.

◆ resetUsageFilter()

ilMDCopyrightUsageGUI::resetUsageFilter ( )
protected

Reset filter.

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

139  {
140  $table_gui = new ilMDCopyrightUsageTableGUI(
141  $this,
142  self::DEFAULT_CMD,
143  $this->entry_id
144  );
145  $table_gui->init();
146  $table_gui->resetOffset(); // sets record offest to 0 (first page)
147  $table_gui->resetFilter(); // clears filter
148 
149  $this->ctrl->redirect($this, self::DEFAULT_CMD);
150  }

◆ setTabs()

ilMDCopyrightUsageGUI::setTabs ( )
protected

Set tabs.

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

Referenced by executeCommand().

156  {
157  $this->tabs->clearTargets();
158  $this->tabs->setBackTarget(
159  $this->lng->txt('back'),
160  $this->ctrl->getParentReturn($this)
161  );
162  }
+ Here is the caller graph for this function:

◆ showUsageTable()

ilMDCopyrightUsageGUI::showUsageTable ( )

Sho usage table.

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

References $DIC, $lng, $tabs, and ilUtil\sendInfo().

89  {
90  global $DIC;
91 
92  $tabs = $DIC->tabs();
93  $lng = $DIC->language();
94 
95  ilUtil::sendInfo($this->lng->txt("meta_info_only_repository_objects"));
96 
97  $table_gui = new ilMDCopyrightUsageTableGUI(
98  $this,
99  self::DEFAULT_CMD,
100  $this->entry_id
101  );
102  $table_gui->setFilterCommand("applyUsageFilter");
103  $table_gui->setResetCommand("resetUsageFilter");
104  $table_gui->init();
105  $table_gui->parse();
106 
107  $this->tpl->setContent($table_gui->getHTML());
108  }
global $DIC
Definition: saml.php:7
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilMDCopyrightUsageGUI::$ctrl = null
protected

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

◆ $entry_id

ilMDCopyrightUsageGUI::$entry_id
protected

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

Referenced by getEntryId().

◆ $lng

ilMDCopyrightUsageGUI::$lng = null
protected

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

Referenced by showUsageTable().

◆ $tabs

ilMDCopyrightUsageGUI::$tabs = null
protected

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

Referenced by showUsageTable().

◆ $tpl

ilMDCopyrightUsageGUI::$tpl = null
protected

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

◆ DEFAULT_CMD

const ilMDCopyrightUsageGUI::DEFAULT_CMD = 'showUsageTable'

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


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