1 | <?php |
||
5 | class FAQFolder extends Page implements RenderableAsPortlet { |
||
|
|||
6 | |||
7 | static $allowed_children = array( 'FAQFolder', 'FAQ' ); |
||
8 | |||
9 | static $has_one = array( |
||
10 | 'MainImage' => 'Image' |
||
11 | ); |
||
12 | |||
13 | function getCMSFields() { |
||
21 | |||
22 | |||
23 | public function getPortletTitle() { |
||
26 | |||
27 | |||
28 | // FIXME - make this more efficient |
||
29 | public function getPortletImage() { |
||
38 | |||
39 | |||
40 | |||
41 | public function getPortletCaption() { |
||
44 | |||
45 | } |
||
46 | |||
52 |
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.