1 | <?php |
||
7 | class RecordFileField extends POSTFileEntryPoint { |
||
8 | |||
9 | protected $_URL = '$module/$record/file/$field'; |
||
10 | |||
11 | /** |
||
12 | * @inheritdoc |
||
13 | */ |
||
14 | protected $_REQUIRED_DATA = array( |
||
15 | 'format', |
||
16 | 'delete_if_fails', |
||
17 | 'oauth_token' |
||
18 | ); |
||
19 | |||
20 | /** |
||
21 | * Allow for shorthand calling of attachFile method. |
||
22 | * Users can simply submit the File in via string, or pass the filename => path. Options must be configured before shorthand works completely |
||
23 | * @param mixed $data |
||
24 | * @return array|mixed |
||
25 | */ |
||
26 | protected function configureData($data){ |
||
56 | |||
57 | /** |
||
58 | * Configure the filepath to have an @ symbol in front if one is not found |
||
59 | * @param string $value |
||
60 | * @return string |
||
61 | */ |
||
62 | protected function setFileFieldValue($value){ |
||
68 | |||
69 | } |