ILIAS
Release_4_4_x_branch Revision 61816
|
Class ilChatroomSmileyTask. More...
Public Member Functions | |
__construct (ilChatroomObjectGUI $gui) | |
Constructor. | |
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. | |
showDeleteSmileyFormObject () | |
Shows DeleteSmileyForm. | |
deleteSmileyObject () | |
Deletes a smiley by $_REQUEST["chatroom_smiley_id"]. | |
editSmiliesObject () | |
Shows existing smilies table. | |
updateSmiliesObject () | |
Updates a smiley and/or its keywords. | |
initSmiliesForm () | |
Initializes smilies form and returns it. | |
deleteMultipleObject () | |
Shows confirmation view for deleting multiple smilies. | |
confirmedDeleteMultipleObject () | |
Deletes multiple smilies by $_REQUEST["sel_ids"]. | |
initSmiliesEditForm ($form_data) | |
Initializes SmiliesEditForm and returns it. | |
uploadSmileyObject () | |
Uploads and stores a new smiley with keywords from $_REQUEST["chatroom_smiley_keywords"]. |
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 16 of file class.ilChatroomSmileyTask.php.
ilChatroomSmileyTask::__construct | ( | ilChatroomObjectGUI | $gui | ) |
Constructor.
Sets $this->gui
ilChatroomObjectGUI | $gui |
Reimplemented from ilChatroomTaskHandler.
Definition at line 28 of file class.ilChatroomSmileyTask.php.
References $gui.
|
static |
Definition at line 611 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 606 of file class.ilChatroomSmileyTask.php.
References ilUtil\getWebspaceDir().
Referenced by _checkSetup(), and _setupFolder().
|
staticprivate |
Definition at line 553 of file class.ilChatroomSmileyTask.php.
References $row.
Referenced by _checkSetup().
|
staticprivate |
setup directory
Definition at line 593 of file class.ilChatroomSmileyTask.php.
References $path, and _getSmileyDir().
ilChatroomSmileyTask::confirmedDeleteMultipleObject | ( | ) |
Deletes multiple smilies by $_REQUEST["sel_ids"].
ilRbacSystem $rbacsystem ilCtrl2 $ilCtrl
Definition at line 405 of file class.ilChatroomSmileyTask.php.
References $_REQUEST, $ilCtrl, and ilChatroomSmilies\_deleteMultipleSmilies().
ilChatroomSmileyTask::deleteMultipleObject | ( | ) |
Shows confirmation view for deleting multiple smilies.
Prepares confirmation view for deleting multiple smilies and displays it.
ilRbacSystem $rbacsystem ilLanguage $lng ilCtrl2 $ilCtrl ilTemplate $tpl
Definition at line 345 of file class.ilChatroomSmileyTask.php.
References $_REQUEST, $ilCtrl, $lng, $tpl, ilChatroomSmilies\_getSmiliesById(), and ilUtil\sendInfo().
ilChatroomSmileyTask::deleteSmileyObject | ( | ) |
Deletes a smiley by $_REQUEST["chatroom_smiley_id"].
ilRbacSystem $rbacsystem ilCtrl2 $ilCtrl
Definition at line 163 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 190 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 39 of file class.ilChatroomSmileyTask.php.
References view().
ilChatroomSmileyTask::initSmiliesEditForm | ( | $form_data | ) |
Initializes SmiliesEditForm and returns it.
ilCtrl2 $ilCtrl ilLanguage $lng
Definition at line 439 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 294 of file class.ilChatroomSmileyTask.php.
References $_REQUEST, $ilCtrl, $lng, and ilFormPropertyGUI\setRequired().
Referenced by editSmiliesObject(), and uploadSmileyObject().
ilChatroomSmileyTask::showDeleteSmileyFormObject | ( | ) |
Shows DeleteSmileyForm.
Prepares DeleteSmileyForm and displays it.
ilRbacSystem $rbacsystem ilLanguage $lng ilCtrl2 $ilCtrl ilTemplate $tpl
Definition at line 116 of file class.ilChatroomSmileyTask.php.
References $_REQUEST, $ilCtrl, $lng, $tpl, and ilChatroomSmilies\_getSmiley().
ilChatroomSmileyTask::showEditSmileyEntryFormObject | ( | ) |
Shows EditSmileyEntryForm.
Prepares EditSmileyEntryForm and displays it.
ilRbacSystem $rbacsystem ilTemplate $tpl
Definition at line 72 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 234 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 507 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 51 of file class.ilChatroomSmileyTask.php.
References _checkSetup(), ilChatroom\checkUserPermissions(), and editSmiliesObject().
Referenced by executeDefault(), updateSmiliesObject(), and uploadSmileyObject().
|
private |
Definition at line 19 of file class.ilChatroomSmileyTask.php.
Referenced by __construct().