1 | <?php |
||
16 | abstract class MinifyComponent |
||
17 | { |
||
18 | |||
19 | /** |
||
20 | * @var View |
||
21 | */ |
||
22 | protected $view; |
||
23 | |||
24 | /** |
||
25 | * MinifyComponent constructor. |
||
26 | * @param View $view |
||
27 | */ |
||
28 | 4 | public function __construct(View $view) |
|
32 | |||
33 | abstract public function minify(); |
||
34 | |||
35 | /** |
||
36 | * @param string $file |
||
37 | * @return string |
||
38 | */ |
||
39 | 4 | protected function getAbsoluteFilePath($file) |
|
43 | |||
44 | /** |
||
45 | * @param string $file |
||
46 | * @return string |
||
47 | */ |
||
48 | 4 | protected function cleanFileName($file) |
|
52 | |||
53 | /** |
||
54 | * @param string $file |
||
55 | * @param string $html |
||
56 | * @return bool |
||
57 | */ |
||
58 | 4 | protected function thisFileNeedMinify($file, $html) |
|
62 | |||
63 | /** |
||
64 | * @param string $url |
||
65 | * @param boolean $checkSlash |
||
66 | * @return bool |
||
67 | */ |
||
68 | protected function isUrl($url, $checkSlash = true) |
||
81 | |||
82 | /** |
||
83 | * @param string $string |
||
84 | * @return bool |
||
85 | */ |
||
86 | 4 | protected function isContainsConditionalComment($string) |
|
90 | |||
91 | /** |
||
92 | * @param array $files |
||
93 | * @return string |
||
94 | */ |
||
95 | 4 | protected function _getSummaryFilesHash($files) |
|
116 | } |