| 1 | <?php |
||
| 4 | class CMSEditLinkField extends ReadonlyField |
||
|
|
|||
| 5 | { |
||
| 6 | protected $linkedObject = ''; |
||
| 7 | |||
| 8 | /** |
||
| 9 | * |
||
| 10 | * @param string $name e.g. MyLinkedObjectID |
||
| 11 | * @param string $title e.g. My Fancy Title |
||
| 12 | * @param DataObject $linkedObject e.g. $this->MyLinkedObjectID() |
||
| 13 | * @param string $methodOrVariable (OPTIONAL) - e.g. MyFullTitle |
||
| 14 | */ |
||
| 15 | public function __construct($name, $title, $linkedObject, $methodOrVariable = 'getTitle') |
||
| 36 | |||
| 37 | } |
||
| 38 |
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.