original_string: protected function recode_choice_order($order) {
          $neworder = array();
          foreach (explode(',', $order) as $id) {
              if ($newid = $this->get_mappingid('question_answer', $id)) {
                  $neworder[] = $newid;
              }
          }
          return implode(',', $neworder);
      }
code: protected function recode_choice_order($order) {
          $neworder = array();
          foreach (explode(',', $order) as $id) {
              if ($newid = $this->get_mappingid('question_answer', $id)) {
                  $neworder[] = $newid;
              }
          }
          return implode(',', $neworder);
      }
code_tokens: protected function recode_choice_order ( $ order ) { $ neworder = array ( ) ; foreach ( explode ( ',' , $ order ) as $ id ) { if ( $ newid = $ this -> get_mappingid ( 'question_answer' , $ id ) ) { $ neworder [ ] = $ newid ; } } return implode ( ',' , $ neworder ) ; }
docstring: Recode the choice order as stored in the response.
  @param string $order the original order.
  @return string the recoded order.
docstring_tokens: Recode the choice order as stored in the response .