mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Merged from trunk
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@76879 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
ac95e659f8
commit
292ccddad8
@ -5,8 +5,11 @@
|
|||||||
*
|
*
|
||||||
* <code>
|
* <code>
|
||||||
* CMSMain::register_batch_action('publishitems', new CMSBatchAction('doPublish',
|
* CMSMain::register_batch_action('publishitems', new CMSBatchAction('doPublish',
|
||||||
_t('CMSBatchActions.PUBLISHED_PAGES', 'published %d pages')));
|
* _t('CMSBatchActions.PUBLISHED_PAGES', 'published %d pages')));
|
||||||
* </code>
|
* </code>
|
||||||
|
*
|
||||||
|
* @package cms
|
||||||
|
* @subpackage batchaction
|
||||||
*/
|
*/
|
||||||
abstract class CMSBatchAction extends Object {
|
abstract class CMSBatchAction extends Object {
|
||||||
/**
|
/**
|
||||||
@ -58,6 +61,9 @@ abstract class CMSBatchAction extends Object {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Publish items batch action.
|
* Publish items batch action.
|
||||||
|
*
|
||||||
|
* @package cms
|
||||||
|
* @subpackage batchaction
|
||||||
*/
|
*/
|
||||||
class CMSBatchAction_Publish extends CMSBatchAction {
|
class CMSBatchAction_Publish extends CMSBatchAction {
|
||||||
function getActionTitle() {
|
function getActionTitle() {
|
||||||
@ -76,6 +82,9 @@ class CMSBatchAction_Publish extends CMSBatchAction {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Un-publish items batch action.
|
* Un-publish items batch action.
|
||||||
|
*
|
||||||
|
* @package cms
|
||||||
|
* @subpackage batchaction
|
||||||
*/
|
*/
|
||||||
class CMSBatchAction_Unpublish extends CMSBatchAction {
|
class CMSBatchAction_Unpublish extends CMSBatchAction {
|
||||||
function getActionTitle() {
|
function getActionTitle() {
|
||||||
@ -94,6 +103,9 @@ class CMSBatchAction_Unpublish extends CMSBatchAction {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete items batch action.
|
* Delete items batch action.
|
||||||
|
*
|
||||||
|
* @package cms
|
||||||
|
* @subpackage batchaction
|
||||||
*/
|
*/
|
||||||
class CMSBatchAction_Delete extends CMSBatchAction {
|
class CMSBatchAction_Delete extends CMSBatchAction {
|
||||||
function getActionTitle() {
|
function getActionTitle() {
|
||||||
@ -136,6 +148,9 @@ class CMSBatchAction_Delete extends CMSBatchAction {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete items batch action.
|
* Delete items batch action.
|
||||||
|
*
|
||||||
|
* @package cms
|
||||||
|
* @subpackage batchaction
|
||||||
*/
|
*/
|
||||||
class CMSBatchAction_DeleteFromLive extends CMSBatchAction {
|
class CMSBatchAction_DeleteFromLive extends CMSBatchAction {
|
||||||
function getActionTitle() {
|
function getActionTitle() {
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Special request handler for admin/batchaction
|
* Special request handler for admin/batchaction
|
||||||
|
*
|
||||||
|
* @package cms
|
||||||
|
* @subpackage batchaction
|
||||||
*/
|
*/
|
||||||
class CMSBatchActionHandler extends RequestHandler {
|
class CMSBatchActionHandler extends RequestHandler {
|
||||||
static $batch_actions = array(
|
static $batch_actions = array(
|
||||||
|
@ -17,7 +17,7 @@ class CMSMainTest extends FunctionalTest {
|
|||||||
$response->getBody()
|
$response->getBody()
|
||||||
);
|
);
|
||||||
|
|
||||||
$response = Director::test("admin/cms/batchactions/publish", array('csvIDs' => '1,2', 'ajax' => 1), $session);
|
$response = Director::test("admin/cms/batchactions/publish", array('csvIDs' => '1,2', 'ajax' => 1), $this->session());
|
||||||
$this->assertContains('setNodeTitle(1, \'Page 1\');', $response->getBody());
|
$this->assertContains('setNodeTitle(1, \'Page 1\');', $response->getBody());
|
||||||
$this->assertContains('setNodeTitle(2, \'Page 2\');', $response->getBody());
|
$this->assertContains('setNodeTitle(2, \'Page 2\');', $response->getBody());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user