/** * Constructor. * * @param Horde_Kolab_Storage_List_Query_ActiveSync $query The underlying ActiveSync query. * @param Horde_Kolab_Storage_List_Cache $cache The list cache. */ public function __construct(Horde_Kolab_Storage_List_Query_ActiveSync $query, Horde_Kolab_Storage_List_Cache $cache) { $this->_query = $query; $this->_list_cache = $cache; if ($this->_list_cache->hasQuery(self::ACTIVE_SYNC)) { $this->_active_sync = $this->_list_cache->getQuery(self::ACTIVE_SYNC); } else { $this->_active_sync = array(); } }
/** * Constructor. * * @param Horde_Kolab_Storage_List_Query_Share $query The underlying share query. * @param Horde_Kolab_Storage_List_Cache $cache The list cache. */ public function __construct(Horde_Kolab_Storage_List_Query_Share $query, Horde_Kolab_Storage_List_Cache $cache) { $this->_query = $query; $this->_list_cache = $cache; if ($this->_list_cache->hasQuery(self::DESCRIPTIONS)) { $this->_descriptions = $this->_list_cache->getQuery(self::DESCRIPTIONS); } else { $this->_descriptions = array(); } if ($this->_list_cache->hasLongTerm(self::PARAMETERS)) { $this->_parameters = $this->_list_cache->getLongTerm(self::PARAMETERS); } else { $this->_parameters = array(); } }
/** * Constructor. * * @param Horde_Kolab_Storage_List_Query_Acl $acl The underlying acl query. * @param Horde_Kolab_Storage_List_Cache $cache The list cache. */ public function __construct(Horde_Kolab_Storage_List_Query_Acl $query, Horde_Kolab_Storage_List_Cache $cache) { $this->_query = $query; $this->_list_cache = $cache; if ($this->_list_cache->hasQuery(self::ACL)) { $this->_acl = $this->_list_cache->getQuery(self::ACL); } else { $this->_acl = array(); } if ($this->_list_cache->hasQuery(self::MYRIGHTS)) { $this->_my_rights = $this->_list_cache->getQuery(self::MYRIGHTS); } else { $this->_my_rights = array(); } if ($this->_list_cache->hasQuery(self::ALLRIGHTS)) { $this->_all_rights = $this->_list_cache->getQuery(self::ALLRIGHTS); } else { $this->_all_rights = array(); } }