public function get_scale() {
        $scaleid = $this->get('scaleid');
        if ($scaleid === null) {
            return $this->get_framework()->get_scale();
        }
        $scale = \grade_scale::fetch(array('id' => $scaleid));
        $scale->load_items();
        return $scale;
    }
public function get_scale() {
        $scaleid = $this->get('scaleid');
        if ($scaleid === null) {
            return $this->get_framework()->get_scale();
        }
        $scale = \grade_scale::fetch(array('id' => $scaleid));
        $scale->load_items();
        return $scale;
    }
public function get_scale ( ) { $ scaleid = $ this -> get ( 'scaleid' ) ; if ( $ scaleid === null ) { return $ this -> get_framework ( ) -> get_scale ( ) ; } $ scale = \ grade_scale :: fetch ( array ( 'id' => $ scaleid ) ) ; $ scale -> load_items ( ) ; return $ scale ; }
Return the scale.

@return \grade_scale
Return the scale .