| ILIAS
    Release_4_3_x_branch Revision 61807
    | 
Class ilChatroomSmileyTask. More...
 Inheritance diagram for ilChatroomSmileyTask:
 Inheritance diagram for ilChatroomSmileyTask: Collaboration diagram for ilChatroomSmileyTask:
 Collaboration diagram for ilChatroomSmileyTask:| Public Member Functions | |
| __construct (ilDBayObjectGUI $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"]. | |
|  Public Member Functions inherited from ilDBayTaskHandler | |
| execute ($method) | |
| Executes given $method if existing, otherwise executes executeDefault() method. | |
| 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 | ( | ilDBayObjectGUI | $gui | ) | 
Constructor.
Sets $this->gui
| ilDBayObjectGUI | $gui | 
Reimplemented from ilDBayTaskHandler.
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().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Definition at line 606 of file class.ilChatroomSmileyTask.php.
References ilUtil\getWebspaceDir().
Referenced by _checkSetup(), and _setupFolder().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprivate | 
Definition at line 553 of file class.ilChatroomSmileyTask.php.
References $row.
Referenced by _checkSetup().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprivate | 
setup directory
Definition at line 593 of file class.ilChatroomSmileyTask.php.
References $path, and _getSmileyDir().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilChatroomSmileyTask::executeDefault | ( | $method | ) | 
Default execute command.
Calls view method.
| string | $method | 
Reimplemented from ilDBayTaskHandler.
Definition at line 39 of file class.ilChatroomSmileyTask.php.
References view().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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, $data, $ilCtrl, $lng, $tpl, ilChatroomSmilies\_getSmiliesBasePath(), ilChatroomSmilies\_prepareKeywords(), ilChatroomSmilies\_updateSmiley(), ilUtil\sendFailure(), ilUtil\stripSlashes(), and view().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Definition at line 19 of file class.ilChatroomSmileyTask.php.
Referenced by __construct().