original_string: private function dimension_grades_structure($elementname) {
  
          // create XML elements
          $subplugin = $this->get_subplugin_element(); // virtual optigroup element
          $subpluginwrapper = new backup_nested_element($this->get_recommended_name());
          $subplugingrade = new backup_nested_element($elementname, array('id'), array(
              'dimensionid', 'grade', 'peercomment', 'peercommentformat'));
  
          // connect XML elements into the tree
          $subplugin->add_child($subpluginwrapper);
          $subpluginwrapper->add_child($subplugingrade);
  
          // set source to populate the data
          $subplugingrade->set_source_sql(
              "SELECT id, dimensionid, grade, peercomment, peercommentformat
                 FROM {workshop_grades}
                WHERE strategy = 'accumulative' AND assessmentid = ?",
                array(backup::VAR_PARENTID));
  
          return $subplugin;
      }
code: private function dimension_grades_structure($elementname) {
  
          // create XML elements
          $subplugin = $this->get_subplugin_element(); // virtual optigroup element
          $subpluginwrapper = new backup_nested_element($this->get_recommended_name());
          $subplugingrade = new backup_nested_element($elementname, array('id'), array(
              'dimensionid', 'grade', 'peercomment', 'peercommentformat'));
  
          // connect XML elements into the tree
          $subplugin->add_child($subpluginwrapper);
          $subpluginwrapper->add_child($subplugingrade);
  
          // set source to populate the data
          $subplugingrade->set_source_sql(
              "SELECT id, dimensionid, grade, peercomment, peercommentformat
                 FROM {workshop_grades}
                WHERE strategy = 'accumulative' AND assessmentid = ?",
                array(backup::VAR_PARENTID));
  
          return $subplugin;
      }
code_tokens: private function dimension_grades_structure ( $ elementname ) { // create XML elements $ subplugin = $ this -> get_subplugin_element ( ) ; // virtual optigroup element $ subpluginwrapper = new backup_nested_element ( $ this -> get_recommended_name ( ) ) ; $ subplugingrade = new backup_nested_element ( $ elementname , array ( 'id' ) , array ( 'dimensionid' , 'grade' , 'peercomment' , 'peercommentformat' ) ) ; // connect XML elements into the tree $ subplugin -> add_child ( $ subpluginwrapper ) ; $ subpluginwrapper -> add_child ( $ subplugingrade ) ; // set source to populate the data $ subplugingrade -> set_source_sql ( "SELECT id, dimensionid, grade, peercomment, peercommentformat
                 FROM {workshop_grades}
                WHERE strategy = 'accumulative' AND assessmentid = ?" , array ( backup :: VAR_PARENTID ) ) ; return $ subplugin ; }
docstring: Returns the structure of dimension grades
  
  @param string first parameter of {@link backup_nested_element} constructor
docstring_tokens: Returns the structure of dimension grades