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...
Public Member Functions | |
executeDefault ($requestedMethod) | |
{} More... | |
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"] ilRbacSystem $rbacsystem 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, array, ilUtil\makeDirParents(), ilUtil\sendFailure(), ilUtil\sendInfo(), and ilUtil\sendSuccess().
|
static |
bool | $withBaseDir |
Definition at line 95 of file class.ilChatroomAdminSmileyGUI.php.
References $path, and ilUtil\getWebspaceDir().
|
staticprivate |
ilChatroomAdminSmileyGUI::deleteSmileyObject | ( | ) |
Deletes a smiley by $_REQUEST["chatroom_smiley_id"] ilRbacSystem $rbacsystem ilCtrl $ilCtrl.
Definition at line 394 of file class.ilChatroomAdminSmileyGUI.php.
References $_POST, $data, ilChatroomGUIHandler\$ilCtrl, $lng, $result, $s, $tpl, ilChatroomSmilies\_deleteMultipleSmilies(), ilChatroomSmilies\_prepareKeywords(), array, getSmileyFormDataById(), ilChatroomSmilies\getSmiliesBasePath(), ilUtil\img(), initSmiliesEditForm(), initSmiliesForm(), ILIAS\FileUpload\DTO\ProcessingStatus\OK, ilUtil\sendFailure(), ilUtil\sendInfo(), ilUtil\sendSuccess(), showEditSmileyEntryFormObject(), ilUtil\stripSlashes(), time, and view().
ilChatroomAdminSmileyGUI::editSmiliesObject | ( | ) |
Shows existing smilies table Prepares existing smilies table and displays it.
ilRbacSystem $rbacsystem ilLanguage $lng 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().
ilChatroomAdminSmileyGUI::executeDefault | ( | $requestedMethod | ) |
{}
Definition at line 22 of file class.ilChatroomAdminSmileyGUI.php.
References view().
|
protected |
$smileyId |
Definition at line 267 of file class.ilChatroomAdminSmileyGUI.php.
References array.
Referenced by deleteSmileyObject(), and showEditSmileyEntryFormObject().
ilChatroomAdminSmileyGUI::initSmiliesEditForm | ( | $form_data | ) |
Initializes SmiliesEditForm and returns it.
ilCtrl2 $ilCtrl ilLanguage $lng
Definition at line 287 of file class.ilChatroomAdminSmileyGUI.php.
References $form_gui, ilChatroomGUIHandler\$ilCtrl, $lng, $tpl, array, ilUtil\img(), ilFileInputGUI\setSuffixes(), ilChatroomSmiliesCurrentSmileyFormElement\setValue(), and ilTextAreaInputGUI\setValue().
Referenced by deleteSmileyObject(), and showEditSmileyEntryFormObject().
ilChatroomAdminSmileyGUI::initSmiliesForm | ( | ) |
Initializes smilies form and returns it.
ilCtrl2 $ilCtrl ilLanguage $lng
Definition at line 180 of file class.ilChatroomAdminSmileyGUI.php.
References $form_gui, ilChatroomGUIHandler\$ilCtrl, $lng, array, ilFormPropertyGUI\setRequired(), and ilFileInputGUI\setSuffixes().
Referenced by deleteSmileyObject(), and editSmiliesObject().
ilChatroomAdminSmileyGUI::showEditSmileyEntryFormObject | ( | ) |
Shows EditSmileyEntryForm Prepares EditSmileyEntryForm and displays it.
ilRbacSystem $rbacsystem ilTemplate $tpl
Definition at line 231 of file class.ilChatroomAdminSmileyGUI.php.
References $form, $form_gui, $lng, $tpl, getSmileyFormDataById(), and initSmiliesEditForm().
Referenced by deleteSmileyObject().
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 ilChatroom\checkUserPermissions(), and editSmiliesObject().
Referenced by deleteSmileyObject(), and executeDefault().
|
protected |
Definition at line 17 of file class.ilChatroomAdminSmileyGUI.php.
Referenced by editSmiliesObject(), initSmiliesEditForm(), initSmiliesForm(), and showEditSmileyEntryFormObject().