mirror of
https://github.com/silverstripe/silverstripe-versionfeed
synced 2024-10-22 11:05:31 +02:00
Merge pull request #119 from creative-commoners/pulls/4/replace-extension-subclasses
API Replace Extension subclasses
This commit is contained in:
commit
925b4f534e
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
namespace SilverStripe\VersionFeed;
|
namespace SilverStripe\VersionFeed;
|
||||||
|
|
||||||
use SilverStripe\CMS\Model\SiteTreeExtension;
|
|
||||||
use SilverStripe\Core\Config\Config;
|
use SilverStripe\Core\Config\Config;
|
||||||
use SilverStripe\Forms\CheckboxField;
|
use SilverStripe\Forms\CheckboxField;
|
||||||
use SilverStripe\Forms\FieldGroup;
|
use SilverStripe\Forms\FieldGroup;
|
||||||
@ -13,12 +12,13 @@ use SilverStripe\ORM\FieldType\DBField;
|
|||||||
use SilverStripe\SiteConfig\SiteConfig;
|
use SilverStripe\SiteConfig\SiteConfig;
|
||||||
use SilverStripe\View\Parsers\HtmlDiff;
|
use SilverStripe\View\Parsers\HtmlDiff;
|
||||||
use SilverStripe\CMS\Model\SiteTree;
|
use SilverStripe\CMS\Model\SiteTree;
|
||||||
|
use SilverStripe\Core\Extension;
|
||||||
use SilverStripe\Versioned\Versioned_Version;
|
use SilverStripe\Versioned\Versioned_Version;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @extends Extension<SiteTree&static>
|
* @extends Extension<SiteTree&static>
|
||||||
*/
|
*/
|
||||||
class VersionFeed extends SiteTreeExtension
|
class VersionFeed extends Extension
|
||||||
{
|
{
|
||||||
private static $db = array(
|
private static $db = array(
|
||||||
'PublicHistory' => 'Boolean(true)'
|
'PublicHistory' => 'Boolean(true)'
|
||||||
|
@ -6,15 +6,15 @@ use SilverStripe\Core\Config\Config;
|
|||||||
use SilverStripe\Forms\CheckboxField;
|
use SilverStripe\Forms\CheckboxField;
|
||||||
use SilverStripe\Forms\FieldGroup;
|
use SilverStripe\Forms\FieldGroup;
|
||||||
use SilverStripe\Forms\FieldList;
|
use SilverStripe\Forms\FieldList;
|
||||||
use SilverStripe\ORM\DataExtension;
|
use SilverStripe\Core\Extension;
|
||||||
use SilverStripe\SiteConfig\SiteConfig;
|
use SilverStripe\SiteConfig\SiteConfig;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allows global configuration of all changes
|
* Allows global configuration of all changes
|
||||||
*
|
*
|
||||||
* @extends DataExtension<SiteConfig>
|
* @extends Extension<SiteConfig>
|
||||||
*/
|
*/
|
||||||
class VersionFeedSiteConfig extends DataExtension
|
class VersionFeedSiteConfig extends Extension
|
||||||
{
|
{
|
||||||
private static $db = array(
|
private static $db = array(
|
||||||
'AllChangesEnabled' => 'Boolean(true)'
|
'AllChangesEnabled' => 'Boolean(true)'
|
||||||
|
Loading…
Reference in New Issue
Block a user