Moodle APIs
3.8
Moodle 3.8.6 (Build: 20201109)
|
Class representing an action a user should take. More...
Public Member Functions | |
__construct ( $name, moodle_url $url, $itemcount, $actionable) | |
Constructor. More... | |
get_item_count () | |
Get the number of items that need actioning. More... | |
get_name () | |
Get the name of the action. More... | |
get_url () | |
Get the URL of the action. More... | |
is_actionable () | |
Get the actions actionability. More... | |
Protected Attributes | |
bool | $actionable |
$actionable Whether or not the event is currently actionable. | |
int | $itemcount |
$itemcount How many items there are to action. | |
string | $name |
$name The action's name. | |
moodle_url | $url |
$url The action's URL. | |
Class representing an action a user should take.
core_calendar\local\event\value_objects\action::__construct | ( | $name, | |
moodle_url | $url, | ||
$itemcount, | |||
$actionable | |||
) |
Constructor.
string | $name | The action's name. |
moodle_url | $url | The action's URL. |
int | $itemcount | How many items there are to action. |
bool | $actionable | Whether or not the event is currently actionable. |
core_calendar\local\event\value_objects\action::get_item_count | ( | ) |
Get the number of items that need actioning.
int |
Implements core_calendar\local\event\entities\action_interface.
core_calendar\local\event\value_objects\action::get_name | ( | ) |
Get the name of the action.
string |
Implements core_calendar\local\event\entities\action_interface.
core_calendar\local\event\value_objects\action::get_url | ( | ) |
Get the URL of the action.
moodle_url |
Implements core_calendar\local\event\entities\action_interface.
core_calendar\local\event\value_objects\action::is_actionable | ( | ) |
Get the actions actionability.
bool |
Implements core_calendar\local\event\entities\action_interface.