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

Class ilObjTestListGUI. More...

+ Inheritance diagram for ilObjTestListGUI:
+ Collaboration diagram for ilObjTestListGUI:

Public Member Functions

 ilObjTestListGUI ()
 constructor More...
 
 init ()
 initialisation More...
 
 initItem ($a_ref_id, $a_obj_id, $a_title="", $a_description="")
 inititialize new item More...
 
 getCommandFrame ($a_cmd)
 Get command target frame. More...
 
 getProperties ()
 Get item properties. More...
 
 getCommandLink ($a_cmd)
 Get command link url. More...
 
 getCommands ()
 get all current commands for a specific ref id (in the permission context of the current user) More...
 
 createDefaultCommand ($a_command)
 overwritten from base class for course objectives More...
 
 addCommandLinkParameter ($a_param)
 add command link parameters More...
 
- Public Member Functions inherited from ilObjectListGUI
 ilObjectListGUI ()
 constructor More...
 
 setContainerObject ($container_obj)
 set the container object (e.g categorygui) Used for link, delete ... commands More...
 
 getContainerObject ()
 get container object More...
 
 init ()
 initialisation More...
 
 enableProperties ($a_status)
 En/disable properties. More...
 
 getPropertiesStatus ()
 
 enablePreconditions ($a_status)
 En/disable preconditions. More...
 
 getNoticePropertiesStatus ()
 
 enableNoticeProperties ($a_status)
 En/disable notices. More...
 
 getPreconditionsStatus ()
 
 enableDescription ($a_status)
 En/disable description. More...
 
 getDescriptionStatus ()
 
 getSearchFragmentStatus ()
 Show hide search result fragments. More...
 
 enableSearchFragments ($a_status)
 En/disable description. More...
 
 enableLinkedPath ($a_status)
 Enable linked path. More...
 
 enabledRelevance ()
 enabled relevance More...
 
 enableRelevance ($a_status)
 enable relevance More...
 
 setRelevance ($a_rel)
 set relevance More...
 
 getRelevance ()
 get relevance More...
 
 enableIcon ($a_status)
 En/Dis-able icons. More...
 
 getIconStatus ()
 Are icons enabled? More...
 
 enableCheckbox ($a_status)
 En/Dis-able checkboxes. More...
 
 getCheckboxStatus ()
 Are checkboxes enabled? More...
 
 enableExpand ($a_status)
 En/Dis-able expand/collapse link. More...
 
 getExpandStatus ()
 Is expand/collapse enabled. More...
 
 setExpanded ($a_status)
 
 isExpanded ()
 
 setPositionInputField ($a_field_index, $a_position_value)
 Set position input field. More...
 
 enableDelete ($a_status)
 En/disable delete. More...
 
 getDeleteStatus ()
 
 enableCut ($a_status)
 En/disable cut. More...
 
 getCutStatus ()
 
 enableCopy ($a_status)
 En/disable copy. More...
 
 getCopyStatus ()
 
 enableSubscribe ($a_status)
 En/disable subscribe. More...
 
 getSubscribeStatus ()
 
 enablePayment ($a_status)
 En/disable payment. More...
 
 getPaymentStatus ()
 
 enableLink ($a_status)
 En/disable link. More...
 
 getLinkStatus ()
 
 enablePath ($a_path, $a_start_node=null)
 En/disable path. More...
 
 getPathStatus ()
 
 enableCommands ($a_status, $a_std_only=false)
 En/disable commands. More...
 
 getCommandsStatus ()
 
 enableInfoScreen ($a_info_screen)
 En/disable path. More...
 
 addSubItemHTML ($a_html)
 Add HTML for subitem (used for sessions) More...
 
 getInfoScreenStatus ()
 
 enableProgressInfo ($a_status)
 enable progress info More...
 
 getProgressInfoStatus ()
 get progress info status More...
 
 enableSubstitutions ($a_status)
 Enable substitutions. More...
 
 getSubstitutionStatus ()
 Get substitution status. More...
 
 enableItemDetailLinks ($a_status)
 enable item detail links E.g Direct links to chapters or pages More...
 
 getItemDetailLinkStatus ()
 get item detail link status More...
 
 setItemDetailLinks ($a_detail_links, $a_intro_txt='')
 set items detail links More...
 
 insertItemDetailLinks ()
 insert item detail links More...
 
 setTitle ($a_title)
 
 getTitle ()
 getTitle overwritten in class.ilObjLinkResourceList.php More...
 
 setDescription ($a_description)
 
 getDescription ()
 getDescription overwritten in class.ilObjLinkResourceList.php More...
 
 setSearchFragment ($a_text)
 set search fragment More...
 
 getSearchFragment ()
 get search fragment More...
 
 setSeparateCommands ($a_val)
 Set separate commands. More...
 
 getSeparateCommands ()
 Get separate commands. More...
 
 getCommandId ()
 get command id Normally the ref id. More...
 
 setAdditionalInformation ($a_val)
 Set additional information. More...
 
 getAdditionalInformation ()
 Get additional information. More...
 
 setDetailsLevel ($a_level)
 Details level Currently used in Search which shows only limited properties of forums Currently used for Sessions (switch between minimal and extended view for each session) More...
 
 getDetailsLevel ()
 Get current details level. More...
 
 enableRepositoryTransfer ($a_value)
 Enable copy/move to repository (from personal workspace) More...
 
 restrictToGoto ($a_value)
 Restrict all actions/links to goto. More...
 
 checkCommandAccess ($a_permission, $a_cmd, $a_ref_id, $a_type, $a_obj_id="")
 
 initItem ($a_ref_id, $a_obj_id, $a_title="", $a_description="", $a_context=self::CONTEXT_REPOSITORY)
 inititialize new item (is called by getItemHTML()) More...
 
 setConditionTarget ($a_ref_id, $a_obj_id, $a_target_type)
 
 resetConditionTarget ()
 
 disableTitleLink ($a_status)
 
 setDefaultCommandParameters (array $a_params)
 
 createDefaultCommand ($command)
 Get default command link Overwritten for e.g categories,courses => they return a goto link If search engine visibility is enabled these object type return a goto_CLIENT_ID_cat_99.html link. More...
 
 getCommandLink ($a_cmd)
 Get command link url. More...
 
 getCommandFrame ($a_cmd)
 Get command target frame. More...
 
 getCommandImage ($a_cmd)
 Get command icon image. More...
 
 getProperties ($a_item='')
 Get item properties. More...
 
 addCustomProperty ($a_property="", $a_value="", $a_alert=false, $a_newline=false)
 add custom property More...
 
 getCustomProperties ($a_prop)
 get custom properties More...
 
 getAlertProperties ()
 get all alert properties More...
 
 getNoticeProperties ()
 get notice properties More...
 
 addCustomCommand ($a_link, $a_lang_var, $a_frame="", $onclick="")
 add a custom command More...
 
 forceVisibleOnly ($a_stat)
 Force visible access only. More...
 
 isVisibleOnlyForced ()
 Force unreadable. More...
 
 getCommands ()
 get all current commands for a specific ref id (in the permission context of the current user) More...
 
 getIconImageType ()
 Returns the icon image type. More...
 
 insertTitle ()
 insert item title More...
 
 insertSubstitutions ()
 Insert substitutions. More...
 
 insertDescription ()
 insert item description More...
 
 insertSearchFragment ()
 Insert highlighted search fragment. More...
 
 insertRelevance ()
 insert relevance More...
 
 setMode ($a_mode)
 set output mode More...
 
 getMode ()
 get output mode More...
 
 setConditionDepth ($a_depth)
 set depth for precondition output (stops at level 5) More...
 
 isMode ($a_mode)
 check current output mode More...
 
 insertProperties ($a_item='')
 insert properties More...
 
 insertNoticeProperties ()
 
 insertPayment ()
 insert payment information More...
 
 insertPreconditions ()
 insert all missing preconditions More...
 
 insertCommand ($a_href, $a_text, $a_frame="", $a_img="", $a_cmd="", $a_onclick="")
 insert command button More...
 
 insertDeleteCommand ()
 insert cut command More...
 
 insertLinkCommand ()
 insert link command More...
 
 insertCutCommand ($a_to_repository=false)
 insert cut command More...
 
 insertCopyCommand ($a_to_repository=false)
 Insert copy command. More...
 
 insertPasteCommand ()
 Insert paste command. More...
 
 insertSubscribeCommand ()
 insert subscribe command More...
 
 insertInfoScreenCommand ()
 insert info screen command More...
 
 insertCommonSocialCommands ($a_header_actions=false)
 Insert common social commands (comments, notes, tagging) More...
 
 insertTimingsCommand ()
 insert edit timings command More...
 
 insertCommands ($a_use_asynch=false, $a_get_asynch_commands=false, $a_asynch_url="", $a_header_actions=false)
 insert all commands into html code More...
 
 enableComments ($a_value, $a_enable_comments_settings=true)
 Toogle comments action status. More...
 
 enableNotes ($a_value)
 Toogle notes action status. More...
 
 enableTags ($a_value)
 Toogle tags action status. More...
 
 enableRating ($a_value, $a_text=null, $a_categories=false, array $a_ctrl_path=null)
 Toogle rating action status. More...
 
 enableMultiDownload ($a_value)
 Toggles whether multiple objects can be downloaded at once or not. More...
 
 insertMultiDownloadCommand ()
 
 enableDownloadCheckbox ($a_ref_id, $a_value)
 
 getDownloadCheckboxState ()
 
 setHeaderSubObject ($a_type, $a_id)
 Set sub object identifier. More...
 
 addHeaderIcon ($a_id, $a_img, $a_tooltip=null, $a_onclick=null, $a_status_text=null, $a_href=null)
 
 addHeaderIconHTML ($a_id, $a_html)
 
 setAjaxHash ($a_hash)
 
 getHeaderAction ()
 Get header action. More...
 
 appendRepositoryFrameParameter ($a_link)
 workaround: all links into the repository (from outside) must tell repository to setup the frameset More...
 
 modifySAHSlaunch ($a_link, $wtarget)
 workaround: SAHS in new javavasript-created window or iframe More...
 
 insertPath ()
 insert path More...
 
 insertProgressInfo ()
 insert progress info More...
 
 insertIconsAndCheckboxes ()
 Insert icons and checkboxes. More...
 
 insertSubItems ()
 Insert subitems. More...
 
 insertPositionField ()
 Insert field for positioning. More...
 
 adminCommandsIncluded ()
 returns whether any admin commands (link, delete, cut) are included in the output More...
 
 storeAccessCache ()
 Store access cache. More...
 
 getListItemHTML ($a_ref_id, $a_obj_id, $a_title, $a_description, $a_use_asynch=false, $a_get_asynch_commands=false, $a_asynch_url="", $a_context=self::CONTEXT_REPOSITORY)
 Get all item information (title, commands, description) in HTML. More...
 
 setParentRefId ($a_ref_id)
 Set current parent ref id to enable unique js-ids (sessions, etc.) More...
 
 getCommandsHTML ()
 Get commands HTML (must be called after get list item html) More...
 
 isSideBlock ()
 Returns whether current item is a block in a side column or not. More...
 
 setBoldTitle ($a_bold_title)
 @access public @params boolean $a_bold_title set the item title bold More...
 
 isTitleBold ()
 @access public More...
 
 enableTimings ($a_status)
 enable timings link More...
 
 isFileUploadAllowed ()
 Gets a value indicating whether file uploads to this object are allowed or not. More...
 
 insertFileUpload ()
 Inserts a file upload component. More...
 

