Horde_Kolab_Storage_List_Cache::hasQuery PHP Метод

hasQuery() публичный Метод

Is the specified query data available in the cache?
public hasQuery ( string $key ) : boolean
$key string The query key.
Результат boolean True in case cached data is available.
    public function hasQuery($key)
    {
        $this->_load();
        return isset($this->_data[self::QUERIES][$key]);
    }

Usage Example

Пример #1
0
 /**
  * Ensure we have the query data.
  *
  * @param string $query The query data required.
  *
  * @return NULL
  */
 private function _initQuery($query)
 {
     if (!$this->_list_cache->hasQuery($query)) {
         $this->_sync->synchronize($this->_list_cache);
     }
 }