ILIAS
Release_5_0_x_branch Revision 61816
|
Class ilChatroomSmileyTask Provides methods to show, add, edit and delete smilies consisting of icon and keywords. More...
Public Member Functions | |
__construct (ilChatroomObjectGUI $gui) | |
Constructor Sets $this->gui. | |
executeDefault ($method) | |
Default execute command. | |
view () | |
Switches GUI to visible mode and calls editSmiliesObject method which prepares and displays the table of existing smilies. | |
showEditSmileyEntryFormObject () | |
Shows EditSmileyEntryForm Prepares EditSmileyEntryForm and displays it. | |
deleteSmileyObject () | |
Deletes a smiley by $_REQUEST["chatroom_smiley_id"] ilRbacSystem $rbacsystem ilCtrl2 $ilCtrl. | |
editSmiliesObject () | |
Shows existing smilies table Prepares existing smilies table and displays it. | |
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"]. | |
initSmiliesForm () | |
Initializes smilies form and returns it. | |
initSmiliesEditForm ($form_data) | |
Initializes SmiliesEditForm and returns it. | |
uploadSmileyObject () | |
Uploads and stores a new smiley with keywords from $_REQUEST["chatroom_smiley_keywords"] ilRbacSystem $rbacsystem ilCtrl2 $ilCtrl. |
Static Public Member Functions | |
static | _getSmileyDir () |
static | _checkSetup () |
Static Private Member Functions | |
static | _insertDefaultValues () |
static | _setupFolder () |
setup directory |
Private Attributes | |
$gui |
Class ilChatroomSmileyTask Provides methods to show, add, edit and delete smilies consisting of icon and keywords.
Definition at line 12 of file class.ilChatroomSmileyTask.php.
ilChatroomSmileyTask::__construct | ( | ilChatroomObjectGUI | $gui | ) |
Constructor Sets $this->gui.
ilChatroomObjectGUI | $gui |
Reimplemented from ilChatroomTaskHandler.
Definition at line 22 of file class.ilChatroomSmileyTask.php.
References $gui.
|
static |
Definition at line 567 of file class.ilChatroomSmileyTask.php.
References $lng, $path, _getSmileyDir(), _insertDefaultValues(), ilUtil\makeDirParents(), ilUtil\sendFailure(), ilUtil\sendInfo(), and ilUtil\sendSuccess().
Referenced by editSmiliesObject(), and view().
|
static |
Definition at line 562 of file class.ilChatroomSmileyTask.php.
References ilUtil\getWebspaceDir().
Referenced by _checkSetup(), and _setupFolder().
|
staticprivate |
Definition at line 509 of file class.ilChatroomSmileyTask.php.
Referenced by _checkSetup().
|
staticprivate |
setup directory
Definition at line 549 of file class.ilChatroomSmileyTask.php.
References $path, and _getSmileyDir().
ilChatroomSmileyTask::deleteSmileyObject | ( | ) |
Deletes a smiley by $_REQUEST["chatroom_smiley_id"] ilRbacSystem $rbacsystem ilCtrl2 $ilCtrl.
Definition at line 139 of file class.ilChatroomSmileyTask.php.
References $_REQUEST, $ilCtrl, $lng, and ilChatroomSmilies\_deleteSmiley().
ilChatroomSmileyTask::editSmiliesObject | ( | ) |
Shows existing smilies table Prepares existing smilies table and displays it.
ilRbacSystem $rbacsystem ilLanguage $lng ilTemplate $tpl
Definition at line 164 of file class.ilChatroomSmileyTask.php.
References $lng, $tpl, _checkSetup(), ilChatroomSmiliesGUI\_getExistingSmiliesTable(), and initSmiliesForm().
Referenced by view().
ilChatroomSmileyTask::executeDefault | ( | $method | ) |
Default execute command.
Calls view method.
string | $method |
Reimplemented from ilChatroomTaskHandler.
Definition at line 32 of file class.ilChatroomSmileyTask.php.
References view().
ilChatroomSmileyTask::initSmiliesEditForm | ( | $form_data | ) |
Initializes SmiliesEditForm and returns it.
ilCtrl2 $ilCtrl ilLanguage $lng
Definition at line 397 of file class.ilChatroomSmileyTask.php.
References $_REQUEST, $ilCtrl, $lng, ilFormPropertyGUI\setRequired(), ilChatroomSmiliesCurrentSmileyFormElement\setValue(), and ilTextAreaInputGUI\setValue().
Referenced by showEditSmileyEntryFormObject().
ilChatroomSmileyTask::initSmiliesForm | ( | ) |
Initializes smilies form and returns it.
ilCtrl2 $ilCtrl ilLanguage $lng
Definition at line 267 of file class.ilChatroomSmileyTask.php.
References $_REQUEST, $ilCtrl, $lng, and ilFormPropertyGUI\setRequired().
Referenced by editSmiliesObject(), and uploadSmileyObject().
ilChatroomSmileyTask::showEditSmileyEntryFormObject | ( | ) |
Shows EditSmileyEntryForm Prepares EditSmileyEntryForm and displays it.
ilRbacSystem $rbacsystem ilTemplate $tpl
Definition at line 63 of file class.ilChatroomSmileyTask.php.
References $_REQUEST, $lng, $tpl, ilChatroomSmilies\_getSmiley(), and initSmiliesEditForm().
ilChatroomSmileyTask::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"].
ilRbacSystem $rbacsystem ilCtrl2 $ilCtrl
Definition at line 208 of file class.ilChatroomSmileyTask.php.
References $_REQUEST, $ilCtrl, $lng, $tpl, ilChatroomSmilies\_getSmiliesBasePath(), ilChatroomSmilies\_prepareKeywords(), ilChatroomSmilies\_updateSmiley(), ilUtil\sendFailure(), ilUtil\stripSlashes(), and view().
ilChatroomSmileyTask::uploadSmileyObject | ( | ) |
Uploads and stores a new smiley with keywords from $_REQUEST["chatroom_smiley_keywords"] ilRbacSystem $rbacsystem ilCtrl2 $ilCtrl.
Definition at line 464 of file class.ilChatroomSmileyTask.php.
References $_REQUEST, $ilCtrl, $lng, $tpl, ilChatroomSmilies\_getSmiliesBasePath(), ilChatroomSmilies\_prepareKeywords(), ilChatroomSmilies\_storeSmiley(), initSmiliesForm(), ilUtil\stripSlashes(), and view().
ilChatroomSmileyTask::view | ( | ) |
Switches GUI to visible mode and calls editSmiliesObject method which prepares and displays the table of existing smilies.
Definition at line 44 of file class.ilChatroomSmileyTask.php.
References _checkSetup(), ilChatroom\checkUserPermissions(), and editSmiliesObject().
Referenced by executeDefault(), updateSmiliesObject(), and uploadSmileyObject().
|
private |
Definition at line 15 of file class.ilChatroomSmileyTask.php.
Referenced by __construct().