1 | <?php |
||
17 | class CloudImageCachedStore extends DataObject |
||
18 | { |
||
19 | private static $db = array( |
||
|
|||
20 | 'Filename' => 'Varchar(255)', |
||
21 | 'CloudStatus' => "Enum('Local,Live,Error','Local')", |
||
22 | 'CloudSize' => 'Int', |
||
23 | 'CloudMetaJson' => 'Text', // saves any bucket or file-type specific information |
||
24 | ); |
||
25 | |||
26 | private static $has_one = array( |
||
27 | 'Source' => 'CloudImage', |
||
28 | ); |
||
29 | |||
30 | private static $indexes = array( |
||
31 | 'Filename' => true, |
||
32 | ); |
||
33 | |||
34 | |||
35 | /** |
||
36 | * Constructs an image record that can be used with this meta data |
||
37 | * @return CloudImageCached |
||
38 | */ |
||
39 | public function getCloudImageCached() |
||
47 | } |
||
48 |