1 | <?php |
||
6 | class DataObjectSortBaseClass extends Controller implements PermissionProvider |
||
7 | { |
||
8 | private static $url_handlers = array( |
||
|
|||
9 | '$Action//$ID/$OtherID/$ThirdID/$FourthID/$FifthID' => 'handleAction', |
||
10 | ); |
||
11 | |||
12 | private static $allowed_actions = array( |
||
13 | "show" => 'DATA_OBJECT_SORT_AND_EDIT_PERMISSION' |
||
14 | ); |
||
15 | |||
16 | /** |
||
17 | * Permission for user management. |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | const CAN_DO_STUFF = 'DATA_OBJECT_SORT_AND_EDIT_PERMISSION'; |
||
22 | |||
23 | public function providePermissions() |
||
40 | |||
41 | |||
42 | public function init() |
||
50 | |||
51 | public function show() |
||
55 | |||
56 | |||
57 | /** |
||
58 | * |
||
59 | * @return string |
||
60 | */ |
||
61 | protected function SecureFieldToBeUpdated() |
||
81 | |||
82 | /** |
||
83 | * |
||
84 | * @return string |
||
85 | */ |
||
86 | protected function SecureTableToBeUpdated() |
||
99 | |||
100 | |||
101 | /** |
||
102 | * |
||
103 | * @return int |
||
104 | */ |
||
105 | protected function SecureRecordToBeUpdated() |
||
116 | |||
117 | |||
118 | /** |
||
119 | * |
||
120 | * |
||
121 | * @param DataObject $obj [description] |
||
122 | * @param string $fieldName [description] |
||
123 | * @return FormField |
||
124 | */ |
||
125 | protected function getFormField($obj, $fieldName) |
||
132 | |||
133 | /** |
||
134 | * |
||
135 | * @return string |
||
136 | */ |
||
137 | protected function HumanReadableTableName() |
||
141 | |||
142 | /** |
||
143 | * |
||
144 | * @return string |
||
145 | */ |
||
146 | public function Link($action = null) |
||
154 | |||
155 | public function permissionFailureStandard() |
||
159 | } |
||
160 |