Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Use new names for renamed classes #307

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions src/BulkManager/BulkAction/EditHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use SilverStripe\Forms\LiteralField;
use SilverStripe\Forms\ToggleCompositeField;
use SilverStripe\ORM\DataObject;
use SilverStripe\View\ArrayData;
use SilverStripe\Model\ArrayData;
use SilverStripe\View\Requirements;

/**
Expand All @@ -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';
Expand Down Expand Up @@ -53,37 +53,37 @@ 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 = '';

/**
* 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;
Expand Down
28 changes: 14 additions & 14 deletions src/BulkManager/BulkAction/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
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;

/**
Expand All @@ -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;
Expand All @@ -43,37 +43,37 @@ 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 = '';

/**
* 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;
Expand Down Expand Up @@ -109,7 +109,7 @@ public function getConfig()

/**
* Set if hanlder performs destructive actions
*
*
* @param boolean destructive If true, a warning will be shown on the front-end
* @return RequestHandler
*/
Expand All @@ -118,10 +118,10 @@ public function setDestructive($destructive)
$this->destructive = $destructive;
return $this;
}

/**
* True if the hanlder performs destructive actions
*
*
* @return boolean
*/
public function getDestructive()
Expand All @@ -131,11 +131,11 @@ public function getDestructive()

/**
* 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;
Expand Down
4 changes: 2 additions & 2 deletions src/BulkManager/BulkManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
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;

Expand Down Expand Up @@ -290,7 +290,7 @@ public function getHTMLFragments($gridField)
->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(),
Expand Down
4 changes: 2 additions & 2 deletions src/BulkTools/HTTPBulkToolsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

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;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/BulkUploader/BulkUploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading