The content_item class.
More...
|
| __construct (int $id, string $name, title $title, moodle_url $link, string $icon, string $help, int $archetype, string $componentname, string $purpose, bool $branded=false) |
| The content_item constructor.
|
|
| get_archetype () |
| Get the archetype of this item.
|
|
| get_component_name () |
| Get the name of the component with which this content item is associated.
|
|
| get_help () |
| Get the help description of this item.
|
|
| get_icon () |
| Get the icon html for this item.
|
|
| get_id () |
| Get the id of this item.
|
|
| get_link () |
| Get the link to the creation page of this item.
|
|
| get_name () |
| Get the name of this item.
|
|
| get_purpose () |
| Get purpose for this item.
|
|
| get_title () |
| Get the human readable title of this item.
|
|
| is_branded () |
| Whether this item is branded.
|
|
◆ __construct()
core_course\local\entity\content_item::__construct |
( |
int | $id, |
|
|
string | $name, |
|
|
title | $title, |
|
|
moodle_url | $link, |
|
|
string | $icon, |
|
|
string | $help, |
|
|
int | $archetype, |
|
|
string | $componentname, |
|
|
string | $purpose, |
|
|
bool | $branded = false ) |
The content_item constructor.
- Parameters
-
int | $id | Id number. |
string | $name | Name of the item, not human readable. |
title | $title | Human readable title for the item. |
moodle_url | $link | The URL to the creation page, with any item specific params |
string | $icon | HTML containing the icon for the item |
string | $help | The description of the item. |
int | $archetype | the archetype for the content item (see MOD_ARCHETYPE_X definitions in lib/moodlelib.php). |
string | $componentname | the name of the component/plugin with which this content item is associated. |
string | $purpose | the purpose type of this component. |
bool | $branded | whether or not this item is branded. |
◆ get_archetype()
core_course\local\entity\content_item::get_archetype |
( |
| ) |
|
Get the archetype of this item.
- Return values
-
◆ get_component_name()
core_course\local\entity\content_item::get_component_name |
( |
| ) |
|
Get the name of the component with which this content item is associated.
- Return values
-
◆ get_help()
core_course\local\entity\content_item::get_help |
( |
| ) |
|
Get the help description of this item.
- Return values
-
◆ get_icon()
core_course\local\entity\content_item::get_icon |
( |
| ) |
|
Get the icon html for this item.
- Return values
-
◆ get_id()
core_course\local\entity\content_item::get_id |
( |
| ) |
|
Get the id of this item.
- Return values
-
◆ get_link()
core_course\local\entity\content_item::get_link |
( |
| ) |
|
Get the link to the creation page of this item.
- Return values
-
◆ get_name()
core_course\local\entity\content_item::get_name |
( |
| ) |
|
Get the name of this item.
- Return values
-
◆ get_purpose()
core_course\local\entity\content_item::get_purpose |
( |
| ) |
|
Get purpose for this item.
- Return values
-
◆ get_title()
core_course\local\entity\content_item::get_title |
( |
| ) |
|
Get the human readable title of this item.
- Return values
-
◆ is_branded()
core_course\local\entity\content_item::is_branded |
( |
| ) |
|
Whether this item is branded.
- Return values
-
bool | true if this item is branded, false otherwise. |
The documentation for this class was generated from the following file:
- course/classes/local/entity/content_item.php