1 | <?php |
||
8 | class Processor |
||
9 | { |
||
10 | /** |
||
11 | * Get the rules from a given CSS-string |
||
12 | * |
||
13 | * @param string $css |
||
14 | * @param Rule[] $existingRules |
||
15 | * |
||
16 | * @return Rule[] |
||
17 | */ |
||
18 | public function getRules($css, $existingRules = array()) |
||
26 | |||
27 | /** |
||
28 | * Get all media queries from the given css string. Returns an empty array |
||
29 | * when non were found. |
||
30 | * |
||
31 | * @param string $css |
||
32 | * |
||
33 | * @return string[] |
||
34 | */ |
||
35 | public function getMediaQueries($css) |
||
42 | |||
43 | /** |
||
44 | * Get the CSS from the style-tags in the given HTML-string |
||
45 | * |
||
46 | * @param string $html |
||
47 | * |
||
48 | * @return string |
||
49 | */ |
||
50 | public function getCssFromStyleTags($html) |
||
65 | |||
66 | /** |
||
67 | * @param string $css |
||
68 | * |
||
69 | * @return string |
||
70 | */ |
||
71 | private function doCleanup($css) |
||
87 | } |
||
88 |