ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
Class ilTaggingGUI. More...
Public Member Functions | |
executeCommand () | |
Execute command. More... | |
setObject ($a_obj_id, $a_obj_type, $a_sub_obj_id=0, $a_sub_obj_type="") | |
Set Object. More... | |
setUserId ($a_userid) | |
Set User ID. More... | |
getUserId () | |
Get User ID. More... | |
setSaveCmd ($a_savecmd) | |
Set Save Command. More... | |
getSaveCmd () | |
Get Save Command. More... | |
setInputFieldName ($a_inputfieldname) | |
Set Input Field Name. More... | |
getInputFieldName () | |
Get Input Field Name. More... | |
getTaggingInputHTML () | |
Get Input HTML for Tagging of an object (and a user) More... | |
saveInput () | |
Save Input. More... | |
isForbidden ($a_tag) | |
Check whether a tag is forbiddens. More... | |
getAllUserTagsForObjectHTML () | |
Get Input HTML for Tagging of an object (and a user) More... | |
initJavascript ($a_ajax_url) | |
Init javascript. More... | |
getListTagsJSCall ($a_hash, $a_update_code=null) | |
Get tagging js call. More... | |
getHTML () | |
Get HTML. More... | |
saveJS () | |
Save JS. More... | |
Class ilTaggingGUI.
User interface class for tagging engine.
Definition at line 15 of file class.ilTaggingGUI.php.
ilTaggingGUI::executeCommand | ( | ) |
ilTaggingGUI::getAllUserTagsForObjectHTML | ( | ) |
Get Input HTML for Tagging of an object (and a user)
Definition at line 200 of file class.ilTaggingGUI.php.
References $ilCtrl, $lng, ilTagging\getRelevanceClass(), ilTagging\getTagsForObject(), and isForbidden().
ilTaggingGUI::getHTML | ( | ) |
Get HTML.
Definition at line 279 of file class.ilTaggingGUI.php.
References $_GET, $ilCtrl, $img, $lng, $tpl, ilObject\_getIcon(), ilTagging\_getListTagsForObjects(), ilObject\_lookupTitle(), exit, ilTagging\getTagsForUserAndObject(), getUserId(), ilUtil\img(), and ilUtil\prepareFormOutput().
Referenced by saveJS().
ilTaggingGUI::getInputFieldName | ( | ) |
Get Input Field Name.
Definition at line 128 of file class.ilTaggingGUI.php.
Referenced by getTaggingInputHTML(), and saveInput().
ilTaggingGUI::getListTagsJSCall | ( | $a_hash, | |
$a_update_code = null |
|||
) |
Get tagging js call.
string | $a_hash | |
string | $a_update_code |
Definition at line 257 of file class.ilTaggingGUI.php.
References $tpl.
Referenced by ilObjectListGUI\getHeaderAction(), ilObjectListGUI\insertCommonSocialCommands(), and ilObjectListGUI\insertProperties().
ilTaggingGUI::getSaveCmd | ( | ) |
ilTaggingGUI::getTaggingInputHTML | ( | ) |
Get Input HTML for Tagging of an object (and a user)
Definition at line 136 of file class.ilTaggingGUI.php.
References $ilCtrl, $lng, getInputFieldName(), ilTagging\getTagsForUserAndObject(), getUserId(), and ilUtil\prepareFormOutput().
ilTaggingGUI::getUserId | ( | ) |
Get User ID.
Definition at line 88 of file class.ilTaggingGUI.php.
Referenced by getHTML(), getTaggingInputHTML(), saveInput(), and saveJS().
ilTaggingGUI::initJavascript | ( | $a_ajax_url | ) |
Init javascript.
Definition at line 237 of file class.ilTaggingGUI.php.
References $tpl, iljQueryUtil\initjQuery(), and ilYuiUtil\initPanel().
Referenced by ilObjectListGUI\prepareJsLinks().
ilTaggingGUI::isForbidden | ( | $a_tag | ) |
Check whether a tag is forbiddens.
Definition at line 183 of file class.ilTaggingGUI.php.
Referenced by getAllUserTagsForObjectHTML(), saveInput(), and saveJS().
ilTaggingGUI::saveInput | ( | ) |
Save Input.
Definition at line 155 of file class.ilTaggingGUI.php.
References $_POST, $lng, getInputFieldName(), getUserId(), isForbidden(), ilUtil\sendSuccess(), ilUtil\stripSlashes(), and ilTagging\writeTagsForUserAndObject().
ilTaggingGUI::saveJS | ( | ) |
Save JS.
Definition at line 348 of file class.ilTaggingGUI.php.
References $_POST, getHTML(), getUserId(), isForbidden(), ilUtil\stripSlashes(), and ilTagging\writeTagsForUserAndObject().
ilTaggingGUI::setInputFieldName | ( | $a_inputfieldname | ) |
Set Input Field Name.
string | $a_inputfieldname | Input Field Name |
Definition at line 118 of file class.ilTaggingGUI.php.
Referenced by setObject().
ilTaggingGUI::setObject | ( | $a_obj_id, | |
$a_obj_type, | |||
$a_sub_obj_id = 0 , |
|||
$a_sub_obj_type = "" |
|||
) |
Set Object.
int | $a_obj_id | Object ID |
string | $a_obj_type | Object Type |
int | $a_sub_obj_id | Subobject ID |
string | $a_sub_obj_type | Subobject Type |
Definition at line 47 of file class.ilTaggingGUI.php.
References $ilUser, setInputFieldName(), setSaveCmd(), and setUserId().
ilTaggingGUI::setSaveCmd | ( | $a_savecmd | ) |
Set Save Command.
string | $a_savecmd | Save Command |
Definition at line 98 of file class.ilTaggingGUI.php.
Referenced by setObject().
ilTaggingGUI::setUserId | ( | $a_userid | ) |
Set User ID.
int | $a_userid | User ID |
Definition at line 78 of file class.ilTaggingGUI.php.
Referenced by setObject().