Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | public function getCMSFields() |
||
22 | { |
||
23 | $fields = parent::getCMSFields(); |
||
24 | $fields->addFieldToTab( |
||
25 | 'Root.Main', |
||
26 | ImageCoordField::create( |
||
27 | $name = 'DataPointImageCoordinates', |
||
28 | $xFieldName = 'XCoordinate', |
||
29 | $yFieldName = 'YCoordinate', |
||
30 | $imageURL = $this->Parent()->DataPointImage()->Link(), |
||
|
|||
31 | $width = $this->Parent()->DataPointImage()->getWidth(), |
||
32 | $height = $this->Parent()->DataPointImage()->getHeight(), |
||
33 | $cssGrid = true |
||
34 | ) |
||
35 | ); |
||
36 | return $fields; |
||
37 | } |
||
39 |