1 | <?php |
||
5 | class UpdateNoteExtension extends DataExtension |
||
|
|||
6 | { |
||
7 | private static $has_many = array( |
||
8 | 'UpdateNotes' => 'UpdateNote' |
||
9 | ); |
||
10 | |||
11 | private static $seconds_grace = 600; |
||
12 | |||
13 | private static $latest_limit = 600; |
||
14 | |||
15 | private static $_run_once_only = array(); |
||
16 | |||
17 | /** |
||
18 | * Event handler called after writing to the database. |
||
19 | */ |
||
20 | public function onAfterWrite() |
||
57 | |||
58 | /** |
||
59 | * Update Fields |
||
60 | * @return FieldList |
||
61 | */ |
||
62 | public function updateCMSFields(FieldList $fields) |
||
78 | |||
79 | /** |
||
80 | * Event handler called before deleting from the database. |
||
81 | */ |
||
82 | public function onBeforeDelete() |
||
88 | |||
89 | |||
90 | public function LatestUpdateNotes() |
||
95 | } |
||
96 |
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.