SproutCMS

This is the code documentation for the SproutCMS project

function viewSpecificRev()

Displays a specific revision of a page.

Usage

void $PageController->viewSpecificRev ( int $page_id , int $rev_id [, string $approval_code ] );

Arguments

  1. int $page_id
    The ID of the page to display
  2. int $rev_id
    The ID of the revision to display.
           The revision must be live, or the user must be an administrator,
           or the correct approval_code for the revision must be provided.
  3. string $approval_code = ''
    Code to view the revision without authentication, e.g. via emailed link.
           If not provided, the revision must be live, or the user must be logged in as an operator.

Return value

  • void