public function prediction_sample_data($predictionobj) {

        list($unused, $samplesdata) = $this->get_analyser()->get_samples(array($predictionobj->sampleid));

        if (empty($samplesdata[$predictionobj->sampleid])) {
            throw new \moodle_exception('errorsamplenotavailable', 'analytics');
        }

        return $samplesdata[$predictionobj->sampleid];
    }
public function prediction_sample_data($predictionobj) {

        list($unused, $samplesdata) = $this->get_analyser()->get_samples(array($predictionobj->sampleid));

        if (empty($samplesdata[$predictionobj->sampleid])) {
            throw new \moodle_exception('errorsamplenotavailable', 'analytics');
        }

        return $samplesdata[$predictionobj->sampleid];
    }
public function prediction_sample_data ( $ predictionobj ) { list ( $ unused , $ samplesdata ) = $ this -> get_analyser ( ) -> get_samples ( array ( $ predictionobj -> sampleid ) ) ; if ( empty ( $ samplesdata [ $ predictionobj -> sampleid ] ) ) { throw new \ moodle_exception ( 'errorsamplenotavailable' , 'analytics' ) ; } return $ samplesdata [ $ predictionobj -> sampleid ] ; }
Returns the sample data of a prediction.

@param \stdClass $predictionobj
@return array
Returns the sample data of a prediction .