Function RevisionEngineDatabase->add_revision
Definitions
sources/revisions_engine_database.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 |
---|---|---|---|---|---|
$resource_type | string | required parameter | N/A | N/A | Resource type |
$resource_id | string | required parameter | N/A | N/A | Resource ID |
$category_id | string | required parameter | N/A | N/A | Category ID (e.g. a page or a topic). May be the same as $resource_id if the revision is for the category itself. |
$original_title | string | required parameter | N/A | N/A | Title before revision (of the resource being edited, not the category) (blank: very common, no title) |
$original_text | string | required parameter | N/A | N/A | Text before revision |
$original_content_owner | MEMBER | required parameter | N/A | N/A | Owner of the content (gathered so if deleted we can still see some meta context for this resource) |
$original_content_timestamp | TIME | required parameter | N/A | N/A | Original timestamp of the content (gathered so if deleted we can still see some meta context for this resource) |
$log_id | ?AUTO_LINK | required parameter | N/A | N/A | Log ID (null: no ID, meaning actually we cannot save a revision at all) |