original_string: public function data_for_question_response_table($responseclasscolumn, $partid) {
          $return = array();
          if (count($this->get_responses()) == 0) {
              $rowdata = new \stdClass();
              $rowdata->part = $partid;
              $rowdata->responseclass = $this->modelresponse;
              if (!$responseclasscolumn) {
                  $rowdata->response = $this->modelresponse;
              } else {
                  $rowdata->response = '';
              }
              $rowdata->fraction = $this->fraction;
              $rowdata->totalcount = 0;
              $rowdata->trycount = array();
              $return[] = $rowdata;
          } else {
              foreach ($this->get_responses() as $actualresponse) {
                  $response = $this->get_response($actualresponse);
                  $return[] = $response->data_for_question_response_table($partid, $this->modelresponse);
              }
          }
          return $return;
      }
code: public function data_for_question_response_table($responseclasscolumn, $partid) {
          $return = array();
          if (count($this->get_responses()) == 0) {
              $rowdata = new \stdClass();
              $rowdata->part = $partid;
              $rowdata->responseclass = $this->modelresponse;
              if (!$responseclasscolumn) {
                  $rowdata->response = $this->modelresponse;
              } else {
                  $rowdata->response = '';
              }
              $rowdata->fraction = $this->fraction;
              $rowdata->totalcount = 0;
              $rowdata->trycount = array();
              $return[] = $rowdata;
          } else {
              foreach ($this->get_responses() as $actualresponse) {
                  $response = $this->get_response($actualresponse);
                  $return[] = $response->data_for_question_response_table($partid, $this->modelresponse);
              }
          }
          return $return;
      }
code_tokens: public function data_for_question_response_table ( $ responseclasscolumn , $ partid ) { $ return = array ( ) ; if ( count ( $ this -> get_responses ( ) ) == 0 ) { $ rowdata = new \ stdClass ( ) ; $ rowdata -> part = $ partid ; $ rowdata -> responseclass = $ this -> modelresponse ; if ( ! $ responseclasscolumn ) { $ rowdata -> response = $ this -> modelresponse ; } else { $ rowdata -> response = '' ; } $ rowdata -> fraction = $ this -> fraction ; $ rowdata -> totalcount = 0 ; $ rowdata -> trycount = array ( ) ; $ return [ ] = $ rowdata ; } else { foreach ( $ this -> get_responses ( ) as $ actualresponse ) { $ response = $ this -> get_response ( $ actualresponse ) ; $ return [ ] = $ response -> data_for_question_response_table ( $ partid , $ this -> modelresponse ) ; } } return $ return ; }
docstring: Return the data to display in the response analysis table.
  
  @param bool $responseclasscolumn
  @param string $partid
  @return object[]
docstring_tokens: Return the data to display in the response analysis table .