1 | <?php |
||
10 | class AdvertisementStyle extends DataObject |
||
|
|||
11 | { |
||
12 | private static $db = array( |
||
13 | "Title" => "Varchar(100)", |
||
14 | "FileLocation" => "Varchar(100)" |
||
15 | ); |
||
16 | |||
17 | private static $has_many = array( |
||
18 | "Parent" => "SiteTree" |
||
19 | ); |
||
20 | |||
21 | private static $array_of_js_file_options = array(); |
||
22 | |||
23 | private static $fx = array( |
||
24 | "blindX", |
||
25 | "blindY", |
||
26 | "blindZ", |
||
27 | "cover", |
||
28 | "curtainX", |
||
29 | "curtainY", |
||
30 | "fade", |
||
31 | "fadeZoom", |
||
32 | "growX", |
||
33 | "growY", |
||
34 | "none", |
||
35 | "scrollUp", |
||
36 | "scrollDown", |
||
37 | "scrollLeft", |
||
38 | "scrollRight", |
||
39 | "scrollHorz", |
||
40 | "scrollVert", |
||
41 | "shuffle", |
||
42 | "slideX", |
||
43 | "slideY", |
||
44 | "toss", |
||
45 | "turnUp", |
||
46 | "turnDown", |
||
47 | "turnLeft", |
||
48 | "turnRight", |
||
49 | "uncover", |
||
50 | "wipe", |
||
51 | "zoom" |
||
52 | ); |
||
53 | |||
54 | public function requireDefaultRecords() |
||
72 | } |
||
73 |
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.