protected static function validate_prediction($predictionid) {

        list($model, $prediction, $context) = \core_analytics\manager::get_prediction($predictionid);

        self::validate_context($context);

        return array($model, $prediction, $context);
    }
protected static function validate_prediction($predictionid) {

        list($model, $prediction, $context) = \core_analytics\manager::get_prediction($predictionid);

        self::validate_context($context);

        return array($model, $prediction, $context);
    }
protected static function validate_prediction ( $ predictionid ) { list ( $ model , $ prediction , $ context ) = \ core_analytics \ manager :: get_prediction ( $ predictionid ) ; self :: validate_context ( $ context ) ; return array ( $ model , $ prediction , $ context ) ; }
Validates access to the prediction and returns it.

@param int $predictionid
@return array array($model, $prediction, $context)
Validates access to the prediction and returns it .