original_string: protected function reload_from_record($record, $clean = false) {
          $this->id           = $record->id;
          $this->tourid       = $record->tourid;
          if ($clean) {
              $this->title    = clean_param($record->title, PARAM_TEXT);
              $this->content  = clean_text($record->content);
          } else {
              $this->title    = $record->title;
              $this->content  = $record->content;
          }
          $this->targettype   = $record->targettype;
          $this->targetvalue  = $record->targetvalue;
          $this->sortorder    = $record->sortorder;
          $this->config       = json_decode($record->configdata);
          $this->dirty        = false;
  
          return $this;
      }
code: protected function reload_from_record($record, $clean = false) {
          $this->id           = $record->id;
          $this->tourid       = $record->tourid;
          if ($clean) {
              $this->title    = clean_param($record->title, PARAM_TEXT);
              $this->content  = clean_text($record->content);
          } else {
              $this->title    = $record->title;
              $this->content  = $record->content;
          }
          $this->targettype   = $record->targettype;
          $this->targetvalue  = $record->targetvalue;
          $this->sortorder    = $record->sortorder;
          $this->config       = json_decode($record->configdata);
          $this->dirty        = false;
  
          return $this;
      }
code_tokens: protected function reload_from_record ( $ record , $ clean = false ) { $ this -> id = $ record -> id ; $ this -> tourid = $ record -> tourid ; if ( $ clean ) { $ this -> title = clean_param ( $ record -> title , PARAM_TEXT ) ; $ this -> content = clean_text ( $ record -> content ) ; } else { $ this -> title = $ record -> title ; $ this -> content = $ record -> content ; } $ this -> targettype = $ record -> targettype ; $ this -> targetvalue = $ record -> targetvalue ; $ this -> sortorder = $ record -> sortorder ; $ this -> config = json_decode ( $ record -> configdata ) ; $ this -> dirty = false ; return $ this ; }
docstring: Reload the current step from the supplied record.
  
  @param   stdClass        $record     The step record to be loaded.
  @param   boolean         $clean      Clean the values.
  @return  step
docstring_tokens: Reload the current step from the supplied record .