ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilObjTaggingSettingsGUI Class Reference

Media Cast Settings. More...

+ Inheritance diagram for ilObjTaggingSettingsGUI:
+ Collaboration diagram for ilObjTaggingSettingsGUI:

Public Member Functions

 __construct ($a_data, int $a_id, bool $a_call_by_reference=true, bool $a_prepare_output=true)
 @inheritDoc More...
 
 executeCommand ()
 Execute command. More...
 
 getAdminTabs ()
 administration tabs show only permissions and trash folder More...
 
 addSubTabs ()
 
 editSettings ()
 
 saveSettings ()
 
 cancel ()
 
 editForbiddenTags ()
 
 initForbiddenTagsForm ()
 Init forbidden tags form. More...
 
 saveForbiddenTags ()
 Save forbidden tags. More...
 
 showUsers (bool $a_search=false)
 
 searchUsersForTag ()
 Search users for tag. More...
 
- Public Member Functions inherited from ilObjectGUI
 getRefId ()
 
 setAdminMode (string $mode)
 
 getAdminMode ()
 
 getObject ()
 
 executeCommand ()
 
 withReferences ()
 determines whether objects are referenced or not (got ref ids or not) More...
 
 setCreationMode (bool $mode=true)
 If true, a creation screen is displayed the current [ref_id] does belong to the parent class The mode is determined in ilRepositoryGUI. More...
 
 getCreationMode ()
 
 prepareOutput (bool $show_sub_objects=true)
 
 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...
 
 cancelObject ()
 cancel action and go back to previous page More...
 
 createObject ()
 create new object form More...
 
 editAvailabilityPeriodObject ()
 
 saveAvailabilityPeriodObject ()
 
 cancelCreation ()
 cancel create action and go back to repository parent More...
 
 saveObject ()
 
 getDidacticTemplateVar (string $type)
 Get didactic template setting from creation screen. More...
 
 putObjectInTree (ilObject $obj, ?int $parent_node_id=null)
 Add object to tree at given position. More...
 
 editObject ()
 
 addExternalEditFormCustom (ilPropertyFormGUI $form)
 
 updateObject ()
 updates object entry in object_data More...
 
 getFormAction (string $cmd, string $default_form_action="")
 Get form action for command (command is method name without "Object", e.g. More...
 
 isVisible (int $ref_id, string $type)
 
 viewObject ()
 viewObject container presentation for "administration -> repository, trash, permissions" More...
 
 deleteObject (bool $error=false)
 Display deletion confirmation screen. More...
 
 setColumnSettings (ilColumnGUI $column_gui)
 
 addToDeskObject ()
 
 removeFromDeskObject ()
 
- Public Member Functions inherited from ILIAS\Object\ImplementsCreationCallback
 callCreationCallback (\ilObject $object, \ilObjectDefinition $obj_definition, int $requested_crtcb)
 

Protected Member Functions

 initFormSettings ()
 Init settings property form. More...
 
- Protected Member Functions inherited from ilObjectGUI
 getObjectService ()
 
 assignObject ()
 
 setTitleAndDescription ()
 
 createActionDispatcherGUI ()
 
 initHeaderAction (?string $sub_type=null, ?int $sub_id=null)
 Add header action menu. More...
 
 insertHeaderAction (?ilObjectListGUI $list_gui=null)
 Insert header action into main template. More...
 
 addHeaderAction ()
 Add header action menu. More...
 
 redrawHeaderActionObject ()
 Ajax call: redraw action header only. More...
 
 setTabs ()
 set admin tabs More...
 
 setAdminTabs ()
 set admin tabs More...
 
 setLocator ()
 
 addLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 omitLocator (bool $omit=true)
 
 addAdminLocatorItems (bool $do_not_add_object=false)
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 getCreationFormsHTML (StandardForm|ilPropertyFormGUI|array $form)
 
 getTitleForCreationFormPage ()
 
 getCreationFormTitle ()
 
 initCreateForm (string $new_type)
 
 didacticTemplatesToForm ()
 
 initDidacticTemplate (ilPropertyFormGUI $form)
 
 retrieveAdditionalDidacticTemplateOptions ()
 
 addAdoptContentLinkToToolbar ()
 
 addImportButtonToToolbar ()
 
 addAvailabilityPeriodButtonToToolbar (ilToolbarGUI $toolbar)
 
 parseDidacticTemplateVar (string $var, string $type)
 
 afterSave (ilObject $new_object)
 Post (successful) object creation hook. More...
 
 initEditForm ()
 
 initEditCustomForm (ilPropertyFormGUI $a_form)
 Add custom fields to update form. More...
 
 getEditFormValues ()
 
 getEditFormCustomValues (array &$a_values)
 Add values to custom edit fields. More...
 
 validateCustom (ilPropertyFormGUI $form)
 Validate custom values (if not possible with checkInput()) More...
 
 updateCustom (ilPropertyFormGUI $form)
 Insert custom update form values into object. More...
 
 afterUpdate ()
 Post (successful) object update hook. More...
 
 routeImportCmdObject ()
 
 importFile (string $file_to_import, string $path_to_uploaded_file_in_temp_dir)
 
 deleteUploadedImportFile (string $path_to_uploaded_file_in_temp_dir)
 
 afterImport (ilObject $new_object)
 Post (successful) object import hook. More...
 
 setFormAction (string $cmd, string $form_action)
 
 getReturnLocation (string $cmd, string $default_location="")
 Get return location for command (command is method name without "Object", e.g. More...
 
 setReturnLocation (string $cmd, string $location)
 set specific return location for command More...
 
 getTargetFrame (string $cmd, string $default_target_frame="")
 get target frame for command (command is method name without "Object", e.g. More...
 
 setTargetFrame (string $cmd, string $target_frame)
 Set specific target frame for command. More...
 
 showPossibleSubObjects ()
 show possible sub objects (pull down menu) More...
 
 getTabs ()
 @abstract overwrite in derived GUI class of your object type More...
 
 redirectToRefId (int $ref_id, string $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 ["ref_id"] value of the request More...
 
 getCenterColumnHTML ()
 Get center column. More...
 
 getRightColumnHTML ()
 Display right column. More...
 
 checkPermission (string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
 checkPermissionBool (string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files. More...
 
 getCreatableObjectTypes ()
 
 buildAddNewItemElements (array $subtypes, string $create_target_class=ilRepositoryGUI::class, ?int $redirect_target_ref_id=null,)
 
 buildGroup (string $create_target_class, array $obj_types_in_group, string $title, array $subtypes)
 

Protected Attributes

ilRbacSystem $rbacsystem
 
ilTabsGUI $tabs
 
string $requested_tag
 
- Protected Attributes inherited from ilObjectGUI
ILIAS Notes Service $notes_service
 
GlobalHttpState $http
 
ServerRequestInterface $request
 
ilLocatorGUI $locator
 
ilObjUser $user
 
ilAccessHandler $access
 
ilSetting $settings
 
ilToolbarGUI $toolbar
 
ilRbacAdmin $rbac_admin
 
ilRbacSystem $rbac_system
 
ilRbacReview $rbac_review
 
ilObjectService $object_service
 
ilObjectDefinition $obj_definition
 
ilGlobalTemplateInterface $tpl
 
ilTree $tree
 
ilCtrl $ctrl
 
ilErrorHandling $error
 
ilLanguage $lng
 
ilTabsGUI $tabs_gui
 
ILIAS $ilias
 
ArrayBasedRequestWrapper $post_wrapper
 
RequestWrapper $request_wrapper
 
Refinery $refinery
 
ilFavouritesManager $favourites
 
CustomIconFactory $custom_icon_factory
 
UIFactory $ui_factory
 
UIRenderer $ui_renderer
 
Filesystem $temp_file_system
 
ilObject $object = null
 
bool $creation_mode = false
 
 $data
 
int $id
 
bool $call_by_reference = false
 
bool $prepare_output
 
int $ref_id
 
int $obj_id
 
int $maxcount
 
array $form_action = []
 
array $return_location = []
 
array $target_frame = []
 
string $tmp_import_dir
 
string $sub_objects = ""
 
bool $omit_locator = false
 
string $type = ""
 
string $admin_mode = self::ADMIN_MODE_NONE
 
int $requested_ref_id = 0
 
int $requested_crtptrefid = 0
 
int $requested_crtcb = 0
 
string $requested_new_type = ""
 
string $link_params
 
string $html = ""
 

Additional Inherited Members

- Static Public Member Functions inherited from ilObjectGUI
static _gotoRepositoryRoot (bool $raise_error=false)
 Goto repository root. More...
 
static _gotoRepositoryNode (int $ref_id, string $cmd="")
 
static _gotoSharedWorkspaceNode (int $wsp_id)
 
- Data Fields inherited from ilObjectGUI
const ADMIN_MODE_NONE = ""
 
const ADMIN_MODE_SETTINGS = "settings"
 
const ADMIN_MODE_REPOSITORY = "repository"
 
const UPLOAD_TYPE_LOCAL = 1
 
const UPLOAD_TYPE_UPLOAD_DIRECTORY = 2
 
const CFORM_NEW = 1
 
const CFORM_IMPORT = 2
 
const CFORM_CLONE = 3
 
const SUPPORTED_IMPORT_MIME_TYPES = [MimeType::APPLICATION__ZIP, MimeType::APPLICATION__X_ZIP_COMPRESSED]
 

Detailed Description

Media Cast Settings.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de @ilCtrl_Calls ilObjTaggingSettingsGUI: ilPermissionGUI @ilCtrl_IsCalledBy ilObjTaggingSettingsGUI: ilAdministrationGUI

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

Constructor & Destructor Documentation

◆ __construct()

ilObjTaggingSettingsGUI::__construct (   $a_data,
int  $a_id,
bool  $a_call_by_reference = true,
bool  $a_prepare_output = true 
)

@inheritDoc

Definition at line 37 of file class.ilObjTaggingSettingsGUI.php.

38 {
39 global $DIC;
40
41 $this->rbacsystem = $DIC->rbac()->system();
42 $this->access = $DIC->access();
43 $this->tabs = $DIC->tabs();
44 $this->lng = $DIC->language();
45 $this->ctrl = $DIC->ctrl();
46 $this->settings = $DIC->settings();
47 $this->tpl = $DIC["tpl"];
48 $this->toolbar = $DIC->toolbar();
49 $this->type = 'tags';
50 parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
51
52 $this->lng->loadLanguageModule('tagging');
53
54 $params = $this->request->getQueryParams();
55 $body = $this->request->getParsedBody();
56 $this->requested_tag = (string) ilUtil::stripSlashes($body["tag"] ?? ($params["tag"] ?? ""));
57 }
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
Definition: ltiregstart.php:31
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26

References $DIC, $params, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ILIAS\Repository\settings(), ilUtil\stripSlashes(), ILIAS\Repository\tabs(), and ILIAS\Repository\toolbar().

+ Here is the call graph for this function:

Member Function Documentation

◆ addSubTabs()

ilObjTaggingSettingsGUI::addSubTabs ( )

Definition at line 112 of file class.ilObjTaggingSettingsGUI.php.

112 : void
113 {
114 $ilTabs = $this->tabs;
115
116 $tags_set = new ilSetting("tags");
117 if ($tags_set->get("enable")) {
118 $ilTabs->addSubTab(
119 "settings",
120 $this->lng->txt("settings"),
121 $this->ctrl->getLinkTarget($this, "editSettings")
122 );
123
124 if ($this->rbacsystem->checkAccess("visible,read", $this->object->getRefId())) {
125 $ilTabs->addSubTab(
126 "forbidden_tags",
127 $this->lng->txt("tagging_forbidden_tags"),
128 $this->ctrl->getLinkTarget($this, "editForbiddenTags")
129 );
130
131 $ilTabs->addSubTab(
132 "users",
133 $this->lng->txt("users"),
134 $this->ctrl->getLinkTarget($this, "showUsers")
135 );
136 }
137 }
138 }
ILIAS Setting Class.

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

Referenced by editForbiddenTags(), editSettings(), and showUsers().

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

◆ cancel()

ilObjTaggingSettingsGUI::cancel ( )

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

170 : void
171 {
172 $ilCtrl = $this->ctrl;
173 $ilCtrl->redirect($this, "view");
174 }
redirect(object $a_gui_obj, ?string $a_cmd=null, ?string $a_anchor=null, bool $is_async=false)
@inheritDoc

References ilObjectGUI\$ctrl, and ilCtrl\redirect().

+ Here is the call graph for this function:

◆ editForbiddenTags()

ilObjTaggingSettingsGUI::editForbiddenTags ( )

Definition at line 229 of file class.ilObjTaggingSettingsGUI.php.

229 : void
230 {
231 $ilTabs = $this->tabs;
233
234 $this->addSubTabs();
235 $ilTabs->activateSubTab("forbidden_tags");
236 $ilTabs->activateTab("tagging_edit_settings");
237 $form = $this->initForbiddenTagsForm();
238
239 $tpl->setContent($form->getHTML());
240 }
initForbiddenTagsForm()
Init forbidden tags form.
ilGlobalTemplateInterface $tpl
setContent(string $a_html)
Sets content for standard template.

References $tabs, ilObjectGUI\$tpl, addSubTabs(), initForbiddenTagsForm(), and ILIAS\UICore\GlobalTemplate\setContent().

+ Here is the call graph for this function:

◆ editSettings()

ilObjTaggingSettingsGUI::editSettings ( )

Definition at line 141 of file class.ilObjTaggingSettingsGUI.php.

141 : void
142 {
143 $ilTabs = $this->tabs;
144
145 $this->tabs_gui->setTabActive('tagging_edit_settings');
146 $this->addSubTabs();
147 $ilTabs->activateSubTab("settings");
148 $form = $this->initFormSettings();
149 $this->tpl->setContent($form->getHTML());
150 }
initFormSettings()
Init settings property form.
setTabActive(string $a_id)

References $tabs, addSubTabs(), initFormSettings(), and ilTabsGUI\setTabActive().

+ Here is the call graph for this function:

◆ executeCommand()

ilObjTaggingSettingsGUI::executeCommand ( )

Execute command.

Exceptions
ilCtrlException
ilObjectException

Reimplemented from ilObjectGUI.

Definition at line 64 of file class.ilObjTaggingSettingsGUI.php.

64 : void
65 {
66 $next_class = $this->ctrl->getNextClass($this);
67 $cmd = $this->ctrl->getCmd();
68 $this->prepareOutput();
69
70 if (!$this->rbacsystem->checkAccess("visible,read", $this->object->getRefId())) {
71 throw new ilObjectException($this->lng->txt("permission_denied"));
72 }
73
74 switch ($next_class) {
75 case 'ilpermissiongui':
76 $this->tabs_gui->setTabActive('perm_settings');
77 $perm_gui = new ilPermissionGUI($this);
78 $this->ctrl->forwardCommand($perm_gui);
79 break;
80
81 default:
82 if (!$cmd || $cmd == 'view') {
83 $cmd = "editSettings";
84 }
85 $this->$cmd();
86 break;
87 }
88 }
Base exception class for object service.
prepareOutput(bool $show_sub_objects=true)

References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ilObjectGUI\prepareOutput().

+ Here is the call graph for this function:

◆ getAdminTabs()

ilObjTaggingSettingsGUI::getAdminTabs ( )

administration tabs show only permissions and trash folder

Reimplemented from ilObjectGUI.

Definition at line 90 of file class.ilObjTaggingSettingsGUI.php.

90 : void
91 {
93
94 if ($rbacsystem->checkAccess("visible,read", $this->object->getRefId())) {
95 $this->tabs_gui->addTarget(
96 "tagging_edit_settings",
97 $this->ctrl->getLinkTarget($this, "editSettings"),
98 array("editSettings", "view")
99 );
100 }
101
102 if ($rbacsystem->checkAccess('edit_permission', $this->object->getRefId())) {
103 $this->tabs_gui->addTarget(
104 "perm_settings",
105 $this->ctrl->getLinkTargetByClass('ilpermissiongui', "perm"),
106 array(),
107 'ilpermissiongui'
108 );
109 }
110 }
checkAccess(string $a_operations, int $a_ref_id, string $a_type="")
checkAccess represents the main method of the RBAC-system in ILIAS3 developers want to use With this ...

References $rbacsystem, ilRbacSystem\checkAccess(), and ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ initForbiddenTagsForm()

ilObjTaggingSettingsGUI::initForbiddenTagsForm ( )

Init forbidden tags form.

Definition at line 245 of file class.ilObjTaggingSettingsGUI.php.

246 {
248 $ilCtrl = $this->ctrl;
249
250 $tags_set = new ilSetting("tags");
251 $forbidden = $tags_set->get("forbidden_tags");
252
253 $forb_str = "";
254 if ($forbidden != "") {
255 $tags_array = unserialize((string) $forbidden, ['allowed_classes' => false]);
256 $forb_str = implode(" ", $tags_array);
257 }
258
259 $form = new ilPropertyFormGUI();
260
261 // tags
262 $ta = new ilTextAreaInputGUI($this->lng->txt("tagging_tags"), "forbidden_tags");
263 $ta->setCols(50);
264 $ta->setRows(10);
265 $ta->setValue($forb_str);
266 $form->addItem($ta);
267
268 $form->addCommandButton("saveForbiddenTags", $lng->txt("save"));
269
270 $form->setTitle($lng->txt("tagging_forbidden_tags"));
271 $form->setFormAction($ilCtrl->getFormAction($this));
272
273 return $form;
274 }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
ilLanguage $lng
This class represents a property form user interface.
This class represents a text area property in a property form.

References ilObjectGUI\$ctrl, ilObjectGUI\$lng, ILIAS\Repository\lng(), and ilLanguage\txt().

Referenced by editForbiddenTags(), and saveForbiddenTags().

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

◆ initFormSettings()

ilObjTaggingSettingsGUI::initFormSettings ( )
protected

Init settings property form.

Definition at line 179 of file class.ilObjTaggingSettingsGUI.php.

180 {
182 $ilAccess = $this->access;
183
184 $tags_set = new ilSetting("tags");
185
186 $form = new ilPropertyFormGUI();
187 $form->setFormAction($this->ctrl->getFormAction($this));
188 $form->setTitle($this->lng->txt('tagging_settings'));
189
190 if ($ilAccess->checkAccess("write", "", $this->object->getRefId())) {
191 $form->addCommandButton('saveSettings', $this->lng->txt('save'));
192 $form->addCommandButton('cancel', $this->lng->txt('cancel'));
193 }
194
195 // enable tagging
196 $cb_prop = new ilCheckboxInputGUI(
197 $lng->txt("tagging_enable_tagging"),
198 "enable_tagging"
199 );
200 $cb_prop->setValue("1");
201 $cb_prop->setChecked((bool) $tags_set->get("enable"));
202
203 // enable all users info
204 $cb_prop2 = new ilCheckboxInputGUI(
205 $lng->txt("tagging_enable_all_users"),
206 "enable_all_users"
207 );
208 $cb_prop2->setInfo($lng->txt("tagging_enable_all_users_info"));
209 $cb_prop2->setChecked((bool) $tags_set->get("enable_all_users"));
210 $cb_prop->addSubItem($cb_prop2);
211
212 $form->addItem($cb_prop);
213
216 $form,
217 $this
218 );
219
220 return $form;
221 }
static addFieldsToForm(int $a_form_id, ilPropertyFormGUI $a_form, ilObjectGUI $a_parent_gui)
This class represents a checkbox property in a property form.
ilAccessHandler $access

References ilObjectGUI\$access, ilObjectGUI\$lng, ilAdministrationSettingsFormHandler\addFieldsToForm(), ILIAS\Repository\ctrl(), ilAdministrationSettingsFormHandler\FORM_TAGGING, ILIAS\Repository\lng(), and ilLanguage\txt().

Referenced by editSettings(), and saveSettings().

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

◆ saveForbiddenTags()

ilObjTaggingSettingsGUI::saveForbiddenTags ( )

Save forbidden tags.

Definition at line 279 of file class.ilObjTaggingSettingsGUI.php.

279 : void
280 {
282 $ilCtrl = $this->ctrl;
283
284 $form = $this->initForbiddenTagsForm();
285
286
287 if (!$this->checkPermissionBool("write")) {
288 $this->tpl->setOnScreenMessage('failure', $this->lng->txt('tagging_no_perm_write'), true);
289 $this->ctrl->redirect($this, "editForbiddenTags");
290 }
291
292 if ($form->checkInput()) {
293 $tags = str_replace(",", " ", $form->getInput("forbidden_tags"));
294 $tags = explode(" ", $tags);
295 $tags_array = array();
296 foreach ($tags as $t) {
297 $t = strtolower(trim($t));
298 if ($t != "") {
299 $tags_array[$t] = $t;
300 }
301 }
302
303 asort($tags_array);
304
305 $tags_set = new ilSetting("tags");
306
307 $tags_set->set("forbidden_tags", serialize($tags_array));
308
309 $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
310 }
311 $ilCtrl->redirect($this, "editForbiddenTags");
312 }
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $ref_id=null)

References ilObjectGUI\$ctrl, ilObjectGUI\$lng, ilObjectGUI\checkPermissionBool(), ILIAS\Repository\ctrl(), initForbiddenTagsForm(), ILIAS\Repository\lng(), and ilLanguage\txt().

+ Here is the call graph for this function:

◆ saveSettings()

ilObjTaggingSettingsGUI::saveSettings ( )

Definition at line 152 of file class.ilObjTaggingSettingsGUI.php.

152 : void
153 {
154 $ilCtrl = $this->ctrl;
156
157 $this->checkPermission("write");
158
159 $form = $this->initFormSettings();
160 if ($form->checkInput()) {
161 $tags_set = new ilSetting("tags");
162 $tags_set->set("enable", $form->getInput("enable_tagging"));
163 $tags_set->set("enable_all_users", $form->getInput("enable_all_users"));
164 $ilSetting->set("block_activated_pdtag", $form->getInput("enable_tagging"));
165 $this->tpl->setOnScreenMessage('success', $this->lng->txt("settings_saved"), true);
166 }
167 $ilCtrl->redirect($this, "view");
168 }
checkPermission(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
ilSetting $settings
global $ilSetting
Definition: privfeed.php:31

References ilObjectGUI\$ctrl, $ilSetting, ilObjectGUI\$settings, ilObjectGUI\checkPermission(), initFormSettings(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ searchUsersForTag()

ilObjTaggingSettingsGUI::searchUsersForTag ( )

Search users for tag.

Definition at line 359 of file class.ilObjTaggingSettingsGUI.php.

359 : void
360 {
361 $this->showUsers(true);
362 }

References showUsers().

+ Here is the call graph for this function:

◆ showUsers()

ilObjTaggingSettingsGUI::showUsers ( bool  $a_search = false)

Definition at line 320 of file class.ilObjTaggingSettingsGUI.php.

320 : void
321 {
322 $ilTabs = $this->tabs;
324 $ilToolbar = $this->toolbar;
326 $ilCtrl = $this->ctrl;
327
328 $this->checkPermission("read");
329
330 $this->addSubTabs();
331 $ilTabs->activateTab("tagging_edit_settings");
332 $ilTabs->activateSubTab("users");
333
335
336 // tag input
337 $ti = new ilTextInputGUI($lng->txt("tagging_tag"), "tag");
338 $ti->setSize(15);
339 $ti->setValue($tag);
340 $ilToolbar->addInputItem($ti, true);
341
342 $ilToolbar->addFormButton($lng->txt("tagging_search_users"), "searchUsersForTag");
343 $ilToolbar->setFormAction($ilCtrl->getFormAction($this, "searchUsersForTag"));
344
345 if ($a_search) {
346 $ilCtrl->setParameter($this, "tag", $tag);
347 $table = new ilUserForTagTableGUI(
348 $this,
349 "searchUsersForTag",
350 $tag
351 );
352 $tpl->setContent($table->getHTML());
353 }
354 }
ilToolbarGUI $toolbar
This class represents a text property in a property form.
Show all users for a tag.

References ilObjectGUI\$ctrl, ilObjectGUI\$lng, $requested_tag, $tabs, ilObjectGUI\$toolbar, ilObjectGUI\$tpl, addSubTabs(), ilObjectGUI\checkPermission(), ILIAS\UICore\GlobalTemplate\setContent(), and ilLanguage\txt().

Referenced by searchUsersForTag().

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

Field Documentation

◆ $rbacsystem

ilRbacSystem ilObjTaggingSettingsGUI::$rbacsystem
protected

Definition at line 30 of file class.ilObjTaggingSettingsGUI.php.

Referenced by getAdminTabs().

◆ $requested_tag

string ilObjTaggingSettingsGUI::$requested_tag
protected

Definition at line 32 of file class.ilObjTaggingSettingsGUI.php.

Referenced by showUsers().

◆ $tabs

ilTabsGUI ilObjTaggingSettingsGUI::$tabs
protected

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