original_string: private function print_orphaned_content() {
          global $OUTPUT;
  
          $page = $this->page;
  
          if ($page->timerendered + WIKI_REFRESH_CACHE_TIME < time()) {
              $fresh = wiki_refresh_cachedcontent($page);
              $page = $fresh['page'];
          }
  
          $swid = $this->subwiki->id;
  
          $table = new html_table();
          $table->head = array(get_string('orphaned', 'wiki') . $OUTPUT->help_icon('orphaned', 'wiki'));
          $table->attributes['class'] = 'generalbox table';
          $table->data = array();
          $table->rowclasses = array();
  
          if ($orphanedpages = wiki_get_orphaned_pages($swid)) {
              foreach ($orphanedpages as $page) {
                  $link = wiki_parser_link($page->title, array('swid' => $swid));
                  $class = ($link['new']) ? 'class="wiki_newentry"' : '';
                  $table->data[] = array('<a href="' . $link['url'] . '"' . $class . '>' . format_string($link['content']) . '</a>');
              }
          } else {
              $table->data[] = array(get_string('noorphanedpages', 'wiki'));
          }
  
          echo html_writer::table($table);
      }
code: private function print_orphaned_content() {
          global $OUTPUT;
  
          $page = $this->page;
  
          if ($page->timerendered + WIKI_REFRESH_CACHE_TIME < time()) {
              $fresh = wiki_refresh_cachedcontent($page);
              $page = $fresh['page'];
          }
  
          $swid = $this->subwiki->id;
  
          $table = new html_table();
          $table->head = array(get_string('orphaned', 'wiki') . $OUTPUT->help_icon('orphaned', 'wiki'));
          $table->attributes['class'] = 'generalbox table';
          $table->data = array();
          $table->rowclasses = array();
  
          if ($orphanedpages = wiki_get_orphaned_pages($swid)) {
              foreach ($orphanedpages as $page) {
                  $link = wiki_parser_link($page->title, array('swid' => $swid));
                  $class = ($link['new']) ? 'class="wiki_newentry"' : '';
                  $table->data[] = array('<a href="' . $link['url'] . '"' . $class . '>' . format_string($link['content']) . '</a>');
              }
          } else {
              $table->data[] = array(get_string('noorphanedpages', 'wiki'));
          }
  
          echo html_writer::table($table);
      }
code_tokens: private function print_orphaned_content ( ) { global $ OUTPUT ; $ page = $ this -> page ; if ( $ page -> timerendered + WIKI_REFRESH_CACHE_TIME < time ( ) ) { $ fresh = wiki_refresh_cachedcontent ( $ page ) ; $ page = $ fresh [ 'page' ] ; } $ swid = $ this -> subwiki -> id ; $ table = new html_table ( ) ; $ table -> head = array ( get_string ( 'orphaned' , 'wiki' ) . $ OUTPUT -> help_icon ( 'orphaned' , 'wiki' ) ) ; $ table -> attributes [ 'class' ] = 'generalbox table' ; $ table -> data = array ( ) ; $ table -> rowclasses = array ( ) ; if ( $ orphanedpages = wiki_get_orphaned_pages ( $ swid ) ) { foreach ( $ orphanedpages as $ page ) { $ link = wiki_parser_link ( $ page -> title , array ( 'swid' => $ swid ) ) ; $ class = ( $ link [ 'new' ] ) ? 'class="wiki_newentry"' : '' ; $ table -> data [ ] = array ( '<a href="' . $ link [ 'url' ] . '"' . $ class . '>' . format_string ( $ link [ 'content' ] ) . '</a>' ) ; } } else { $ table -> data [ ] = array ( get_string ( 'noorphanedpages' , 'wiki' ) ) ; } echo html_writer :: table ( $ table ) ; }
docstring: Prints the orphaned tab content
docstring_tokens: Prints the orphaned tab content