original_string: public function load_scale() {
          if (empty($this->scale->id) or $this->scale->id != $this->scaleid) {
              $this->scale = grade_scale::fetch(array('id'=>$this->scaleid));
              $this->scale->load_items();
          }
          return $this->scale;
      }
code: public function load_scale() {
          if (empty($this->scale->id) or $this->scale->id != $this->scaleid) {
              $this->scale = grade_scale::fetch(array('id'=>$this->scaleid));
              $this->scale->load_items();
          }
          return $this->scale;
      }
code_tokens: public function load_scale ( ) { if ( empty ( $ this -> scale -> id ) or $ this -> scale -> id != $ this -> scaleid ) { $ this -> scale = grade_scale :: fetch ( array ( 'id' => $ this -> scaleid ) ) ; $ this -> scale -> load_items ( ) ; } return $ this -> scale ; }
docstring: Instantiates a grade_scale object whose data is retrieved from the database
  
  @return grade_scale
docstring_tokens: Instantiates a grade_scale object whose data is retrieved from the database