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