|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| get_emoticons () | |
| prepare_renderable_emoticon (stdClass $emoticon, array $attributes=array()) | |
| encode_stored_config (array $emoticons) | |
| decode_stored_config ($encoded) | |
| default_emoticons () | |
Protected Member Functions | |
| prepare_emoticon_object ($text, $imagename, $altidentifier=null, $altcomponent= 'core_pix', $imagecomponent= 'core') | |
Provides core support for plugins that have to deal with emoticons (like HTML editor or emoticon filter).
Whenever this manager mentiones 'emoticon object', the following data structure is expected: stdClass with properties text, imagename, imagecomponent, altidentifier and altcomponent
Definition at line 7116 of file moodlelib.php.
| decode_stored_config | ( | $ | encoded | ) |
Decodes the string into an array of emoticon objects
| string | $encoded |
Definition at line 7176 of file moodlelib.php.
Returns default set of emoticons supported by Moodle
Definition at line 7189 of file moodlelib.php.
| encode_stored_config | ( | array $ | emoticons | ) |
Encodes the array of emoticon objects into a string storable in config table
| array | $emoticons | array of emtocion objects |
Definition at line 7165 of file moodlelib.php.
| get_emoticons | ( | ) |
Returns the currently enabled emoticons
Definition at line 7123 of file moodlelib.php.
| prepare_emoticon_object | ( | $ | text, |
| $ | imagename, | ||
| $ | altidentifier = null, |
||
| $ | altcomponent = 'core_pix', |
||
| $ | imagecomponent = 'core' |
||
| ) | [protected] |
Helper method preparing the stdClass with the emoticon properties
| string | array | $text | or array of strings |
| string | $imagename | to be used by { |
| string | $altidentifier | alternative string identifier, null for no alt |
| array | $altcomponent | where the alternative string is defined |
| string | $imagecomponent | to be used by { |
Definition at line 7234 of file moodlelib.php.
| prepare_renderable_emoticon | ( | stdClass $ | emoticon, |
| array $ | attributes = array() |
||
| ) |
Converts emoticon object into renderable pix_emoticon object
| stdClass | $emoticon | emoticon object |
| array | $attributes | explicit HTML attributes to set |
Definition at line 7148 of file moodlelib.php.