Protected Member Functions

 modifyTitleLink ($a_default_link)
 
- Protected Member Functions inherited from ilObjectListGUI
 buildGotoLink ()
 
 insertPaymentCommand ($has_extension_prices=false)
 
 parseConditions ($toggle_id, $conditions, $obligatory=true)
 
 modifyTitleLink ($a_default_link)
 
 resetCustomData ()
 reset properties and commands More...
 
 getUniqueItemId ($a_as_div=false)
 Get unique item identifier (for js-actions) More...
 
 isCommentsActivated ($a_type, $a_ref_id, $a_obj_id, $a_header_actions, $a_check_write_access=true)
 Check comments status against comments settings and context. More...
 

Protected Attributes

 $command_link_params = array()
 
- Protected Attributes inherited from ilObjectListGUI
 $obj_id
 
 $ref_id
 
 $type
 
 $sub_obj_id
 
 $sub_obj_type
 
 $substitutions = null
 
 $substitutions_enabled = false
 
 $icons_enabled = false
 
 $checkboxes_enabled = false
 
 $position_enabled = false
 
 $progress_enabled = false
 
 $item_detail_links_enabled = false
 
 $item_detail_links = array()
 
 $item_detail_links_intro = ''
 
 $search_fragments_enabled = false
 
 $search_fragment = ''
 
 $path_linked = false
 
 $enabled_relevance = false
 
 $relevance = 0
 
 $expand_enabled = false
 
 $is_expanded = true
 
 $bold_title = false
 
 $copy_enabled = true
 
 $details_level = self::DETAILS_ALL
 
 $reference_ref_id = false
 
 $separate_commands = false
 
 $search_fragment_enabled = false
 
 $additional_information = false
 
 $static_link_enabled = false
 
 $repository_transfer_enabled = false
 
 $shared = false
 
 $restrict_to_goto = false
 
 $comments_enabled = false
 
 $comments_settings_enabled = false
 
 $notes_enabled = false
 
 $tags_enabled = false
 
 $rating_enabled = false
 
 $rating_categories_enabled = false
 
 $rating_text = false
 
 $rating_ctrl_path = false
 
 $timings_enabled = true
 
 $force_visible_only = false
 
 $prevent_duplicate_commands = array()
 
 $parent_ref_id
 
 $title_link = ''
 
 $title_link_disabled = false
 

