MINOR: Updated methods which expect a DataObjectSet to accept an SS_List.

This commit is contained in:
ajshort 2011-05-03 12:17:02 +10:00
parent b034832152
commit 62d86bb18c
2 changed files with 5 additions and 5 deletions

View File

@ -10,7 +10,7 @@ class CMSBatchAction_Publish extends CMSBatchAction {
return _t('CMSBatchActions.PUBLISH_PAGES', 'Publish');
}
function run(DataObjectSet $pages) {
function run(SS_List $pages) {
return $this->batchaction($pages, 'doPublish',
_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');
}
function run(DataObjectSet $pages) {
function run(SS_List $pages) {
return $this->batchaction($pages, 'doUnpublish',
_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');
}
function run(DataObjectSet $pages) {
function run(SS_List $pages) {
$status = array(
'modified'=>array(),
'deleted'=>array(),
@ -98,7 +98,7 @@ class CMSBatchAction_DeleteFromLive extends CMSBatchAction {
}
function run(DataObjectSet $pages) {
function run(SS_List $pages) {
$status = array(
'modified'=>array(),
'deleted'=>array()

2
code/controller/AssetAdmin.php Executable file → Normal file
View File

@ -520,7 +520,7 @@ class AssetAdmin_DeleteBatchAction extends CMSBatchAction {
return _t('AssetAdmin_DeleteBatchAction.TITLE', 'Delete folders');
}
function run(DataObjectSet $records) {
function run(SS_List $records) {
$status = array(
'modified'=>array(),
'deleted'=>array()