mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
API CHANGE Removed unused LeftAndMain->callPageMethod(), please use RequestHandler for this instead.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92746 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
44e3966d96
commit
6e200916eb
@ -38,7 +38,6 @@ class LeftAndMain extends Controller {
|
|||||||
'index',
|
'index',
|
||||||
'ajaxupdateparent',
|
'ajaxupdateparent',
|
||||||
'ajaxupdatesort',
|
'ajaxupdatesort',
|
||||||
'callPageMethod',
|
|
||||||
'getitem',
|
'getitem',
|
||||||
'getsubtree',
|
'getsubtree',
|
||||||
'myprofile',
|
'myprofile',
|
||||||
@ -1052,17 +1051,6 @@ JS;
|
|||||||
return MCE_ROOT;
|
return MCE_ROOT;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Use this as an action handler for custom CMS buttons.
|
|
||||||
*/
|
|
||||||
function callPageMethod($data, $form) {
|
|
||||||
$methodName = $form->buttonClicked()->extraData();
|
|
||||||
$record = $this->currentPage();
|
|
||||||
if(!$record) return false;
|
|
||||||
|
|
||||||
return $record->$methodName($data, $form);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register the given javascript file as required in the CMS.
|
* Register the given javascript file as required in the CMS.
|
||||||
* Filenames should be relative to the base, eg, SAPPHIRE_DIR . '/javascript/loader.js'
|
* Filenames should be relative to the base, eg, SAPPHIRE_DIR . '/javascript/loader.js'
|
||||||
|
Loading…
Reference in New Issue
Block a user