Function RevisionEngineFiles->add_revision

Definitions

sources/revisions_engine_files.php

  • Add a revision.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: N/A

Parameters

Name Type Default Set Range Description
$directory PATH required parameter N/A N/A Directory where revisions are stored
$filename_id string required parameter N/A N/A ID of what is being revised (=base filename, no extension)
$ext string required parameter N/A N/A File extension for revisable files
$original_text ?string required parameter N/A N/A Text before revision (null: work out from disk)
$original_timestamp ?TIME required parameter N/A N/A The creation timestamp for what was just replaced (null: work out from disk)