Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
20.00% |
1 / 5 |
CRAP | |
55.56% |
5 / 9 |
| CToolsCssCache | |
0.00% |
0 / 1 |
|
20.00% |
1 / 5 |
9.16 | |
55.56% |
5 / 9 |
| clear | |
100.00% |
1 / 1 |
2 | |
100.00% |
5 / 5 |
|||
| get | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| getMultiple | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| isEmpty | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| set | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| <?php | |
| /** | |
| * @file | |
| * Custom cache implementation for the CTools CSS cache. | |
| */ | |
| class CToolsCssCache implements DrupalCacheInterface { | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function clear($cid = NULL, $wildcard = FALSE) { | |
| // Only clear the caches if the wildcard is set, this ensures that the cache | |
| // is only cleared when the full caches are cleared manually (eg by invoking | |
| // drupal_flush_all_caches()), and not on a cron run. | |
| // @see drupal_flush_all_caches() | |
| // @see system_cron() | |
| if ($wildcard) { | |
| ctools_include('css'); | |
| ctools_css_flush_caches(); | |
| } | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function get($cid) { | |
| return FALSE; | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function getMultiple(&$cids) { | |
| return array(); | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function isEmpty() { | |
| return FALSE; | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function set($cid, $data, $expire = CACHE_PERMANENT) { | |
| } | |
| } |