| 1 | <?php |
||
| 12 | class MessageBoxField extends LiteralField |
||
|
|
|||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $classes = 'message'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | public function addCSSClass($CSSClass) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * adjusts the return to include the required classes. |
||
| 31 | * |
||
| 32 | * @param array $properties |
||
| 33 | * |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | public function FieldHolder($properties = array()) |
||
| 50 | } |
||
| 51 |
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.