|
| prepare_emoticon_object (string|array $text, string $imagename, ?string $altidentifier=null, string $altcomponent='core_pix', string $imagecomponent='core',) |
| Helper method preparing an emoticon object.
|
|
◆ decode_stored_config()
core\emoticon_manager::decode_stored_config |
( |
string | $encoded | ) |
|
Decodes the string into an array of emoticon objects.
- Parameters
-
- Return values
-
◆ default_emoticons()
core\emoticon_manager::default_emoticons |
( |
| ) |
|
Returns default set of emoticons supported by Moodle.
- Return values
-
stdClass[] | array of emoticon objects |
◆ encode_stored_config()
core\emoticon_manager::encode_stored_config |
( |
array | $emoticons | ) |
|
Encodes the array of emoticon objects into a string storable in config table.
- Parameters
-
stdClass[] | $emoticons | array of emoticon objects |
- Return values
-
◆ get_emoticons()
core\emoticon_manager::get_emoticons |
( |
bool | $selectable = false | ) |
|
Returns the currently enabled emoticons.
- Parameters
-
bool | $selectable | If true, only return emoticons that should be selectable from a list |
- Return values
-
stdClass[] | array of emoticon objects |
◆ prepare_emoticon_object()
core\emoticon_manager::prepare_emoticon_object |
( |
string|array | $text, |
|
|
string | $imagename, |
|
|
?string | $altidentifier = null, |
|
|
string | $altcomponent = 'core_pix', |
|
|
string | $imagecomponent = 'core' ) |
|
protected |
Helper method preparing an emoticon object.
- Parameters
-
string | string[] | $text | |
string | $imagename | to be used by { |
- See also
- pix_emoticon}
- Parameters
-
?string | $altidentifier | alternative string identifier, null for no alt |
string | $altcomponent | where the alternative string is defined |
string | $imagecomponent | to be used by { |
- See also
- pix_emoticon}
- Return values
-
◆ prepare_renderable_emoticon()
core\emoticon_manager::prepare_renderable_emoticon |
( |
stdClass | $emoticon, |
|
|
array | $attributes = [] ) |
Converts emoticon object into renderable pix_emoticon object.
- Parameters
-
stdClass | $emoticon | emoticon object |
array | $attributes | explicit HTML attributes to set |
- Return values
-
The documentation for this class was generated from the following file:
- lib/classes/emoticon_manager.php