SproutCMS

This is the code documentation for the SproutCMS project

function logEdit()

Logs an edit action. This is a wrapper for Controller::logAction

Usage

int $Controller->logEdit ( string $table , int $record_id , array $data );

Arguments

  1. string $table
    The table which had data modified by the query
  2. int $record_id
    The id of the edited record
  3. array $data
    Pre-update data, used to build a diff

Exceptions thrown

  • QueryException

Return value

  • int
    ID of the record inserted into the history_items table