ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class ilChatroomSmileyGUI Provides methods to show, add, edit and delete smilies consisting of icon and keywords. More...
Public Member Functions | ||||
executeDefault ($requestedMethod) | ||||
{
| ||||
view () | ||||
Switches GUI to visible mode and calls editSmiliesObject method which prepares and displays the table of existing smilies. More... | ||||
editSmiliesObject () | ||||
Shows existing smilies table Prepares existing smilies table and displays it. More... | ||||
initSmiliesForm () | ||||
Initializes smilies form and returns it. More... | ||||
showEditSmileyEntryFormObject () | ||||
Shows EditSmileyEntryForm Prepares EditSmileyEntryForm and displays it. More... | ||||
initSmiliesEditForm ($form_data) | ||||
Initializes SmiliesEditForm and returns it. More... | ||||
deleteSmileyObject () | ||||
Deletes a smiley by $_REQUEST["chatroom_smiley_id"] @global ilRbacSystem $rbacsystem @global ilCtrl $ilCtrl. More... | ||||
updateSmiliesObject () | ||||
Updates a smiley and/or its keywords Updates a smiley icon and/or its keywords by $_REQUEST["chatroom_smiley_id"] and gets keywords from $_REQUEST["chatroom_smiley_keywords"]. More... | ||||
uploadSmileyObject () | ||||
Uploads and stores a new smiley with keywords from $_REQUEST["chatroom_smiley_keywords"] @global ilRbacSystem $rbacsystem @global ilCtrl2 $ilCtrl. More... | ||||
![]() | ||||
__construct (ilChatroomObjectGUI $gui) | ||||
sendResponse ($response) | ||||
Sends a json encoded response and exits the php process. More... | ||||
hasPermission ($permission) | ||||
Checks for access with ilRbacSystem. More... | ||||
execute ($method) | ||||
Executes given $method if existing, otherwise executes executeDefault() method. More... | ||||
executeDefault ($requestedMethod) | ||||
redirectIfNoPermission ($permission) | ||||
Checks for requested permissions and redirects if the permission check failed. More... | ||||
isSuccessful ($response) | ||||
Checks for success param in an json decoded response. More... | ||||
Static Public Member Functions | |
static | _checkSetup () |
static | _getSmileyDir () |
Static Private Member Functions | |
static | _setupFolder () |
setup directory More... | |
static | _insertDefaultValues () |
Additional Inherited Members | |
![]() | |
getRoomByObjectId ($objectId) | |
exitIfNoRoomExists ($room) | |
Checks if a ilChatroom exists. More... | |
exitIfNoRoomPermission ($room, $subRoom, $chat_user) | |
Check if user can moderate a chatroom. More... | |
canModerate ($room, $subRoom, $user_id) | |
Checks if the user has permission to moderate a ilChatroom. More... | |
isMainRoom ($subRoomId) | |
![]() | |
$gui | |
$ilUser | |
$ilCtrl | |
$ilLng | |
$rbacsystem | |
Class ilChatroomSmileyGUI Provides methods to show, add, edit and delete smilies consisting of icon and keywords.
Definition at line 12 of file class.ilChatroomAdminSmileyGUI.php.
|
static |
Definition at line 52 of file class.ilChatroomAdminSmileyGUI.php.
References $lng, $path, _getSmileyDir(), _insertDefaultValues(), ilUtil\makeDirParents(), ilUtil\sendFailure(), ilUtil\sendInfo(), and ilUtil\sendSuccess().
Referenced by view().
|
static |
Definition at line 110 of file class.ilChatroomAdminSmileyGUI.php.
References ilUtil\getWebspaceDir().
Referenced by _checkSetup(), and _setupFolder().
|
staticprivate |
Definition at line 115 of file class.ilChatroomAdminSmileyGUI.php.
Referenced by _checkSetup().
|
staticprivate |
setup directory
Definition at line 17 of file class.ilChatroomAdminSmileyGUI.php.
References $path, and _getSmileyDir().
ilChatroomAdminSmileyGUI::deleteSmileyObject | ( | ) |
Deletes a smiley by $_REQUEST["chatroom_smiley_id"] @global ilRbacSystem $rbacsystem @global ilCtrl $ilCtrl.
Definition at line 382 of file class.ilChatroomAdminSmileyGUI.php.
References ilChatroomGUIHandler\$ilCtrl, $lng, and ilChatroomGUIHandler\$rbacsystem.
ilChatroomAdminSmileyGUI::editSmiliesObject | ( | ) |
Shows existing smilies table Prepares existing smilies table and displays it.
@global ilRbacSystem $rbacsystem @global ilLanguage $lng @global ilTemplate $tpl
Definition at line 147 of file class.ilChatroomAdminSmileyGUI.php.
References $lng, ilChatroomGUIHandler\$rbacsystem, $tpl, ilChatroomSmilies\_checkSetup(), ilChatroomSmiliesGUI\_getExistingSmiliesTable(), and initSmiliesForm().
Referenced by view().
ilChatroomAdminSmileyGUI::executeDefault | ( | $requestedMethod | ) |
{
string | $requestedMethod |
Reimplemented from ilChatroomGUIHandler.
Definition at line 30 of file class.ilChatroomAdminSmileyGUI.php.
References view().
ilChatroomAdminSmileyGUI::initSmiliesEditForm | ( | $form_data | ) |
Initializes SmiliesEditForm and returns it.
@global ilCtrl2 $ilCtrl @global ilLanguage $lng
Definition at line 278 of file class.ilChatroomAdminSmileyGUI.php.
References ilChatroomGUIHandler\$ilCtrl, and $lng.
Referenced by showEditSmileyEntryFormObject().
ilChatroomAdminSmileyGUI::initSmiliesForm | ( | ) |
Initializes smilies form and returns it.
@global ilCtrl2 $ilCtrl @global ilLanguage $lng
Definition at line 190 of file class.ilChatroomAdminSmileyGUI.php.
References ilChatroomGUIHandler\$ilCtrl, and $lng.
Referenced by editSmiliesObject(), and uploadSmileyObject().
ilChatroomAdminSmileyGUI::showEditSmileyEntryFormObject | ( | ) |
Shows EditSmileyEntryForm Prepares EditSmileyEntryForm and displays it.
@global ilRbacSystem $rbacsystem @global ilTemplate $tpl
Definition at line 238 of file class.ilChatroomAdminSmileyGUI.php.
References $lng, ilChatroomGUIHandler\$rbacsystem, $tpl, and initSmiliesEditForm().
ilChatroomAdminSmileyGUI::updateSmiliesObject | ( | ) |
Updates a smiley and/or its keywords Updates a smiley icon and/or its keywords by $_REQUEST["chatroom_smiley_id"] and gets keywords from $_REQUEST["chatroom_smiley_keywords"].
@global ilRbacSystem $rbacsystem @global ilCtrl2 $ilCtrl
Definition at line 407 of file class.ilChatroomAdminSmileyGUI.php.
References $data, ilChatroomGUIHandler\$ilCtrl, $lng, ilChatroomGUIHandler\$rbacsystem, $tpl, ilChatroomSmilies\_getSmiliesBasePath(), ilChatroomSmilies\_prepareKeywords(), ilUtil\moveUploadedFile(), ilUtil\sendFailure(), ilUtil\stripSlashes(), and view().
ilChatroomAdminSmileyGUI::uploadSmileyObject | ( | ) |
Uploads and stores a new smiley with keywords from $_REQUEST["chatroom_smiley_keywords"] @global ilRbacSystem $rbacsystem @global ilCtrl2 $ilCtrl.
Definition at line 549 of file class.ilChatroomAdminSmileyGUI.php.
References ilChatroomGUIHandler\$ilCtrl, $lng, ilChatroomGUIHandler\$rbacsystem, $tpl, ilChatroomSmilies\_getSmiliesBasePath(), ilChatroomSmilies\_prepareKeywords(), initSmiliesForm(), ilUtil\moveUploadedFile(), ilUtil\stripSlashes(), and view().
ilChatroomAdminSmileyGUI::view | ( | ) |
Switches GUI to visible mode and calls editSmiliesObject method which prepares and displays the table of existing smilies.
Definition at line 39 of file class.ilChatroomAdminSmileyGUI.php.
References _checkSetup(), ilChatroom\checkUserPermissions(), and editSmiliesObject().
Referenced by executeDefault(), updateSmiliesObject(), and uploadSmileyObject().