|
array | $attributes = array() |
| An array of attributes to use on the icon.
|
|
string | $component |
| The component the icon belongs to.
|
|
string | $pix |
| The icon name.
|
|
◆ __construct()
pix_emoticon::__construct |
( |
|
$pix, |
|
|
|
$alt, |
|
|
|
$component = 'moodle' , |
|
|
array |
$attributes = array() |
|
) |
| |
Constructor.
- Parameters
-
string | $pix | short icon name |
string | $alt | alternative text |
string | $component | emoticon image provider |
array | $attributes | explicit HTML attributes |
Reimplemented from pix_icon.
◆ export_for_pix()
pix_icon::export_for_pix |
( |
| ) |
|
|
inherited |
Much simpler version of export that will produce the data required to render this pix with the pix helper in a mustache tag.
- Return values
-
◆ export_for_template()
Export this data so it can be used as the context for a mustache template.
- Parameters
-
renderer_base | $output | Used to do a final render of any components that need to be rendered for export. |
- Return values
-
Implements templatable.
The documentation for this class was generated from the following file: