ILIAS
trunk Revision v11.0_alpha-1723-g8e69f309bab
|
Class ilTaggingGUI. More...
Public Member Functions | |
__construct () | |
Constructor. More... | |
executeCommand () | |
Execute command. More... | |
setObject (int $a_obj_id, string $a_obj_type, int $a_sub_obj_id=0, string $a_sub_obj_type="") | |
Set Object. More... | |
setUserId (int $a_userid) | |
getUserId () | |
setSaveCmd (string $a_savecmd) | |
getSaveCmd () | |
setInputFieldName (string $a_inputfieldname) | |
getInputFieldName () | |
getTaggingInputHTML () | |
saveInput () | |
isForbidden (string $a_tag) | |
getAllUserTagsForObjectHTML () | |
getHTML () | |
Get HTML. More... | |
saveJS () | |
Save JS. More... | |
Static Public Member Functions | |
static | initJavascript (string $a_ajax_url, ?ilGlobalTemplateInterface $a_main_tpl=null) |
static | getModalTemplate () |
static | getListTagsJSCall (string $a_hash, ?string $a_update_code=null) |
Protected Member Functions | |
getTagsFromInput (string $input) | |
Protected Attributes | |
ilCtrl | $ctrl |
ilObjUser | $user |
ilLanguage | $lng |
ILIAS DI UIServices | $ui |
int | $obj_id = 0 |
string | $obj_type = "" |
int | $sub_obj_id = 0 |
string | $sub_obj_type |
array | $forbidden = [] |
int | $userid = 0 |
string | $savecmd = "" |
string | $inputfieldname = "" |
RequestInterface | $request |
string | $mess = "" |
string | $requested_mess = "" |
Private Attributes | |
ilGlobalTemplateInterface | $main_tpl |
Class ilTaggingGUI.
User interface class for tagging engine.
Definition at line 28 of file class.ilTaggingGUI.php.
ilTaggingGUI::__construct | ( | ) |
Constructor.
Definition at line 50 of file class.ilTaggingGUI.php.
References $DIC, $params, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ILIAS\Repository\ui(), and ILIAS\Repository\user().
ilTaggingGUI::executeCommand | ( | ) |
Execute command.
Definition at line 69 of file class.ilTaggingGUI.php.
References $ctrl, and ilCtrl\getNextClass().
ilTaggingGUI::getAllUserTagsForObjectHTML | ( | ) |
Definition at line 225 of file class.ilTaggingGUI.php.
References ilTagging\getRelevanceClass(), ilTagging\getTagsForObject(), and isForbidden().
ilTaggingGUI::getHTML | ( | ) |
Get HTML.
Definition at line 319 of file class.ilTaggingGUI.php.
References $ctrl, $lng, $mess, $obj_id, $ui, ilObject\_getIcon(), ilTagging\_getListTagsForObjects(), ilObject\_lookupTitle(), exit, ilUtil\getSystemMessageHTML(), ilTagging\getTagsForUserAndObject(), getUserId(), ilLanguage\loadLanguageModule(), null, ilLegacyFormElementsUtil\prepareFormOutput(), and ilLanguage\txt().
Referenced by saveJS().
ilTaggingGUI::getInputFieldName | ( | ) |
Definition at line 142 of file class.ilTaggingGUI.php.
References $inputfieldname.
Referenced by getTaggingInputHTML(), and saveInput().
|
static |
Definition at line 304 of file class.ilTaggingGUI.php.
References null.
Referenced by ilObjectListGUI\determineProperties(), ilObjectListGUI\getHeaderAction(), and ilObjectListGUI\insertCommonSocialCommands().
|
static |
Definition at line 290 of file class.ilTaggingGUI.php.
References $DIC.
ilTaggingGUI::getSaveCmd | ( | ) |
ilTaggingGUI::getTaggingInputHTML | ( | ) |
Definition at line 147 of file class.ilTaggingGUI.php.
References $lng, getInputFieldName(), ilTagging\getTagsForUserAndObject(), getUserId(), ilLegacyFormElementsUtil\prepareFormOutput(), and ilLanguage\txt().
|
protected |
Definition at line 172 of file class.ilTaggingGUI.php.
References ilUtil\stripSlashes().
Referenced by saveInput(), and saveJS().
ilTaggingGUI::getUserId | ( | ) |
Definition at line 122 of file class.ilTaggingGUI.php.
References $userid.
Referenced by getHTML(), getTaggingInputHTML(), saveInput(), and saveJS().
|
static |
Definition at line 260 of file class.ilTaggingGUI.php.
References $DIC, ilYuiUtil\initConnection(), iljQueryUtil\initjQuery(), ilLanguage\loadLanguageModule(), null, and ilLanguage\toJS().
Referenced by ilObjectListGUI\prepareJsLinks().
ilTaggingGUI::isForbidden | ( | string | $a_tag | ) |
Definition at line 211 of file class.ilTaggingGUI.php.
References Vendor\Package\$f.
Referenced by getAllUserTagsForObjectHTML(), saveInput(), and saveJS().
ilTaggingGUI::saveInput | ( | ) |
Definition at line 182 of file class.ilTaggingGUI.php.
References $lng, $request, getInputFieldName(), getTagsFromInput(), getUserId(), isForbidden(), ilLanguage\txt(), and ilTagging\writeTagsForUserAndObject().
ilTaggingGUI::saveJS | ( | ) |
Save JS.
Definition at line 401 of file class.ilTaggingGUI.php.
References $request, getHTML(), getTagsFromInput(), getUserId(), isForbidden(), and ilTagging\writeTagsForUserAndObject().
ilTaggingGUI::setInputFieldName | ( | string | $a_inputfieldname | ) |
Definition at line 137 of file class.ilTaggingGUI.php.
Referenced by setObject().
ilTaggingGUI::setObject | ( | int | $a_obj_id, |
string | $a_obj_type, | ||
int | $a_sub_obj_id = 0 , |
||
string | $a_sub_obj_type = "" |
||
) |
Set Object.
int | $a_obj_id | Object ID |
string | $a_obj_type | Object Type |
int | $a_sub_obj_id | Sub-object ID |
string | $a_sub_obj_type | Sub-object Type |
Definition at line 91 of file class.ilTaggingGUI.php.
References $user, setInputFieldName(), setSaveCmd(), and setUserId().
ilTaggingGUI::setSaveCmd | ( | string | $a_savecmd | ) |
Definition at line 127 of file class.ilTaggingGUI.php.
Referenced by setObject().
ilTaggingGUI::setUserId | ( | int | $a_userid | ) |
Definition at line 117 of file class.ilTaggingGUI.php.
Referenced by setObject().
|
protected |
Definition at line 30 of file class.ilTaggingGUI.php.
Referenced by executeCommand(), and getHTML().
|
protected |
Definition at line 38 of file class.ilTaggingGUI.php.
|
protected |
Definition at line 41 of file class.ilTaggingGUI.php.
Referenced by getInputFieldName().
|
protected |
Definition at line 32 of file class.ilTaggingGUI.php.
Referenced by getHTML(), getTaggingInputHTML(), and saveInput().
|
private |
Definition at line 45 of file class.ilTaggingGUI.php.
|
protected |
Definition at line 43 of file class.ilTaggingGUI.php.
Referenced by getHTML().
|
protected |
Definition at line 34 of file class.ilTaggingGUI.php.
Referenced by getHTML().
|
protected |
Definition at line 35 of file class.ilTaggingGUI.php.
|
protected |
Definition at line 42 of file class.ilTaggingGUI.php.
Referenced by saveInput(), and saveJS().
|
protected |
Definition at line 44 of file class.ilTaggingGUI.php.
|
protected |
Definition at line 40 of file class.ilTaggingGUI.php.
Referenced by getSaveCmd().
|
protected |
Definition at line 36 of file class.ilTaggingGUI.php.
|
protected |
Definition at line 37 of file class.ilTaggingGUI.php.
|
protected |
Definition at line 33 of file class.ilTaggingGUI.php.
Referenced by getHTML().
|
protected |
Definition at line 31 of file class.ilTaggingGUI.php.
Referenced by setObject().
|
protected |
Definition at line 39 of file class.ilTaggingGUI.php.
Referenced by getUserId().