1 | <?php |
||
14 | class PDFUploadField extends UploadField |
||
|
|||
15 | { |
||
16 | private static $pdf_folder_name = "pdfs"; |
||
17 | /** |
||
18 | * @param string $name |
||
19 | * @param string $title |
||
20 | * @param SS_List $items If no items are defined, the field will try to auto-detect an existing relation on |
||
21 | * |
||
22 | * @link $record}, with the same name as the field name. |
||
23 | * |
||
24 | * @param string $folderName |
||
25 | * |
||
26 | * @return ReportUploadField |
||
27 | */ |
||
28 | public function __construct( |
||
52 | } |
||
53 |
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.