SproutCMS

This is the code documentation for the SproutCMS project

function loadRecord()

Fetches the pre-update record from the database.
Used by the action log system, and disabled if the action log system has been turned off

Usage

bool|array $Controller->loadRecord ( string $table , int $record_id );

Arguments

  1. string $table
    Name of table to load record from
  2. int $record_id
    ID of record to load

Exceptions thrown

  • RowMissingException
    If record doesn't exist

Return value

  • array
    False if not using logging for this controller, else the record row
  • bool
    False if not using logging for this controller, else the record row