mirror of
https://github.com/silverstripe/silverstripe-versionfeed
synced 2024-10-22 09:05:31 +00:00
API Remove deprecated code (#78)
This commit is contained in:
parent
a1eac8de23
commit
a753712806
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
namespace SilverStripe\VersionFeed;
|
namespace SilverStripe\VersionFeed;
|
||||||
|
|
||||||
use SilverStripe\Dev\Deprecation;
|
|
||||||
use SilverStripe\CMS\Model\SiteTreeExtension;
|
use SilverStripe\CMS\Model\SiteTreeExtension;
|
||||||
use SilverStripe\Core\Config\Config;
|
use SilverStripe\Core\Config\Config;
|
||||||
use SilverStripe\Forms\CheckboxField;
|
use SilverStripe\Forms\CheckboxField;
|
||||||
@ -169,26 +168,6 @@ class VersionFeed extends SiteTreeExtension
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Compile a list of changes to the current page, excluding non-published and explicitly secured versions.
|
|
||||||
*
|
|
||||||
* @deprecated 2.0.0 Use VersionFeed::getDiffList() instead
|
|
||||||
*
|
|
||||||
* @param int $highestVersion Top version number to consider.
|
|
||||||
* @param boolean $fullHistory Set to true to get the full change history, set to false for a single diff.
|
|
||||||
* @param int $limit Limit to the amount of items returned.
|
|
||||||
*
|
|
||||||
* @returns ArrayList List of cleaned records.
|
|
||||||
*/
|
|
||||||
public function getDiffedChanges($highestVersion = null, $fullHistory = true, $limit = 100)
|
|
||||||
{
|
|
||||||
Deprecation::notice('2.0.0', 'Use VersionFeed::getDiffList() instead');
|
|
||||||
return $this->getDiffList(
|
|
||||||
$highestVersion,
|
|
||||||
$fullHistory ? $limit : 1
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function updateSettingsFields(FieldList $fields)
|
public function updateSettingsFields(FieldList $fields)
|
||||||
{
|
{
|
||||||
if (!$this->owner->config()->get('changes_enabled')) {
|
if (!$this->owner->config()->get('changes_enabled')) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user