|
ILIAS
release_4-3 Revision
|
Class ilChatroomSmilies. More...
Collaboration diagram for ilChatroomSmilies:Static Public Member Functions | |
| static | _getSmileyDir () |
| Path to smilies. | |
| static | _initial () |
| Performs initial setup (db, dirs, default data) | |
| static | _checkSetup () |
| Checks if smiley folder is available; if not it will try to create folder and performs actions for an initial smiley set. | |
| static | _getSmilies () |
| Fetches smilies from database. | |
| static | _getSmiley ($a_id) |
| Looks up and returns smiley with id, throws exception if id is not found. | |
| static | _getSmiliesById ($ids=array()) |
| Fetches smilies from database by id. | |
| static | _deleteMultipleSmilies ($ids=array()) |
| Deletes multiple smilies by given id array. | |
| static | _updateSmiley ($data) |
| Updates smiley in DB by keyword and id from given array ($data["smiley_keywords"], $data["smiley_id"]) | |
| static | _getSmiliesBasePath () |
| Returns smilies basepath. | |
| static | _deleteSmiley ($a_id) |
| Deletes smiliey by given id from database. | |
| static | _storeSmiley ($keywords, $path) |
| Stores smiley with given keywords and path in database. | |
| static | _prepareKeywords ($words) |
| Trims given keywords and returns them in one array. | |
Static Private Member Functions | |
| static | _setupDatabase () |
| Creates table and sequence. | |
| static | _insertDefaultValues () |
| Inserts default smiley set. | |
| static | _setupFolder () |
| Setup directory. | |
|
static |
Checks if smiley folder is available; if not it will try to create folder and performs actions for an initial smiley set.
ilLanguage $lng
Definition at line 131 of file class.ilChatroomSmilies.php.
References $lng, $path, _getSmileyDir(), _insertDefaultValues(), ilUtil\makeDirParents(), ilUtil\sendFailure(), ilUtil\sendInfo(), and ilUtil\sendSuccess().
Here is the call graph for this function:
|
static |
Deletes multiple smilies by given id array.
ilDBMySQL $ilDB
| array | $ids |
Definition at line 290 of file class.ilChatroomSmilies.php.
References _getSmiliesById().
Referenced by ilChatroomSmileyTask\confirmedDeleteMultipleObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Deletes smiliey by given id from database.
ilDBMySQL $ilDB
| integer | $a_id |
Definition at line 361 of file class.ilChatroomSmilies.php.
References $path, _getSmiley(), and ilUtil\getWebspaceDir().
Referenced by ilChatroomSmileyTask\deleteSmileyObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Looks up and returns smiley with id, throws exception if id is not found.
ilDBMySQL $ilDB
| integer | $a_id |
Definition at line 219 of file class.ilChatroomSmilies.php.
References $res, $result, and ilUtil\getWebspaceDir().
Referenced by _deleteSmiley(), _updateSmiley(), ilChatroomSmileyTask\showDeleteSmileyFormObject(), and ilChatroomSmileyTask\showEditSmileyEntryFormObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Path to smilies.
Definition at line 108 of file class.ilChatroomSmilies.php.
References ilUtil\getWebspaceDir().
Referenced by _checkSetup().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Fetches smilies from database.
Definition at line 188 of file class.ilChatroomSmilies.php.
References $res, $result, and ilUtil\getWebspaceDir().
Referenced by ilChatroomSmiliesGUI\_getExistingSmiliesTable(), and ilChatroomInitialTask\executeDefault().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Returns smilies basepath.
Definition at line 350 of file class.ilChatroomSmilies.php.
References ilUtil\getWebspaceDir().
Referenced by ilChatroomSmileyTask\updateSmiliesObject(), and ilChatroomSmileyTask\uploadSmileyObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Fetches smilies from database by id.
ilDBMySQL $ilDB
| array | $ids |
Definition at line 251 of file class.ilChatroomSmilies.php.
References $res, $result, and ilUtil\getWebspaceDir().
Referenced by _deleteMultipleSmilies(), and ilChatroomSmileyTask\deleteMultipleObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Performs initial setup (db, dirs, default data)
Definition at line 116 of file class.ilChatroomSmilies.php.
References _insertDefaultValues(), _setupDatabase(), and _setupFolder().
Here is the call graph for this function:
|
staticprivate |
Inserts default smiley set.
ilDBMySQL $ilDB
Definition at line 53 of file class.ilChatroomSmilies.php.
References $row.
Referenced by _checkSetup(), and _initial().
Here is the caller graph for this function:
|
static |
Trims given keywords and returns them in one array.
| string | $words |
Definition at line 419 of file class.ilChatroomSmilies.php.
Referenced by ilChatroomSmileyTask\updateSmiliesObject(), and ilChatroomSmileyTask\uploadSmileyObject().
Here is the caller graph for this function:
|
staticprivate |
Creates table and sequence.
ilDBMySQL $ilDB
Definition at line 21 of file class.ilChatroomSmilies.php.
Referenced by _initial().
Here is the caller graph for this function:
|
staticprivate |
Setup directory.
Definition at line 93 of file class.ilChatroomSmilies.php.
References $path, and ilUtil\getWebspaceDir().
Referenced by _initial().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Stores smiley with given keywords and path in database.
ilDBMySQL $ilDB
| array | $keywords | |
| string | $path |
Definition at line 394 of file class.ilChatroomSmilies.php.
Referenced by ilChatroomSmileyTask\uploadSmileyObject().
Here is the caller graph for this function:
|
static |
Updates smiley in DB by keyword and id from given array ($data["smiley_keywords"], $data["smiley_id"])
ilDBMySQL $ilDB
| array | $data |
Definition at line 317 of file class.ilChatroomSmilies.php.
References $data, and _getSmiley().
Referenced by ilChatroomSmileyTask\updateSmiliesObject().
Here is the call graph for this function:
Here is the caller graph for this function: