original_string: protected function process_book_chapter($data) {
          global $DB;
  
          $data = (object)$data;
          $oldid = $data->id;
          $data->course = $this->get_courseid();
  
          $data->bookid = $this->get_new_parentid('book');
  
          $newitemid = $DB->insert_record('book_chapters', $data);
          $this->set_mapping('book_chapter', $oldid, $newitemid, true);
      }
code: protected function process_book_chapter($data) {
          global $DB;
  
          $data = (object)$data;
          $oldid = $data->id;
          $data->course = $this->get_courseid();
  
          $data->bookid = $this->get_new_parentid('book');
  
          $newitemid = $DB->insert_record('book_chapters', $data);
          $this->set_mapping('book_chapter', $oldid, $newitemid, true);
      }
code_tokens: protected function process_book_chapter ( $ data ) { global $ DB ; $ data = ( object ) $ data ; $ oldid = $ data -> id ; $ data -> course = $ this -> get_courseid ( ) ; $ data -> bookid = $ this -> get_new_parentid ( 'book' ) ; $ newitemid = $ DB -> insert_record ( 'book_chapters' , $ data ) ; $ this -> set_mapping ( 'book_chapter' , $ oldid , $ newitemid , true ) ; }
docstring: Process chapter tag information
  @param array $data information
docstring_tokens: Process chapter tag information