WebbuildersGroup\VersionedHelpers\Tests\TestObjects\VersionedModifiedTestObj
Synopsis
class VersionedModifiedTestObj
extends DataObject
implements
TestOnly
{
- // members
- private static array $db = ;
- private static array $has_many = ;
- private static array $extensions = ;
- private static array $owns = ;
- private static string $table_name = 'VersionedModifiedTestObj';
- // methods
- public void stagesDiffer()
- public bool isModifiedOnDraft()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Implements
- SilverStripe\Dev\TestOnly
Members
private
- $db
- $extensions
- $has_many
- $owns
- $table_name
Methods
public
- isModifiedOnDraft() — Compares current draft with live version, and returns true if these versions differ, meaning there have been unpublished changes to the draft site.
- stagesDiffer() — Compare two stages to see if they're different. Only checks the version numbers, not the actual content.