Private Member Functions

 handleUserResultsCommand ($commands)
 
 isObjectiveTest ()
 
 removeUserResultsCommand ($commands)
 

Additional Inherited Members

- Static Public Member Functions inherited from ilObjectListGUI
static prepareJsLinks ($a_redraw_url, $a_notes_url, $a_tags_url, $a_tpl=null)
 Insert js/ajax links into template
More...
 
static preloadCommonProperties ($a_obj_ids, $a_context)
 Preload common properties. More...
 
- Data Fields inherited from ilObjectListGUI
const DETAILS_MINIMAL = 10
 
const DETAILS_SEARCH = 20
 
const DETAILS_ALL = 30
 
const CONTEXT_REPOSITORY = 1
 
const CONTEXT_WORKSPACE = 2
 
const CONTEXT_SHOP = 3
 
const CONTEXT_WORKSPACE_SHARING = 4
 
const CONTEXT_PERSONAL_DESKTOP = 5
 
const CONTEXT_SEARCH = 6
 
const DOWNLOAD_CHECKBOX_NONE = 0
 
const DOWNLOAD_CHECKBOX_ENABLED = 1
 
const DOWNLOAD_CHECKBOX_DISABLED = 2
 
 $ctrl
 
 $description_enabled = true
 
 $preconditions_enabled = true
 
 $properties_enabled = true
 
 $notice_properties_enabled = true
 
 $commands_enabled = true
 
 $cust_prop = array()
 
 $cust_commands = array()
 
 $info_screen_enabled = false
 
 $condition_depth = 0
 
 $std_cmd_only = false
 
 $sub_item_html = array()
 
 $multi_download_enabled = false
 
 $download_checkbox_state = self::DOWNLOAD_CHECKBOX_NONE
 
