API CHANGE Removed CMSBatchAction->getDoingText(), the same information can be visualized via a spinner button without this overhead

This commit is contained in:
Ingo Schommer 2011-03-16 10:59:19 +13:00
parent 495e15be9f
commit a99d7b0b1d
3 changed files with 0 additions and 17 deletions

View File

@ -510,9 +510,6 @@ class AssetAdmin_DeleteBatchAction extends CMSBatchAction {
// _t('AssetAdmin_left.ss.SELECTTODEL','Select the folders that you want to delete and then click the button below')
return _t('AssetAdmin_DeleteBatchAction.TITLE', 'Delete folders');
}
function getDoingText() {
return _t('AssetAdmin_DeletingBatchAction.TITLE', 'Deleting folders');
}
function run(DataObjectSet $records) {
$status = array(

View File

@ -139,9 +139,6 @@ class CMSBatchAction_Publish extends CMSBatchAction {
function getActionTitle() {
return _t('CMSBatchActions.PUBLISH_PAGES', 'Publish');
}
function getDoingText() {
return _t('CMSBatchActions.PUBLISHING_PAGES', 'Publishing selected pages');
}
function run(DataObjectSet $pages) {
return $this->batchaction($pages, 'doPublish',
@ -164,9 +161,6 @@ class CMSBatchAction_Unpublish extends CMSBatchAction {
function getActionTitle() {
return _t('CMSBatchActions.UNPUBLISH_PAGES', 'Un-publish');
}
function getDoingText() {
return _t('CMSBatchActions.UNPUBLISHING_PAGES', 'Un-publishing selected pages');
}
function run(DataObjectSet $pages) {
return $this->batchaction($pages, 'doUnpublish',
@ -185,9 +179,6 @@ class CMSBatchAction_Delete extends CMSBatchAction {
function getActionTitle() {
return _t('CMSBatchActions.DELETE_DRAFT_PAGES', 'Delete from draft site');
}
function getDoingText() {
return _t('CMSBatchActions.DELETING_DRAFT_PAGES', 'Deleting selected pages from the draft site');
}
function run(DataObjectSet $pages) {
$status = array(
@ -235,9 +226,6 @@ class CMSBatchAction_DeleteFromLive extends CMSBatchAction {
function getActionTitle() {
return _t('CMSBatchActions.DELETE_PAGES', 'Delete from published site');
}
function getDoingText() {
return _t('CMSBatchActions.DELETING_PAGES', 'Deleting selected pages from the published site');
}
function run(DataObjectSet $pages) {
$status = array(

View File

@ -170,7 +170,6 @@ class CMSBatchActionHandler extends RequestHandler {
* about each batch action:
* - Link
* - Title
* - DoingText
*/
function batchActionList() {
$actions = $this->batchActions();
@ -183,7 +182,6 @@ class CMSBatchActionHandler extends RequestHandler {
$actionDef = new ArrayData(array(
"Link" => Controller::join_links($this->Link(), $urlSegment),
"Title" => $actionObj->getActionTitle(),
"DoingText" => $actionObj->getDoingText(),
));
$actionList->push($actionDef);
}