mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
API Add deprecation notices for removed methods in 2.0
This commit is contained in:
parent
eebc603530
commit
61a27b5b6b
@ -27,6 +27,8 @@ class DMSDocumentAddController extends LeftAndMain
|
||||
* Add an array of additional allowed extensions
|
||||
* @static
|
||||
* @param $array
|
||||
*
|
||||
* @deprecated 2.0 Will be removed in future in favour of YAML configuration
|
||||
*/
|
||||
public static function add_allowed_extensions($array = null)
|
||||
{
|
||||
|
@ -18,6 +18,8 @@ class DMSSiteTreeExtension extends DataExtension
|
||||
* Do not show the documents tab on the array of pages set here
|
||||
* @static
|
||||
* @param $mixed Array of page types to not show the Documents tab on
|
||||
*
|
||||
* @deprecated 2.0 Will be removed in favour of YAML configuration
|
||||
*/
|
||||
public static function no_documents_tab($array = array())
|
||||
{
|
||||
@ -36,6 +38,8 @@ class DMSSiteTreeExtension extends DataExtension
|
||||
* still not be shown. If this isn't called, or if it is called with an empty array, all pages will get Document tabs.
|
||||
* @static
|
||||
* @param $array Array of page types to show the Documents tab on
|
||||
*
|
||||
* @deprecated 2.0 Will be removed in favour of YAML configuration
|
||||
*/
|
||||
public static function show_documents_tab($array = array())
|
||||
{
|
||||
@ -132,6 +136,8 @@ class DMSSiteTreeExtension extends DataExtension
|
||||
|
||||
/**
|
||||
* Enforce sorting for frontend
|
||||
*
|
||||
* @deprecated 2.0 Will be removed in future
|
||||
*/
|
||||
public function PageDocuments()
|
||||
{
|
||||
|
@ -23,6 +23,8 @@ interface DMSDocumentInterface
|
||||
* @abstract
|
||||
* @param $pageObject Page object to associate this DMSDocument with
|
||||
* @return null
|
||||
*
|
||||
* @deprecated 2.0 Will be removed in future in favour of document sets
|
||||
*/
|
||||
public function addPage($pageObject);
|
||||
|
||||
@ -32,6 +34,8 @@ interface DMSDocumentInterface
|
||||
* @abstract
|
||||
* @param $pageIDs array of page ids used for the page objects associate this DMSDocument with
|
||||
* @return null
|
||||
*
|
||||
* @deprecated 2.0 Will be removed in future in favour of document sets
|
||||
*/
|
||||
public function addPages($pageIDs);
|
||||
|
||||
@ -47,6 +51,8 @@ interface DMSDocumentInterface
|
||||
* Returns a list of the Page objects associated with this DMSDocument
|
||||
* @abstract
|
||||
* @return DataList
|
||||
*
|
||||
* @deprecated 2.0 Will be removed in future in favour of document sets
|
||||
*/
|
||||
public function getPages();
|
||||
|
||||
@ -54,6 +60,8 @@ interface DMSDocumentInterface
|
||||
* Removes all associated Pages from the DMSDocument
|
||||
* @abstract
|
||||
* @return null
|
||||
*
|
||||
* @deprecated 2.0 Will be removed in future in favour of document sets
|
||||
*/
|
||||
public function removeAllPages();
|
||||
|
||||
|
@ -164,6 +164,8 @@ class DMSDocument extends DataObject implements DMSDocumentInterface
|
||||
* @param SiteTree $pageObject Page object to associate this Document with
|
||||
*
|
||||
* @return DMSDocument
|
||||
*
|
||||
* @deprecated 2.0 Will be removed in future in favour of document sets
|
||||
*/
|
||||
public function addPage($pageObject)
|
||||
{
|
||||
@ -182,6 +184,8 @@ class DMSDocument extends DataObject implements DMSDocumentInterface
|
||||
* @param array $pageIDs
|
||||
*
|
||||
* @return DMSDocument
|
||||
*
|
||||
* @deprecated 2.0 Will be removed in future in favour of document sets
|
||||
*/
|
||||
public function addPages($pageIDs)
|
||||
{
|
||||
@ -203,6 +207,8 @@ class DMSDocument extends DataObject implements DMSDocumentInterface
|
||||
* @param SiteTree $pageObject Page object to remove the association to
|
||||
*
|
||||
* @return DMSDocument
|
||||
*
|
||||
* @deprecated 2.0 Will be removed in future in favour of document sets
|
||||
*/
|
||||
public function removePage($pageObject)
|
||||
{
|
||||
@ -215,6 +221,8 @@ class DMSDocument extends DataObject implements DMSDocumentInterface
|
||||
* @see getPages()
|
||||
*
|
||||
* @return DataList
|
||||
*
|
||||
* @deprecated 2.0 Will be removed in future in favour of document sets
|
||||
*/
|
||||
public function Pages()
|
||||
{
|
||||
@ -228,6 +236,8 @@ class DMSDocument extends DataObject implements DMSDocumentInterface
|
||||
* Returns a list of the Page objects associated with this Document.
|
||||
*
|
||||
* @return DataList
|
||||
*
|
||||
* @deprecated 2.0 Will be removed in future in favour of document sets
|
||||
*/
|
||||
public function getPages()
|
||||
{
|
||||
@ -238,6 +248,8 @@ class DMSDocument extends DataObject implements DMSDocumentInterface
|
||||
* Removes all associated Pages from the DMSDocument
|
||||
*
|
||||
* @return DMSDocument
|
||||
*
|
||||
* @deprecated 2.0 Will be removed in future in favour of document sets
|
||||
*/
|
||||
public function removeAllPages()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user