original_string: public function properties() {
          $properties = clone($this->properties);
          if ($this->answers === null) {
              $this->get_answers();
          }
          if (count($this->answers)>0) {
              $count = 0;
              $qtype = $properties->qtype;
              foreach ($this->answers as $answer) {
                  $properties->{'answer_editor['.$count.']'} = array('text' => $answer->answer, 'format' => $answer->answerformat);
                  if ($qtype != LESSON_PAGE_MATCHING) {
                      $properties->{'response_editor['.$count.']'} = array('text' => $answer->response, 'format' => $answer->responseformat);
                  } else {
                      $properties->{'response_editor['.$count.']'} = $answer->response;
                  }
                  $properties->{'jumpto['.$count.']'} = $answer->jumpto;
                  $properties->{'score['.$count.']'} = $answer->score;
                  $count++;
              }
          }
          return $properties;
      }
code: public function properties() {
          $properties = clone($this->properties);
          if ($this->answers === null) {
              $this->get_answers();
          }
          if (count($this->answers)>0) {
              $count = 0;
              $qtype = $properties->qtype;
              foreach ($this->answers as $answer) {
                  $properties->{'answer_editor['.$count.']'} = array('text' => $answer->answer, 'format' => $answer->answerformat);
                  if ($qtype != LESSON_PAGE_MATCHING) {
                      $properties->{'response_editor['.$count.']'} = array('text' => $answer->response, 'format' => $answer->responseformat);
                  } else {
                      $properties->{'response_editor['.$count.']'} = $answer->response;
                  }
                  $properties->{'jumpto['.$count.']'} = $answer->jumpto;
                  $properties->{'score['.$count.']'} = $answer->score;
                  $count++;
              }
          }
          return $properties;
      }
code_tokens: public function properties ( ) { $ properties = clone ( $ this -> properties ) ; if ( $ this -> answers === null ) { $ this -> get_answers ( ) ; } if ( count ( $ this -> answers ) > 0 ) { $ count = 0 ; $ qtype = $ properties -> qtype ; foreach ( $ this -> answers as $ answer ) { $ properties -> { 'answer_editor[' . $ count . ']' } = array ( 'text' => $ answer -> answer , 'format' => $ answer -> answerformat ) ; if ( $ qtype != LESSON_PAGE_MATCHING ) { $ properties -> { 'response_editor[' . $ count . ']' } = array ( 'text' => $ answer -> response , 'format' => $ answer -> responseformat ) ; } else { $ properties -> { 'response_editor[' . $ count . ']' } = $ answer -> response ; } $ properties -> { 'jumpto[' . $ count . ']' } = $ answer -> jumpto ; $ properties -> { 'score[' . $ count . ']' } = $ answer -> score ; $ count ++ ; } } return $ properties ; }
docstring: Returns the properties of this lesson page as an object
  @return stdClass;
docstring_tokens: Returns the properties of this lesson page as an object