- Static Protected Attributes inherited from ilObjectListGUI
static $cnt_notes = array()
 
static $cnt_tags = array()
 
static $tags = array()
 
static $comments_activation = array()
 
static $preload_done = false
 
static $js_unique_id = 0
 
static $tpl_file_name = "tpl.container_list_item.html"
 
static $tpl_component = "Services/Container"
 

Detailed Description

Member Function Documentation

◆ addCommandLinkParameter()

ilObjTestListGUI::addCommandLinkParameter (   $a_param)

add command link parameters

@access public

Parameters
array(param => value)
Returns

Definition at line 231 of file class.ilObjTestListGUI.php.

232 {
233 $this->command_link_params = $a_param;
234 }

◆ createDefaultCommand()

ilObjTestListGUI::createDefaultCommand (   $a_command)

overwritten from base class for course objectives

@access public

Parameters

return

Reimplemented from ilObjectListGUI.

Definition at line 218 of file class.ilObjTestListGUI.php.

219 {
220 return $a_command;
221 }

◆ getCommandFrame()

ilObjTestListGUI::getCommandFrame (   $a_cmd)

Get command target frame.

Parameters
string$a_cmdcommand
Returns
string command target frame

Reimplemented from ilObjectListGUI.

Definition at line 75 of file class.ilObjTestListGUI.php.

76 {
77 switch($a_cmd)
78 {
79 case "":
80 case "infoScreen":
81 case "eval_a":
82 case "eval_stat":
83 include_once "./Services/UICore/classes/class.ilFrameTargetInfo.php";
84 $frame = ilFrameTargetInfo::_getFrame("MainContent");
85 break;
86
87 default:
88 }
89
90 return $frame;
91 }
static _getFrame($a_class, $a_type='')
Get content frame name.

References ilFrameTargetInfo\_getFrame().

+ Here is the call graph for this function:

◆ getCommandLink()

ilObjTestListGUI::getCommandLink (   $a_cmd)

Get command link url.

Parameters
int$a_ref_idreference id
string$a_cmdcommand

