1 | <?php |
||
13 | class EE_File_Normalization extends EE_Normalization_Strategy_Base |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * Keep in mind $value_to_normalize should be a FileSubmissionInterface or null, so this shouldn't really do |
||
18 | * much (other than NOT convert it to a string or something). |
||
19 | * @param string $value_to_normalize |
||
20 | * @return FileSubmissionInterface |
||
21 | */ |
||
22 | public function normalize($value_to_normalize) |
||
32 | |||
33 | |||
34 | /** |
||
35 | * This may be called prematurely on submitted data, so we actually don't want to convert it into a string because |
||
36 | * we'll lose all the FileSubmissionInterface data. So prefer to leave it alone. FileSubmissionInterface |
||
37 | * can be cast to a string just fine so it's good as-is. |
||
38 | * |
||
39 | * @param string $normalized_value |
||
40 | * @return string |
||
41 | */ |
||
42 | public function unnormalize($normalized_value) |
||
52 | } |
||
53 |