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

View File

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

View File

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

View File

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