Reimplemented from ilObjectListGUI.

Definition at line 136 of file class.ilObjTestListGUI.php.

137 {
138 global $ilCtrl;
139
140 $a_cmd = explode('::', $a_cmd);
141
142 if( count($a_cmd) == 2 )
143 {
144 $cmd_link = $ilCtrl->getLinkTargetByClass(array('ilRepositoryGUI', 'ilObjTestGUI', $a_cmd[0]), $a_cmd[1]);
145 }
146 else
147 {
148 $cmd_link = $ilCtrl->getLinkTargetByClass('ilObjTestGUI', $a_cmd[0]);
149 }
150
151 $params = array_merge(array('ref_id' => $this->ref_id), $this->command_link_params);
152
153 foreach($params as $param => $value)
154 {
155 $cmd_link = ilUtil::appendUrlParameterString($cmd_link, "$param=$value", true);
156 }
157
158 return $cmd_link;
159 }
static appendUrlParameterString($a_url, $a_par, $xml_style=false)
append URL parameter string ("par1=value1&par2=value2...") to given URL string
$params
Definition: example_049.php:96
global $ilCtrl
Definition: ilias.php:18

References $ilCtrl, $params, and ilUtil\appendUrlParameterString().

+ Here is the call graph for this function:

◆ getCommands()

ilObjTestListGUI::getCommands ( )

get all current commands for a specific ref id (in the permission context of the current user)

!!!NOTE!!!: Please use getListHTML() if you want to display the item including all commands

!!!NOTE 2!!!: Please do not overwrite this method in derived classes becaus it will get pretty large and much code will be simply copy-and-pasted. Insert smaller object type related method calls instead. (like getCommandLink() or getCommandFrame())

@access public

Parameters
int$a_ref_idref id of object
Returns
array array of command arrays including "permission" => permission name "cmd" => command "link" => command link url "frame" => command link frame "lang_var" => language variable of command "granted" => true/false: command granted or not "access_info" => access info object (to do: implementation)

Reimplemented from ilObjectListGUI.

Definition at line 161 of file class.ilObjTestListGUI.php.

162 {
163 $commands = parent::getCommands();
164
165 $commands = $this->handleUserResultsCommand($commands);
166
167 return $commands;
168 }

References handleUserResultsCommand().

+ Here is the call graph for this function:

◆ getProperties()

ilObjTestListGUI::getProperties ( )

Get item properties.

Returns
array array of property arrays: "alert" (boolean) => display as an alert property (usually in red) "property" (string) => property name "value" (string) => property value

Definition at line 103 of file class.ilObjTestListGUI.php.

104 {
105 global $lng, $ilUser;
106
107 $props = array();
108 include_once "./Modules/Test/classes/class.ilObjTestAccess.php";
109
110 if (!ilObjTestAccess::_isOnline($this->obj_id))
111 {
112 $props[] = array("alert" => true, "property" => $lng->txt("status"),
113 "value" => $lng->txt("offline"));
114 }
115
116
117 // we cannot use ilObjTestAccess::_isOffline() because of text messages
118 $onlineaccess = ilObjTestAccess::_lookupOnlineTestAccess($this->obj_id, $ilUser->id);
119 if ($onlineaccess !== true)
120 {
121 $props[] = array("alert" => true, "property" => $lng->txt("status"),
122 "value" => $onlineaccess);
123 }
124
125 return $props;
126 }
_lookupOnlineTestAccess($a_test_id, $a_user_id)
Checks if a user is allowd to run an online exam.
static _isOnline($a_obj_id)
returns the objects's ONline status
global $lng
Definition: privfeed.php:40
global $ilUser
Definition: imgupload.php:15

References $ilUser, $lng, ilObjTestAccess\_isOnline(), and ilObjTestAccess\_lookupOnlineTestAccess().

+ Here is the call graph for this function:

◆ handleUserResultsCommand()

ilObjTestListGUI::handleUserResultsCommand (   $commands)
private

Definition at line 170 of file class.ilObjTestListGUI.php.

171 {
172 global $ilUser;
173
174 if( !$this->isObjectiveTest() )
175 {
176 $commands = $this->removeUserResultsCommand($commands);
177 }
178 else
179 {
180 require_once 'Modules/Test/classes/class.ilObjTestAccess.php';
181
182 if( !ilObjTestAccess::visibleUserResultExists($this->obj_id, $ilUser->getId()) )
183 {
184 $commands = $this->removeUserResultsCommand($commands);
185 }
186 }
187
188 return $commands;
189 }
static visibleUserResultExists($testObjId, $userId)

