1 | <?php |
||
6 | class DataObjectSortBaseClass extends Controller implements PermissionProvider |
||
|
|||
7 | { |
||
8 | private static $allowed_actions = array( |
||
9 | "show" => 'DATA_OBJECT_SORT_AND_EDIT_PERMISSION' |
||
10 | ); |
||
11 | |||
12 | /** |
||
13 | * Permission for user management. |
||
14 | * |
||
15 | * @var string |
||
16 | */ |
||
17 | const CAN_DO_STUFF = 'DATA_OBJECT_SORT_AND_EDIT_PERMISSION'; |
||
18 | |||
19 | public function providePermissions() |
||
36 | |||
37 | |||
38 | public function init() |
||
46 | |||
47 | public function show() |
||
51 | |||
52 | |||
53 | /** |
||
54 | * |
||
55 | * @return string |
||
56 | */ |
||
57 | protected function SecureFieldToBeUpdated() |
||
77 | |||
78 | /** |
||
79 | * |
||
80 | * @return string |
||
81 | */ |
||
82 | protected function SecureTableToBeUpdated() |
||
95 | |||
96 | |||
97 | /** |
||
98 | * |
||
99 | * @return int |
||
100 | */ |
||
101 | protected function SecureRecordToBeUpdated() |
||
112 | |||
113 | |||
114 | /** |
||
115 | * |
||
116 | * |
||
117 | * @param DataObject $obj [description] |
||
118 | * @param string $fieldName [description] |
||
119 | * @return FormField |
||
120 | */ |
||
121 | protected function getFormField($obj, $fieldName) |
||
128 | |||
129 | /** |
||
130 | * |
||
131 | * @return string |
||
132 | */ |
||
133 | protected function HumanReadableTableName() |
||
137 | |||
138 | /** |
||
139 | * |
||
140 | * @return string |
||
141 | */ |
||
142 | public function Link($action = null) |
||
150 | |||
151 | public function permissionFailureStandard() |
||
155 | } |
||
156 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.