original_string: public function load_page($pageid) {
          if (!array_key_exists($pageid, $this->pages)) {
              $manager = lesson_page_type_manager::get($this);
              $this->pages[$pageid] = $manager->load_page($pageid, $this);
          }
          return $this->pages[$pageid];
      }
code: public function load_page($pageid) {
          if (!array_key_exists($pageid, $this->pages)) {
              $manager = lesson_page_type_manager::get($this);
              $this->pages[$pageid] = $manager->load_page($pageid, $this);
          }
          return $this->pages[$pageid];
      }
code_tokens: public function load_page ( $ pageid ) { if ( ! array_key_exists ( $ pageid , $ this -> pages ) ) { $ manager = lesson_page_type_manager :: get ( $ this ) ; $ this -> pages [ $ pageid ] = $ manager -> load_page ( $ pageid , $ this ) ; } return $ this -> pages [ $ pageid ] ; }
docstring: Loads the requested page.
  
  This function will return the requested page id as either a specialised
  lesson_page object OR as a generic lesson_page.
  If the page has been loaded previously it will be returned from the pages
  array, otherwise it will be loaded from the database first
  
  @param int $pageid
  @return lesson_page A lesson_page object or an object that extends it
docstring_tokens: Loads the requested page .