You are here

function MobileToolsDatabaseCache::isEmpty in Mobile Tools 7.3

Implements DrupalCacheInterface::isEmpty().

Overrides DrupalCacheInterface::isEmpty

File

mobile_tools_cache/mobile_tools_cache.module, line 256
Main module for mobile_tools_cache

Class

MobileToolsDatabaseCache
Implements DrupalCacheInterface

Code

function isEmpty() {
  $this
    ->garbageCollection();
  $query = db_select($this->bin);
  $query
    ->addExpression('1');
  $result = $query
    ->range(0, 1)
    ->execute()
    ->fetchField();
  return empty($result);
}