class CToolsCssCache

@file Custom cache implementation for the CTools CSS cache.

Hierarchy

Expanded class hierarchy of CToolsCssCache

2 string references to 'CToolsCssCache'
ctools_install in ./ctools.install
Implements hook_install().
ctools_update_7000 in ./ctools.install
Enable the custom CSS cache handler.

File

includes/css-cache.inc, line 8

View source
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) {
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
CToolsCssCache::clear public function Expires data from the cache. Overrides DrupalCacheInterface::clear
CToolsCssCache::get public function Returns data from the persistent cache. Overrides DrupalCacheInterface::get
CToolsCssCache::getMultiple public function Returns data from the persistent cache when given an array of cache IDs. Overrides DrupalCacheInterface::getMultiple
CToolsCssCache::isEmpty public function Checks if a cache bin is empty. Overrides DrupalCacheInterface::isEmpty
CToolsCssCache::set public function Stores data in the persistent cache. Overrides DrupalCacheInterface::set