public function get_options() {
        $options = self::get_default_options();
        if (!empty($this->definition->options)) {
            $thisoptions = json_decode($this->definition->options);
            foreach ($thisoptions as $option => $value) {
                $options[$option] = $value;
            }
            if (!array_key_exists('lockzeropoints', $thisoptions)) {
                // Rubrics created before Moodle 3.2 don't have 'lockzeropoints' option. In this case they should not
                // assume default value 1 but use "legacy" value 0.
                $options['lockzeropoints'] = 0;
            }
        }
        return $options;
    }
public function get_options() {
        $options = self::get_default_options();
        if (!empty($this->definition->options)) {
            $thisoptions = json_decode($this->definition->options);
            foreach ($thisoptions as $option => $value) {
                $options[$option] = $value;
            }
            if (!array_key_exists('lockzeropoints', $thisoptions)) {
                // Rubrics created before Moodle 3.2 don't have 'lockzeropoints' option. In this case they should not
                // assume default value 1 but use "legacy" value 0.
                $options['lockzeropoints'] = 0;
            }
        }
        return $options;
    }
public function get_options ( ) { $ options = self :: get_default_options ( ) ; if ( ! empty ( $ this -> definition -> options ) ) { $ thisoptions = json_decode ( $ this -> definition -> options ) ; foreach ( $ thisoptions as $ option => $ value ) { $ options [ $ option ] = $ value ; } if ( ! array_key_exists ( 'lockzeropoints' , $ thisoptions ) ) { // Rubrics created before Moodle 3.2 don't have 'lockzeropoints' option. In this case they should not // assume default value 1 but use "legacy" value 0. $ options [ 'lockzeropoints' ] = 0 ; } } return $ options ; }
Gets the options of this rubric definition, fills the missing options with default values

The only exception is 'lockzeropoints' - if other options are present in the json string but this
one is absent, this means that the rubric was created before Moodle 3.2 and the 0 value should be used.

@return array
Gets the options of this rubric definition fills the missing options with default values