Turn change tracking ON or OFF
Example
// Enable change tracking
$page->setTrackChanges(true);
// Disable change tracking
$page->setTrackChanges(false);
// Enable change tracking and remember values
$page->setTrackChanges(Wire::trackChangesValues);
$page->setTrackChanges(true);
Usage
// basic usage
$wire->setTrackChanges();
// usage with all arguments
$wire->setTrackChanges($trackChanges = true);
Arguments
Name | Type(s) | Description |
---|---|---|
trackChanges (optional) | bool, int | Specify one of the following:
|
Return value
$this
Object instance it was called from (method supports fluent interface).
API reference based on ProcessWire core version 3.0.236