original_string: public function get_add_page_type_links($previd) {
          global $OUTPUT;
  
          $links = array();
  
          foreach ($this->types as $key=>$type) {
              if ($link = $type->add_page_link($previd)) {
                  $links[$key] = $link;
              }
          }
  
          return $links;
      }
code: public function get_add_page_type_links($previd) {
          global $OUTPUT;
  
          $links = array();
  
          foreach ($this->types as $key=>$type) {
              if ($link = $type->add_page_link($previd)) {
                  $links[$key] = $link;
              }
          }
  
          return $links;
      }
code_tokens: public function get_add_page_type_links ( $ previd ) { global $ OUTPUT ; $ links = array ( ) ; foreach ( $ this -> types as $ key => $ type ) { if ( $ link = $ type -> add_page_link ( $ previd ) ) { $ links [ $ key ] = $ link ; } } return $ links ; }
docstring: Returns an array of links to use as add page links
  @param int $previd The id of the previous page
  @return array
docstring_tokens: Returns an array of links to use as add page links