public function check_indicator_requirements(\core_analytics\local\indicator\base $indicator) {

        $providedsampledata = $this->provided_sample_data();

        $requiredsampledata = $indicator::required_sample_data();
        if (empty($requiredsampledata)) {
            // The indicator does not need any sample data.
            return true;
        }
        $missingrequired = array_diff($requiredsampledata, $providedsampledata);

        if (empty($missingrequired)) {
            return true;
        }

        return $missingrequired;
    }
public function check_indicator_requirements(\core_analytics\local\indicator\base $indicator) {

        $providedsampledata = $this->provided_sample_data();

        $requiredsampledata = $indicator::required_sample_data();
        if (empty($requiredsampledata)) {
            // The indicator does not need any sample data.
            return true;
        }
        $missingrequired = array_diff($requiredsampledata, $providedsampledata);

        if (empty($missingrequired)) {
            return true;
        }

        return $missingrequired;
    }
public function check_indicator_requirements ( \ core_analytics \ local \ indicator \ base $ indicator ) { $ providedsampledata = $ this -> provided_sample_data ( ) ; $ requiredsampledata = $ indicator :: required_sample_data ( ) ; if ( empty ( $ requiredsampledata ) ) { // The indicator does not need any sample data. return true ; } $ missingrequired = array_diff ( $ requiredsampledata , $ providedsampledata ) ; if ( empty ( $ missingrequired ) ) { return true ; } return $ missingrequired ; }
Checks that this analyser satisfies the provided indicator requirements.

@param \core_analytics\local\indicator\base $indicator
@return true|string[] True if all good, missing requirements list otherwise
Checks that this analyser satisfies the provided indicator requirements .