1 | <?php |
||
11 | class CloudImageMissing extends Image |
||
12 | { |
||
13 | /** @var CloudImage */ |
||
14 | protected $source; |
||
15 | |||
16 | /** @var string - e.g. 1x1 */ |
||
17 | protected $dimensions; |
||
18 | |||
19 | |||
20 | /** |
||
21 | * Create a new cached image. |
||
22 | * |
||
23 | */ |
||
24 | public function __construct($source=null, $args=null) |
||
54 | |||
55 | |||
56 | /** |
||
57 | * @return String |
||
58 | */ |
||
59 | public function getRelativePath() |
||
63 | |||
64 | |||
65 | /** |
||
66 | * Prevent creating new tables for the cached record |
||
67 | * |
||
68 | * @return false |
||
69 | */ |
||
70 | public function requireTable() |
||
74 | |||
75 | |||
76 | /** |
||
77 | * Prevent writing the cached image to the database, but write the store record instead |
||
78 | */ |
||
79 | public function write($showDebug = false, $forceInsert = false, $forceWrite = false, $writeComponents = false) |
||
83 | |||
84 | |||
85 | /** |
||
86 | * Prevent a delete |
||
87 | */ |
||
88 | public function delete() |
||
92 | |||
93 | |||
94 | /** |
||
95 | * @param string $dim - 'string' or 0 (width) or 1 (height) |
||
96 | * @return int|string |
||
97 | */ |
||
98 | public function getDimensions($dim = "string") |
||
107 | } |
||
108 |