|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilChatroomSmileyGUI Provides methods to show, add, edit and delete smilies consisting of icon and keywords. More...
Inheritance diagram for ilChatroomAdminSmileyGUI:
Collaboration diagram for ilChatroomAdminSmileyGUI: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... | ||||
Public Member Functions inherited from ilChatroomGUIHandler | ||||
| __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 ($withBaseDir=true) |
Protected Member Functions | |
| getSmileyFormDataById ($smileyId) | |
Protected Member Functions inherited from ilChatroomGUIHandler | |
| 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) | |
Protected Attributes | |
| $form_gui | |
Protected Attributes inherited from ilChatroomGUIHandler | |
| $gui | |
| $ilUser | |
| $ilCtrl | |
| $ilLng | |
| $webDirectory | |
| $upload | |
Static Private Member Functions | |
| static | _insertDefaultValues () |
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 44 of file class.ilChatroomAdminSmileyGUI.php.
References $lng, $path, _getSmileyDir(), _insertDefaultValues(), ilUtil\makeDirParents(), ilUtil\sendFailure(), ilUtil\sendInfo(), and ilUtil\sendSuccess().
Referenced by view().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| bool | $withBaseDir |
Definition at line 95 of file class.ilChatroomAdminSmileyGUI.php.
References $path, and ilUtil\getWebspaceDir().
Referenced by _checkSetup().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 106 of file class.ilChatroomAdminSmileyGUI.php.
Referenced by _checkSetup().
Here is the caller graph for this function:| ilChatroomAdminSmileyGUI::deleteSmileyObject | ( | ) |
Deletes a smiley by $_REQUEST["chatroom_smiley_id"] @global ilRbacSystem $rbacsystem @global ilCtrl $ilCtrl.
Definition at line 394 of file class.ilChatroomAdminSmileyGUI.php.
References ilChatroomGUIHandler\$ilCtrl, and $lng.
| 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 137 of file class.ilChatroomAdminSmileyGUI.php.
References $form, $form_gui, $lng, $table, $tpl, ilChatroomSmilies\_checkSetup(), ilChatroomSmiliesGUI\_getExistingSmiliesTable(), and initSmiliesForm().
Referenced by view().
Here is the call graph for this function:
Here is the caller graph for this function:| ilChatroomAdminSmileyGUI::executeDefault | ( | $requestedMethod | ) |
{
| string | $requestedMethod |
Reimplemented from ilChatroomGUIHandler.
Definition at line 22 of file class.ilChatroomAdminSmileyGUI.php.
References view().
Here is the call graph for this function:
|
protected |
| $smileyId |
Exception
Definition at line 267 of file class.ilChatroomAdminSmileyGUI.php.
Referenced by showEditSmileyEntryFormObject().
Here is the caller graph for this function:| ilChatroomAdminSmileyGUI::initSmiliesEditForm | ( | $form_data | ) |
Initializes SmiliesEditForm and returns it.
@global ilCtrl2 $ilCtrl @global ilLanguage $lng
Definition at line 287 of file class.ilChatroomAdminSmileyGUI.php.
References $form_gui, ilChatroomGUIHandler\$ilCtrl, and $lng.
Referenced by showEditSmileyEntryFormObject().
Here is the caller graph for this function:| ilChatroomAdminSmileyGUI::initSmiliesForm | ( | ) |
Initializes smilies form and returns it.
@global ilCtrl2 $ilCtrl @global ilLanguage $lng
Definition at line 180 of file class.ilChatroomAdminSmileyGUI.php.
References $form_gui, ilChatroomGUIHandler\$ilCtrl, and $lng.
Referenced by editSmiliesObject().
Here is the caller graph for this function:| ilChatroomAdminSmileyGUI::showEditSmileyEntryFormObject | ( | ) |
Shows EditSmileyEntryForm Prepares EditSmileyEntryForm and displays it.
@global ilRbacSystem $rbacsystem @global ilTemplate $tpl
Definition at line 231 of file class.ilChatroomAdminSmileyGUI.php.
References $form, $form_gui, $lng, $tpl, getSmileyFormDataById(), and initSmiliesEditForm().
Here is the call graph for this function:| ilChatroomAdminSmileyGUI::view | ( | ) |
Switches GUI to visible mode and calls editSmiliesObject method which prepares and displays the table of existing smilies.
Definition at line 31 of file class.ilChatroomAdminSmileyGUI.php.
References _checkSetup(), ilChatroom\checkUserPermissions(), and editSmiliesObject().
Referenced by executeDefault().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 17 of file class.ilChatroomAdminSmileyGUI.php.
Referenced by editSmiliesObject(), initSmiliesEditForm(), initSmiliesForm(), and showEditSmileyEntryFormObject().