mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
API Rename DMSDocument::getFileName to getFilename
This commit is contained in:
parent
6b63f738d7
commit
14071eee3c
@ -511,7 +511,7 @@ class DMSDocument extends DataObject implements DMSDocumentInterface
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFileName()
|
||||
public function getFilename()
|
||||
{
|
||||
if ($this->getField('Filename')) {
|
||||
return $this->getField('Filename');
|
||||
|
@ -33,6 +33,7 @@ this process.
|
||||
* `DMSDocument::addTag`, `::getTagsList`, `::removeTag` and `::removeAllTags` removed from the `DMSDocument` and `DMSDocumentInterface`. Please use the ORM relationship created by applying the `DMSDocumentTaxonomyExtension` extension to `DMSDocument` instead.
|
||||
* `DMSInterface::getByTag` removed from `DMSInterface` and `DMS`. Use ORM relationships from applying `DMSDocumentTaxonomyExtension` to `DMSDocument` instead.
|
||||
* `DMSGridFieldDeleteAction` removed
|
||||
* `DMSDocument::getFileName` renamed to `DMSDocument::getFilename` for consistency
|
||||
|
||||
## Template changes
|
||||
|
||||
|
@ -254,7 +254,7 @@ class DMSDocumentTest extends SapphireTest
|
||||
Config::inst()->update('DMS', 'folder_name', 'assets/_unit-tests');
|
||||
|
||||
$document = DMS::inst()->storeDocument('dms/tests/DMS-test-lorum-file.pdf');
|
||||
$filename = $document->getStorageFolder() . '/' . $document->getFileName();
|
||||
$filename = $document->getStorageFolder() . '/' . $document->getFilename();
|
||||
|
||||
$this->assertTrue(file_exists($filename));
|
||||
$document->delete();
|
||||
|
Loading…
Reference in New Issue
Block a user