mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
re-introduce getDocumentSets() as deprecated method to allow patch release
This commit is contained in:
parent
86e01cb6d1
commit
1c226239f4
@ -52,6 +52,19 @@ class DMSSiteTreeExtension extends DataExtension
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get a list of document sets for the owner page
|
||||||
|
*
|
||||||
|
* @deprecated 3.0 Use DocumentSets() instead.
|
||||||
|
*
|
||||||
|
* @return ArrayList
|
||||||
|
*/
|
||||||
|
public function getDocumentSets()
|
||||||
|
{
|
||||||
|
Deprecation::notice('3.0', 'Use DocumentSets() instead');
|
||||||
|
return $this->owner->hasManyComponent('DocumentSets');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a list of all documents from all document sets for the owner page
|
* Get a list of all documents from all document sets for the owner page
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user