Representation of a prediction.
More...
|
const | ACTION_FIXED = 'fixed' |
| Prediction already fixed (one of the default prediction actions)
|
|
const | ACTION_INCORRECTLY_FLAGGED = 'incorrectlyflagged' |
| Prediction incorrectly flagged.
|
|
const | ACTION_NOT_APPLICABLE = 'notapplicable' |
| Prediction not applicable.
|
|
const | ACTION_NOT_USEFUL = 'notuseful' |
| Prediction not useful (one of the default prediction actions)
|
|
const | ACTION_PREDICTION_DETAILS = 'predictiondetails' |
| Prediction details (one of the default prediction actions)
|
|
const | ACTION_USEFUL = 'useful' |
| Prediction useful (one of the default prediction actions)
|
|
Representation of a prediction.
- Copyright
- 2017 David Monllao
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
core_analytics\prediction::__construct |
( |
| $prediction, |
|
|
| $sampledata ) |
Constructor.
- Parameters
-
stdClass | int | $prediction | |
array | $sampledata | |
- Return values
-
◆ action_executed()
Stores the executed action.
Prediction instances should be retrieved using core_analytics\manager\get_prediction, It is the caller responsability to check that the user can see the prediction.
- Parameters
-
◆ get_calculations()
core_analytics\prediction::get_calculations |
( |
| ) |
|
Gets the prediction calculations.
- Return values
-
◆ get_executed_actions()
core_analytics\prediction::get_executed_actions |
( |
array | $actionnamefilter = null, |
|
|
int | $userid = 0 ) |
Get the executed actions.
Actions could be filtered by actionname.
- Parameters
-
array | $actionnamefilter | Limit the results obtained to this list of action names. |
int | $userid | the user id. Current user by default. |
- Return values
-
◆ get_prediction_data()
core_analytics\prediction::get_prediction_data |
( |
| ) |
|
Get prediction object data.
- Return values
-
◆ get_sample_data()
core_analytics\prediction::get_sample_data |
( |
| ) |
|
Get prediction sample data.
- Return values
-
The documentation for this class was generated from the following file:
- analytics/classes/prediction.php