mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR: Updated methods which expect a DataObjectSet to accept an SS_List.
This commit is contained in:
parent
b034832152
commit
62d86bb18c
@ -10,7 +10,7 @@ class CMSBatchAction_Publish extends CMSBatchAction {
|
|||||||
return _t('CMSBatchActions.PUBLISH_PAGES', 'Publish');
|
return _t('CMSBatchActions.PUBLISH_PAGES', 'Publish');
|
||||||
}
|
}
|
||||||
|
|
||||||
function run(DataObjectSet $pages) {
|
function run(SS_List $pages) {
|
||||||
return $this->batchaction($pages, 'doPublish',
|
return $this->batchaction($pages, 'doPublish',
|
||||||
_t('CMSBatchActions.PUBLISHED_PAGES', 'Published %d pages, %d failures')
|
_t('CMSBatchActions.PUBLISHED_PAGES', 'Published %d pages, %d failures')
|
||||||
);
|
);
|
||||||
@ -32,7 +32,7 @@ class CMSBatchAction_Unpublish extends CMSBatchAction {
|
|||||||
return _t('CMSBatchActions.UNPUBLISH_PAGES', 'Un-publish');
|
return _t('CMSBatchActions.UNPUBLISH_PAGES', 'Un-publish');
|
||||||
}
|
}
|
||||||
|
|
||||||
function run(DataObjectSet $pages) {
|
function run(SS_List $pages) {
|
||||||
return $this->batchaction($pages, 'doUnpublish',
|
return $this->batchaction($pages, 'doUnpublish',
|
||||||
_t('CMSBatchActions.UNPUBLISHED_PAGES', 'Un-published %d pages')
|
_t('CMSBatchActions.UNPUBLISHED_PAGES', 'Un-published %d pages')
|
||||||
);
|
);
|
||||||
@ -50,7 +50,7 @@ class CMSBatchAction_Delete extends CMSBatchAction {
|
|||||||
return _t('CMSBatchActions.DELETE_DRAFT_PAGES', 'Delete from draft site');
|
return _t('CMSBatchActions.DELETE_DRAFT_PAGES', 'Delete from draft site');
|
||||||
}
|
}
|
||||||
|
|
||||||
function run(DataObjectSet $pages) {
|
function run(SS_List $pages) {
|
||||||
$status = array(
|
$status = array(
|
||||||
'modified'=>array(),
|
'modified'=>array(),
|
||||||
'deleted'=>array(),
|
'deleted'=>array(),
|
||||||
@ -98,7 +98,7 @@ class CMSBatchAction_DeleteFromLive extends CMSBatchAction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function run(DataObjectSet $pages) {
|
function run(SS_List $pages) {
|
||||||
$status = array(
|
$status = array(
|
||||||
'modified'=>array(),
|
'modified'=>array(),
|
||||||
'deleted'=>array()
|
'deleted'=>array()
|
||||||
|
2
code/controller/AssetAdmin.php
Executable file → Normal file
2
code/controller/AssetAdmin.php
Executable file → Normal file
@ -520,7 +520,7 @@ class AssetAdmin_DeleteBatchAction extends CMSBatchAction {
|
|||||||
return _t('AssetAdmin_DeleteBatchAction.TITLE', 'Delete folders');
|
return _t('AssetAdmin_DeleteBatchAction.TITLE', 'Delete folders');
|
||||||
}
|
}
|
||||||
|
|
||||||
function run(DataObjectSet $records) {
|
function run(SS_List $records) {
|
||||||
$status = array(
|
$status = array(
|
||||||
'modified'=>array(),
|
'modified'=>array(),
|
||||||
'deleted'=>array()
|
'deleted'=>array()
|
||||||
|
Loading…
Reference in New Issue
Block a user