original_string: private function create_pages() {
          // Set up generator.
          $pagegenerator = $this->generator->get_plugin_generator('mod_page');
  
          // Create pages.
          $number = self::$parampages[$this->size];
          $this->log('createpages', $number, true);
          for ($i = 0; $i < $number; $i++) {
              $record = array('course' => $this->course);
              $options = array('section' => $this->get_target_section());
              $pagegenerator->create_instance($record, $options);
              $this->dot($i, $number);
          }
  
          $this->end_log();
      }
code: private function create_pages() {
          // Set up generator.
          $pagegenerator = $this->generator->get_plugin_generator('mod_page');
  
          // Create pages.
          $number = self::$parampages[$this->size];
          $this->log('createpages', $number, true);
          for ($i = 0; $i < $number; $i++) {
              $record = array('course' => $this->course);
              $options = array('section' => $this->get_target_section());
              $pagegenerator->create_instance($record, $options);
              $this->dot($i, $number);
          }
  
          $this->end_log();
      }
code_tokens: private function create_pages ( ) { // Set up generator. $ pagegenerator = $ this -> generator -> get_plugin_generator ( 'mod_page' ) ; // Create pages. $ number = self :: $ parampages [ $ this -> size ] ; $ this -> log ( 'createpages' , $ number , true ) ; for ( $ i = 0 ; $ i < $ number ; $ i ++ ) { $ record = array ( 'course' => $ this -> course ) ; $ options = array ( 'section' => $ this -> get_target_section ( ) ) ; $ pagegenerator -> create_instance ( $ record , $ options ) ; $ this -> dot ( $ i , $ number ) ; } $ this -> end_log ( ) ; }
docstring: Creates a number of Page activities.
docstring_tokens: Creates a number of Page activities .