Horde_Kolab_Storage_Cache_Data::setQuery PHP Method

setQuery() public method

Sets query information.
public setQuery ( string $key, mixed $data )
$key string The query key.
$data mixed The query data.
    public function setQuery($key, $data)
    {
        $this->_load();
        $this->_data[self::QUERIES][$key] = $data;
    }

Usage Example

Example #1
0
 /**
  * Synchronize the preferences information with the information from the
  * backend.
  *
  * @param array $params Additional parameters.
  *
  * @return NULL
  */
 public function synchronize($params = array())
 {
     $this->_mapping = array();
     foreach ($this->_data->getObjects() as $id => $data) {
         $this->_mapping[$data['application']] = $id;
     }
     $this->_data_cache->setQuery(self::PREFS, $this->_mapping);
 }