Representation of a suggested action.
More...
|
Action const | TYPE_NEGATIVE = 'notuseful' |
| type notuseful.
|
|
Action const | TYPE_NEUTRAL = 'neutral' |
| type neutral.
|
|
Action const | TYPE_POSITIVE = 'useful' |
| type useful.
|
|
|
renderable | $actionlink = null |
|
string | $actionname = null |
|
string | $text = null |
|
string string | $type = '' |
| Store the action type.
|
|
moodle_url | $url = null |
|
Representation of a suggested action.
- Copyright
- 2019 David Monllao
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ get_action_link()
core_analytics\action::get_action_link |
( |
| ) |
|
Returns the link to the action.
- Return values
-
◆ get_action_name()
core_analytics\action::get_action_name |
( |
| ) |
|
Returns the action name.
- Return values
-
◆ get_text()
core_analytics\action::get_text |
( |
| ) |
|
Returns the action text.
- Return values
-
◆ get_type()
core_analytics\action::get_type |
( |
| ) |
|
Returns the type of action.
- Return values
-
string | The positiveness of the action (self\TYPE_POSITIVE, self\TYPE_NEGATIVE or self\TYPE_NEUTRAL) |
◆ get_url()
core_analytics\action::get_url |
( |
| ) |
|
Returns the url to the action.
- Return values
-
◆ set_type()
core_analytics\action::set_type |
( |
| $type = false | ) |
|
Sets the type of the action according to its positiveness.
- Exceptions
-
- Parameters
-
The documentation for this class was generated from the following file:
- analytics/classes/action.php