original_string: final public function move($nextpageid=null, $prevpageid=null) {
          global $DB;
          if ($nextpageid === null) {
              $nextpageid = $this->properties->nextpageid;
          }
          if ($prevpageid === null) {
              $prevpageid = $this->properties->prevpageid;
          }
          $obj = new stdClass;
          $obj->id = $this->properties->id;
          $obj->prevpageid = $prevpageid;
          $obj->nextpageid = $nextpageid;
          $DB->update_record('lesson_pages', $obj);
      }
code: final public function move($nextpageid=null, $prevpageid=null) {
          global $DB;
          if ($nextpageid === null) {
              $nextpageid = $this->properties->nextpageid;
          }
          if ($prevpageid === null) {
              $prevpageid = $this->properties->prevpageid;
          }
          $obj = new stdClass;
          $obj->id = $this->properties->id;
          $obj->prevpageid = $prevpageid;
          $obj->nextpageid = $nextpageid;
          $DB->update_record('lesson_pages', $obj);
      }
code_tokens: final public function move ( $ nextpageid = null , $ prevpageid = null ) { global $ DB ; if ( $ nextpageid === null ) { $ nextpageid = $ this -> properties -> nextpageid ; } if ( $ prevpageid === null ) { $ prevpageid = $ this -> properties -> prevpageid ; } $ obj = new stdClass ; $ obj -> id = $ this -> properties -> id ; $ obj -> prevpageid = $ prevpageid ; $ obj -> nextpageid = $ nextpageid ; $ DB -> update_record ( 'lesson_pages' , $ obj ) ; }
docstring: Moves a page by updating its nextpageid and prevpageid values within
  the database
  
  @final
  @param int $nextpageid
  @param int $prevpageid
docstring_tokens: Moves a page by updating its nextpageid and prevpageid values within the database