Conditions | 5 |
Paths | 6 |
Total Lines | 19 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function updateSettingsFields(FieldList $fields) |
||
13 | { |
||
14 | if ($this->owner->hasMethod('getHowToMakeThisTemplateWorkArray')) { |
||
15 | $array = $this->owner->getHowToMakeThisTemplateWorkArray(); |
||
16 | if (is_array($array) && count($array)) { |
||
17 | $fields->addFieldToTab("Root.Help", new LiteralField( |
||
18 | "HowToMakeThisPageWork", |
||
19 | '<h3 id="HowToMakeThisPageWorkHeader">'._t("TemplateoverviewPageDecorator.HOWTOMAKEITWORKHEADER", "How to make this page work").'</h3>' |
||
20 | .'<ul id="HowToMakeThisPageWorkList"><li>'.implode("</li><li>", $array).'</li></ul>' |
||
21 | )); |
||
22 | } |
||
23 | } |
||
24 | $obj = TemplateoverviewDescription::get() |
||
25 | ->filter(array("ClassNameLink" => $this->owner->ClassName)) |
||
26 | ->First(); |
||
27 | if ($obj) { |
||
28 | $fields->addFieldToTab("Root.Help", new LiteralField("MoreHelp", $obj->renderWith("TemplateoverviewPageCMSDetail"))); |
||
29 | } |
||
30 | } |
||
31 | } |
||
32 |
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.