1 | <?php |
||
12 | class CMSPageEditController extends CMSMain { |
||
|
|||
13 | |||
14 | private static $url_segment = 'pages/edit'; |
||
15 | |||
16 | private static $url_rule = '/$Action/$ID/$OtherID'; |
||
17 | |||
18 | private static $url_priority = 41; |
||
19 | |||
20 | private static $required_permission_codes = 'CMS_ACCESS_CMSMain'; |
||
21 | |||
22 | private static $allowed_actions = array( |
||
23 | 'AddToCampaignForm', |
||
24 | ); |
||
25 | |||
26 | public function getClientConfig() |
||
36 | |||
37 | /** |
||
38 | * Action handler for adding pages to a campaign |
||
39 | * |
||
40 | * @param array $data |
||
41 | * @param Form $form |
||
42 | * @return DBHTMLText|SS_HTTPResponse |
||
43 | */ |
||
44 | public function addtocampaign($data, $form) |
||
64 | |||
65 | /** |
||
66 | * Url handler for add to campaign form |
||
67 | * |
||
68 | * @param SS_HTTPRequest $request |
||
69 | * @return Form |
||
70 | */ |
||
71 | public function AddToCampaignForm($request) |
||
77 | |||
78 | /** |
||
79 | * @param int $id |
||
80 | * @return Form |
||
81 | */ |
||
82 | public function getAddToCampaignForm($id) |
||
109 | |||
110 | } |
||
111 |