References $ilUser, isObjectiveTest(), removeUserResultsCommand(), and ilObjTestAccess\visibleUserResultExists().

Referenced by getCommands().

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

◆ ilObjTestListGUI()

ilObjTestListGUI::ilObjTestListGUI ( )

constructor

Definition at line 27 of file class.ilObjTestListGUI.php.

28 {
29 $this->ilObjectListGUI();
30 $this->info_screen_enabled = true;
31 }
ilObjectListGUI()
constructor

References ilObjectListGUI\ilObjectListGUI().

+ Here is the call graph for this function:

◆ init()

ilObjTestListGUI::init ( )

initialisation

Reimplemented from ilObjectListGUI.

Definition at line 36 of file class.ilObjTestListGUI.php.

37 {
38 $this->static_link_enabled = true;
39 $this->delete_enabled = true;
40 $this->cut_enabled = true;
41 $this->copy_enabled = true;
42 $this->subscribe_enabled = true;
43 $this->link_enabled = true;
44 $this->payment_enabled = true;
45 $this->type = "tst";
46 $this->gui_class_name = "ilobjtestgui";
47
48 // general commands array
49 include_once "./Modules/Test/classes/class.ilObjTestAccess.php";
50 $this->commands = ilObjTestAccess::_getCommands();
51 }
_getCommands()
get commands

References ilObjTestAccess\_getCommands().

+ Here is the call graph for this function:

◆ initItem()

ilObjTestListGUI::initItem (   $a_ref_id,
  $a_obj_id,
  $a_title = "",
  $a_description = "" 
)

inititialize new item

Parameters
int$a_ref_idreference id
int$a_obj_idobject id
string$a_titletitle
string$a_descriptiondescription

Definition at line 62 of file class.ilObjTestListGUI.php.

63 {
64 parent::initItem($a_ref_id, $a_obj_id, $a_title, $a_description);
65 }

◆ isObjectiveTest()

ilObjTestListGUI::isObjectiveTest ( )
private

Definition at line 191 of file class.ilObjTestListGUI.php.

192 {
193 require_once 'Modules/Course/classes/Objectives/class.ilLOSettings.php';
194 return ilLOSettings::isObjectiveTest($this->ref_id);
195 }
static isObjectiveTest($a_trst_ref_id)
Check if test ref_id is used in an objective course.

References ilLOSettings\isObjectiveTest().

Referenced by handleUserResultsCommand().

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

◆ modifyTitleLink()

ilObjTestListGUI::modifyTitleLink (   $a_default_link)
protected

Reimplemented from ilObjectListGUI.

Definition at line 237 of file class.ilObjTestListGUI.php.

238 {
239 include_once './Modules/Course/classes/Objectives/class.ilLOSettings.php';
240 $id = ilLOSettings::isObjectiveTest($this->ref_id);
241
242 $cmd_link = $a_default_link;
243
244 if($id)
245 {
246 $ref_ids = ilObject::_getAllReferences($id);
247 $ref_id = end($ref_ids);
248
249 $this->ctrl->setParameterByClass("ilrepositorygui", 'ref_id', $ref_id);
250 $this->ctrl->setParameterByClass("ilrepositorygui", 'tid', $this->ref_id);
251 $cmd_link = $this->ctrl->getLinkTargetByClass("ilrepositorygui", 'redirectLocToTest');
252 $this->ctrl->setParameterByClass("ilrepositorygui", "ref_id", $this->ref_id);
253 $this->ctrl->clearParametersByClass('ilrepositorygui');
254 }
255 return parent::modifyTitleLink($cmd_link);
256 }
static _getAllReferences($a_id)
get all reference ids of object

References ilObjectListGUI\$ref_id, ilObject\_getAllReferences(), and ilLOSettings\isObjectiveTest().

+ Here is the call graph for this function:

◆ removeUserResultsCommand()

ilObjTestListGUI::removeUserResultsCommand (   $commands)
private

Definition at line 197 of file class.ilObjTestListGUI.php.

198 {
199 foreach($commands as $key => $command)
200 {
201 if($command['cmd'] == 'userResultsGateway')
202 {
203 unset($commands[$key]);
204 break;
205 }
206 }
207
208 return $commands;
209 }

Referenced by handleUserResultsCommand().

+ Here is the caller graph for this function:

Field Documentation

◆ $command_link_params

ilObjTestListGUI::$command_link_params = array()
protected

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


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