mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
ENH Update deprecation messages
This commit is contained in:
parent
1f360c9c26
commit
ea92339d8d
@ -2163,7 +2163,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated 5.0 Please use custom logic for this
|
* @deprecated 5.0 Use custom logic instead
|
||||||
* @param $request
|
* @param $request
|
||||||
* @return HTTPResponse|string|void
|
* @return HTTPResponse|string|void
|
||||||
*/
|
*/
|
||||||
|
@ -24,7 +24,7 @@ use SilverStripe\View\ViewableData;
|
|||||||
/**
|
/**
|
||||||
* Legacy CMS History controller. This functionality has been moved to the `silverstripe/versioned-admin` module and
|
* Legacy CMS History controller. This functionality has been moved to the `silverstripe/versioned-admin` module and
|
||||||
* this class will be removed completly in SilverStripe 5.0.0.
|
* this class will be removed completly in SilverStripe 5.0.0.
|
||||||
* @deprecated 4.3.0:5.0.0
|
* @deprecated 4.3.0:5.0.0 Use silverstripe/versioned-admin instead
|
||||||
*/
|
*/
|
||||||
class CMSPageHistoryController extends CMSMain
|
class CMSPageHistoryController extends CMSMain
|
||||||
{
|
{
|
||||||
|
@ -2751,7 +2751,7 @@ class SiteTree extends DataObject implements PermissionProvider, i18nEntityProvi
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated 5.0 use creatableChildPages instead
|
* @deprecated 5.0 Use creatableChildPages() instead
|
||||||
*
|
*
|
||||||
* Gets a list of the page types that can be created under this specific page
|
* Gets a list of the page types that can be created under this specific page
|
||||||
*
|
*
|
||||||
|
@ -7,7 +7,7 @@ use SilverStripe\ORM\DataExtension;
|
|||||||
use SilverStripe\View\SSViewer;
|
use SilverStripe\View\SSViewer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated 4.2..5.0 Link tracking is baked into File class now
|
* @deprecated 4.2..5.0 Use FileLinkTracking instead
|
||||||
* @property File $owner
|
* @property File $owner
|
||||||
*/
|
*/
|
||||||
class SiteTreeFileExtension extends DataExtension
|
class SiteTreeFileExtension extends DataExtension
|
||||||
|
@ -12,8 +12,7 @@ use SilverStripe\Admin\Forms\UsedOnTable;
|
|||||||
use SilverStripe\Versioned\RecursivePublishable;
|
use SilverStripe\Versioned\RecursivePublishable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated 5.0
|
* @deprecated 5.0 Use UsedOnTable instead
|
||||||
* No longer required - superceded by {@see UsedOnTable}
|
|
||||||
*
|
*
|
||||||
* Extension applied to {@see FileFormFactory} to decorate with a "Used on:" information area.
|
* Extension applied to {@see FileFormFactory} to decorate with a "Used on:" information area.
|
||||||
* Uses tracking provided by {@see SiteTreeFileExtension} to generate this.
|
* Uses tracking provided by {@see SiteTreeFileExtension} to generate this.
|
||||||
@ -29,8 +28,7 @@ class SiteTreeFileFormFactoryExtension extends DataExtension
|
|||||||
if (!$tabset) {
|
if (!$tabset) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$class = UsedOnTable::class;
|
Deprecation::notice('5.0', "Use UsedOnTable instead");
|
||||||
Deprecation::notice('5.0', "Use the $class to show this table");
|
|
||||||
|
|
||||||
$usedOnField = UsedOnTable::create('UsedOnTableReplacement');
|
$usedOnField = UsedOnTable::create('UsedOnTableReplacement');
|
||||||
$usedOnField->setRecord($context['Record']);
|
$usedOnField->setRecord($context['Record']);
|
||||||
|
@ -15,7 +15,7 @@ use SilverStripe\ORM\DataList;
|
|||||||
use SilverStripe\ORM\DataObject;
|
use SilverStripe\ORM\DataObject;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated 4.2..5.0 Will be removed in cms 5.0
|
* @deprecated 4.2..5.0 Will be removed without equivalent functionality to replace it
|
||||||
*/
|
*/
|
||||||
class SiteTreeFolderExtension extends DataExtension
|
class SiteTreeFolderExtension extends DataExtension
|
||||||
{
|
{
|
||||||
@ -29,7 +29,7 @@ class SiteTreeFolderExtension extends DataExtension
|
|||||||
/**
|
/**
|
||||||
* Looks for files used in system and create where clause which contains all ID's of files.
|
* Looks for files used in system and create where clause which contains all ID's of files.
|
||||||
*
|
*
|
||||||
* @deprecated 4.2..5.0
|
* @deprecated 4.2..5.0 Will be removed without equivalent functionality to replace it
|
||||||
* @returns string where clause which will work as filter.
|
* @returns string where clause which will work as filter.
|
||||||
*/
|
*/
|
||||||
public function getUnusedFilesListFilter()
|
public function getUnusedFilesListFilter()
|
||||||
|
@ -361,7 +361,7 @@ class VirtualPage extends Page
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated 4.2..5.0
|
* @deprecated 4.2..5.0 Will be removed without equivalent functionality to replace it
|
||||||
*/
|
*/
|
||||||
public function updateImageTracking()
|
public function updateImageTracking()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user