2014-05-11 21:23:03 +02:00
|
|
|
<?php
|
2017-01-25 13:27:11 +01:00
|
|
|
|
|
|
|
namespace Colymba\BulkUpload;
|
|
|
|
|
|
|
|
use Colymba\BulkUpload\BulkUploader;
|
|
|
|
use SilverStripe\Dev\Deprecation;
|
|
|
|
|
2014-05-11 21:23:03 +02:00
|
|
|
/**
|
2015-12-15 13:08:57 +01:00
|
|
|
* Legacy GridFieldBulkImageUpload component.
|
2014-05-11 21:23:03 +02:00
|
|
|
*
|
2017-01-25 13:27:11 +01:00
|
|
|
* @deprecated 2.0 "GridFieldBulkImageUpload" is deprecated, use {@link BulkUploader} class instead.
|
2014-05-11 21:23:03 +02:00
|
|
|
*
|
|
|
|
* @author colymba
|
|
|
|
*/
|
2017-01-25 13:27:11 +01:00
|
|
|
class GridFieldBulkImageUpload extends BulkUploader
|
2014-05-11 21:23:03 +02:00
|
|
|
{
|
2015-12-15 13:08:57 +01:00
|
|
|
/**
|
2017-01-25 13:27:11 +01:00
|
|
|
* Component constructor.
|
|
|
|
*
|
|
|
|
* @deprecated 2.0 "GridFieldBulkImageUpload" is deprecated, use {@link BulkUploader} class instead.
|
|
|
|
*
|
|
|
|
* @param string $fileRelationName
|
|
|
|
*/
|
|
|
|
public function __construct($fileRelationName = null)
|
|
|
|
{
|
|
|
|
Deprecation::notice(
|
|
|
|
'2.0',
|
|
|
|
'"GridFieldBulkImageUpload" is deprecated, use "BulkUploader" class instead.'
|
|
|
|
);
|
2015-12-15 13:08:57 +01:00
|
|
|
|
2017-01-25 13:27:11 +01:00
|
|
|
return new BulkUploader($fileRelationName);
|
|
|
|
}
|
2015-12-15 13:08:57 +01:00
|
|
|
}
|