API Use new names for renamed classes (#307)

This commit is contained in:
Guy Sartorelli 2024-09-23 14:41:51 +12:00 committed by GitHub
parent c889ec1534
commit 956cf234ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 28 additions and 28 deletions

View File

@ -11,7 +11,7 @@ use SilverStripe\Forms\FormAction;
use SilverStripe\Forms\LiteralField;
use SilverStripe\Forms\ToggleCompositeField;
use SilverStripe\ORM\DataObject;
use SilverStripe\View\ArrayData;
use SilverStripe\Model\ArrayData;
use SilverStripe\View\Requirements;
/**
@ -24,7 +24,7 @@ class EditHandler extends Handler
/**
* URL segment used to call this handler
* If none given, @BulkManager will fallback to the Unqualified class name
*
*
* @var string
*/
private static $url_segment = 'edit';
@ -53,14 +53,14 @@ class EditHandler extends Handler
/**
* Front-end label for this handler's action
*
*
* @var string
*/
protected $label = 'Edit';
/**
* Front-end icon path for this handler's action.
*
*
* @var string
*/
protected $icon = '';
@ -68,22 +68,22 @@ class EditHandler extends Handler
/**
* Extra classes to add to the bulk action button for this handler
* Can also be used to set the button font-icon e.g. font-icon-trash
*
*
* @var string
*/
protected $buttonClasses = 'font-icon-edit';
/**
* Whether this handler should be called via an XHR from the front-end
*
*
* @var boolean
*/
protected $xhr = false;
/**
* Set to true is this handler will destroy any data.
* A warning and confirmation will be shown on the front-end.
*
*
* @var boolean
*/
protected $destructive = false;

View File

@ -7,7 +7,7 @@ use SilverStripe\Control\RequestHandler;
use SilverStripe\Forms\GridField\GridFieldDetailForm;
use SilverStripe\Forms\GridField\GridFieldDetailForm_ItemRequest;
use SilverStripe\ORM\DataList;
use SilverStripe\View\ArrayData;
use SilverStripe\Model\ArrayData;
use SilverStripe\Forms\GridField\GridField;
/**
@ -22,7 +22,7 @@ class Handler extends RequestHandler
/**
* URL segment used to call this handler
* If none given, @BulkManager will fallback to the Unqualified class name
*
*
* @var string
*/
private static $url_segment = null;
@ -43,14 +43,14 @@ class Handler extends RequestHandler
/**
* Front-end label for this handler's action
*
*
* @var string
*/
protected $label = 'Action';
/**
* Front-end icon path for this handler's action.
*
*
* @var string
*/
protected $icon = '';
@ -58,22 +58,22 @@ class Handler extends RequestHandler
/**
* Extra classes to add to the bulk action button for this handler
* Can also be used to set the button font-icon e.g. font-icon-trash
*
*
* @var string
*/
protected $buttonClasses = '';
/**
* Whether this handler should be called via an XHR from the front-end
*
*
* @var boolean
*/
protected $xhr = true;
/**
* Set to true is this handler will destroy any data.
* A warning and confirmation will be shown on the front-end.
*
*
* @var boolean
*/
protected $destructive = false;
@ -109,7 +109,7 @@ class Handler extends RequestHandler
/**
* Set if hanlder performs destructive actions
*
*
* @param boolean destructive If true, a warning will be shown on the front-end
* @return RequestHandler
*/
@ -118,10 +118,10 @@ class Handler extends RequestHandler
$this->destructive = $destructive;
return $this;
}
/**
* True if the hanlder performs destructive actions
*
*
* @return boolean
*/
public function getDestructive()
@ -131,11 +131,11 @@ class Handler extends RequestHandler
/**
* Set if handler is called via XHR
*
*
* @param boolean xhr If true the handler will be called via an XHR from front-end
* @return RequestHandler
*/
public function setXhr($xhr)
{
$this->xhr = $xhr;

View File

@ -14,7 +14,7 @@ use SilverStripe\Forms\GridField\GridField_ColumnProvider;
use SilverStripe\Forms\GridField\GridField_HTMLProvider;
use SilverStripe\Forms\GridField\GridField_URLHandler;
use SilverStripe\ORM\DataObject;
use SilverStripe\View\ArrayData;
use SilverStripe\Model\ArrayData;
use SilverStripe\View\Requirements;
use SilverStripe\Control\Controller;
@ -290,7 +290,7 @@ class BulkManager implements GridField_HTMLProvider, GridField_ColumnProvider, G
->addExtraClass('bulkActionName no-change-track form-group--no-label')
->setAttribute('id', '')
->setEmptyString(_t('SilverStripe\Admin\LeftAndMain.DropdownBatchActionsDefault', 'Choose an action...'));
$templateData = array(
'Menu' => $dropDownActionsList->FieldHolder(),

View File

@ -4,9 +4,9 @@ namespace Colymba\BulkTools;
use SilverStripe\Control\HTTPResponse;
use SilverStripe\Forms\GridField\GridField;
use SilverStripe\ORM\ArrayList;
use SilverStripe\Model\List\ArrayList;
use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\SS_List;
use SilverStripe\Model\List\SS_List;
use SilverStripe\View\HTML;
/**

View File

@ -3,7 +3,7 @@
namespace Colymba\BulkUpload;
use SilverStripe\ORM\DataObject;
use SilverStripe\View\ArrayData;
use SilverStripe\Model\ArrayData;
use SilverStripe\View\Requirements;
use SilverStripe\Control\Controller;