Function Hook_Health_Check->get_page_content

Definitions

sources/health_check.php

  • Download a page by page-link, but with support for directly accessing Comcode pages without needing HTTP.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$page_link string No No : N/A N/A Page-link
$inner_screen_only boolean No No False N/A N/A Whether to try and restrict to just an inner Comcode screen

Returns

  • Page content (null: no content was returned)
  • Type: ?string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Download a page by page-link, but with support for directly accessing Comcode pages without needing HTTP.
 *
 * @param  string $page_link Page-link
 * @param  boolean $inner_screen_only Whether to try and restrict to just an inner Comcode screen
 * @return ?string Page content (null: no content was returned)
 */

protected function get_page_content(string $page_link = ':', bool $inner_screen_only = false) : ?string