1 | <?php |
||
11 | class ModuleRecordFileField extends AbstractPostFileEntryPoint { |
||
12 | |||
13 | /** |
||
14 | * @inheritdoc |
||
15 | */ |
||
16 | protected $_URL = '$module/$record/file/$field'; |
||
17 | |||
18 | /** |
||
19 | * @inheritdoc |
||
20 | */ |
||
21 | protected $_DATA_TYPE = 'array'; |
||
22 | |||
23 | /** |
||
24 | * @inheritdoc |
||
25 | */ |
||
26 | protected $_REQUIRED_DATA = array( |
||
27 | 'format' => 'sugar-html-json', |
||
28 | 'delete_if_fails' => FALSE |
||
29 | ); |
||
30 | |||
31 | /** |
||
32 | * Allow for shorthand calling of attachFile method. |
||
33 | * Users can simply submit the File in via string, or pass the filename => path |
||
34 | * @param $data |
||
35 | * @throws RequiredOptionsException |
||
36 | */ |
||
37 | 2 | protected function configureData($data){ |
|
57 | |||
58 | /** |
||
59 | * Configure the filepath to have an @ symbol in front if one is not found |
||
60 | * @param string $value |
||
61 | * @return string |
||
62 | */ |
||
63 | 1 | protected function setFileFieldValue($value){ |
|
69 | |||
70 | } |