original_string: public function update($properties, $context = null, $maxbytes = null) {
          if ($properties->enableotheranswers) {
              $properties->response_editor = array_values($properties->response_editor);
              $properties->jumpto = array_values($properties->jumpto);
              $properties->score = array_values($properties->score);
              $wrongresponse = end($properties->response_editor);
              $wrongkey = key($properties->response_editor);
              $properties->answer_editor[$wrongkey] = LESSON_OTHER_ANSWERS;
          }
          parent::update($properties, $context, $maxbytes);
      }
code: public function update($properties, $context = null, $maxbytes = null) {
          if ($properties->enableotheranswers) {
              $properties->response_editor = array_values($properties->response_editor);
              $properties->jumpto = array_values($properties->jumpto);
              $properties->score = array_values($properties->score);
              $wrongresponse = end($properties->response_editor);
              $wrongkey = key($properties->response_editor);
              $properties->answer_editor[$wrongkey] = LESSON_OTHER_ANSWERS;
          }
          parent::update($properties, $context, $maxbytes);
      }
code_tokens: public function update ( $ properties , $ context = null , $ maxbytes = null ) { if ( $ properties -> enableotheranswers ) { $ properties -> response_editor = array_values ( $ properties -> response_editor ) ; $ properties -> jumpto = array_values ( $ properties -> jumpto ) ; $ properties -> score = array_values ( $ properties -> score ) ; $ wrongresponse = end ( $ properties -> response_editor ) ; $ wrongkey = key ( $ properties -> response_editor ) ; $ properties -> answer_editor [ $ wrongkey ] = LESSON_OTHER_ANSWERS ; } parent :: update ( $ properties , $ context , $ maxbytes ) ; }
docstring: Update the answers for this page type.
  
  @param  object $properties The answer properties.
  @param  context $context The context for this module.
  @param  int $maxbytes The maximum bytes for any uploades.
docstring_tokens: Update the answers for this page type .