Horde_ActiveSync_Collections::getCollectionType PHP Method

getCollectionType() public method

public getCollectionType ( $id )
    public function getCollectionType($id)
    {
        if ($id == 'RI') {
            return $id;
        }
        // First try existing, loaded collections.
        if (!empty($this->_collections[$id]['type'])) {
            return $this->_collections[$id]['type'];
        }
        // Next look in the SyncCache.
        if (isset($this->_cache->folders[$id]['type'])) {
            $type = $this->_cache->folders[$id]['type'];
            $this->_logger->info(sprintf('[%s] Obtaining collection type of %s for collection id %s', $this->_procid, $type, $id));
            return $type;
        }
        return false;
    }