public static function add_rating_parameters() {
        return new external_function_parameters (
            array(
                'contextlevel'  => new external_value(PARAM_ALPHA, 'context level: course, module, user, etc...'),
                'instanceid'    => new external_value(PARAM_INT, 'the instance id of item associated with the context level'),
                'component'     => new external_value(PARAM_COMPONENT, 'component'),
                'ratingarea'    => new external_value(PARAM_AREA, 'rating area'),
                'itemid'        => new external_value(PARAM_INT, 'associated id'),
                'scaleid'       => new external_value(PARAM_INT, 'scale id'),
                'rating'        => new external_value(PARAM_INT, 'user rating'),
                'rateduserid'   => new external_value(PARAM_INT, 'rated user id'),
                'aggregation'   => new external_value(PARAM_INT, 'agreggation method', VALUE_DEFAULT, RATING_AGGREGATE_NONE)
            )
        );
    }
public static function add_rating_parameters() {
        return new external_function_parameters (
            array(
                'contextlevel'  => new external_value(PARAM_ALPHA, 'context level: course, module, user, etc...'),
                'instanceid'    => new external_value(PARAM_INT, 'the instance id of item associated with the context level'),
                'component'     => new external_value(PARAM_COMPONENT, 'component'),
                'ratingarea'    => new external_value(PARAM_AREA, 'rating area'),
                'itemid'        => new external_value(PARAM_INT, 'associated id'),
                'scaleid'       => new external_value(PARAM_INT, 'scale id'),
                'rating'        => new external_value(PARAM_INT, 'user rating'),
                'rateduserid'   => new external_value(PARAM_INT, 'rated user id'),
                'aggregation'   => new external_value(PARAM_INT, 'agreggation method', VALUE_DEFAULT, RATING_AGGREGATE_NONE)
            )
        );
    }
public static function add_rating_parameters ( ) { return new external_function_parameters ( array ( 'contextlevel' => new external_value ( PARAM_ALPHA , 'context level: course, module, user, etc...' ) , 'instanceid' => new external_value ( PARAM_INT , 'the instance id of item associated with the context level' ) , 'component' => new external_value ( PARAM_COMPONENT , 'component' ) , 'ratingarea' => new external_value ( PARAM_AREA , 'rating area' ) , 'itemid' => new external_value ( PARAM_INT , 'associated id' ) , 'scaleid' => new external_value ( PARAM_INT , 'scale id' ) , 'rating' => new external_value ( PARAM_INT , 'user rating' ) , 'rateduserid' => new external_value ( PARAM_INT , 'rated user id' ) , 'aggregation' => new external_value ( PARAM_INT , 'agreggation method' , VALUE_DEFAULT , RATING_AGGREGATE_NONE ) ) ) ; }
Returns description of add_rating parameters.

@return external_function_parameters
@since Moodle 3.2
Returns description of add_rating parameters .