1 | <?php |
||
14 | class AssetAdminFile extends DataExtension |
||
15 | { |
||
16 | /** |
||
17 | * Max width for inserted images |
||
18 | * |
||
19 | * @config |
||
20 | * @var int |
||
21 | */ |
||
22 | private static $insert_width = 600; |
||
|
|||
23 | |||
24 | /** |
||
25 | * Max height for inserted images |
||
26 | * |
||
27 | * @config |
||
28 | * @var int |
||
29 | */ |
||
30 | private static $insert_height = 400; |
||
31 | |||
32 | public function updateCMSEditLink(&$link) |
||
38 | |||
39 | /** |
||
40 | * Calculate width to insert into html area |
||
41 | * |
||
42 | * @return int|null |
||
43 | */ |
||
44 | public function getInsertWidth() { |
||
48 | |||
49 | /** |
||
50 | * Calculate width to insert into html area |
||
51 | * |
||
52 | * @return int |
||
53 | */ |
||
54 | public function getInsertHeight() { |
||
58 | |||
59 | /** |
||
60 | * Get dimensions of this image sized within insert_width x insert_height |
||
61 | * |
||
62 | * @return array|null |
||
63 | */ |
||
64 | protected function getInsertDimensions() { |
||
98 | } |
||
99 |
This check marks private properties in classes that are never used. Those properties can be removed.