Skip to content

Quinn-Interactive/silverstripe-dataobjecthistory

 
 

Repository files navigation

Silverstripe dataobjecthistory

Adds a history tab to dataobjects

Installation

Composer is the recommended way of installing Silverstripe modules.

composer require gorriecoe/silverstripe-dataobjecthistory

Requirements

  • silverstripe/framework ^5.0
  • symbiote/silverstripe-gridfieldextensions ^4.0

Author

Maintainers

Example

<?php

use SilverStripe\Versioned\Versioned;
use gorriecoe\DataObjectHistory\Extension\DataObjectHistory;

class MyObject extends DataObject
{
    private static $extensions = [
        Versioned::class . '.versioned',
        DataObjectHistory::class
    ];

    public function getCMSFields()
    {
        $fields = FieldList::create();
        ...
        $this->extend('updateCMSFields', $fields); // Required
        return $fields;
    }
}

Version history

  • 3.0.0
    • This release is by Quinn Interactive
    • Now follows PSR4
    • Namespaces have changed from lowercase plural to uppercase singular. This is a breaking change, so we have incremented to version 3.
      • gorriecoe\DataObjectHistory\extensionsgorriecoe\DataObjectHistory\Extension
      • gorriecoe\DataObjectHistory\formsgorriecoe\DataObjectHistory\Form

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%