SproutCMS

This is the code documentation for the SproutCMS project

function lastModified()

Return the last-modified date of the specified page.
Returns NULL on error.

If you don't provide a page-id, uses the id of the
Navigation::matchedNode()

The date is formatted using the php date function.
The default date format is "d/m/Y".

Usage

null|string Page::lastModified ( [ int $page_id [, string $date_format ]] );

Arguments

  1. int $page_id = NULL
    The page to get the last-modified date of
  2. string $date_format = d/m/Y
    The date format to return the date in

Return value

  • string
    Date
  • null
    If page could not be found