Overview

Packages

  • Kolab
    • Storage

Classes

  • Horde_Kolab_Storage_Base
  • Horde_Kolab_Storage_Cache
  • Horde_Kolab_Storage_Cache_Data
  • Horde_Kolab_Storage_Cache_List
  • Horde_Kolab_Storage_Cached
  • Horde_Kolab_Storage_Data_Base
  • Horde_Kolab_Storage_Data_Cached
  • Horde_Kolab_Storage_Data_Decorator_Log
  • Horde_Kolab_Storage_Data_Format_Mime
  • Horde_Kolab_Storage_Data_Modifiable
  • Horde_Kolab_Storage_Data_Old
  • Horde_Kolab_Storage_Data_Parser_Structure
  • Horde_Kolab_Storage_Data_Query_History_Base
  • Horde_Kolab_Storage_Data_Query_History_Cache
  • Horde_Kolab_Storage_Data_Query_Preferences_Base
  • Horde_Kolab_Storage_Data_Query_Preferences_Cache
  • Horde_Kolab_Storage_Decorator_Synchronization
  • Horde_Kolab_Storage_Driver_Base
  • Horde_Kolab_Storage_Driver_Cclient
  • Horde_Kolab_Storage_Driver_Decorator_Base
  • Horde_Kolab_Storage_Driver_Decorator_Log
  • Horde_Kolab_Storage_Driver_Decorator_Timer
  • Horde_Kolab_Storage_Driver_Imap
  • Horde_Kolab_Storage_Driver_Mock
  • Horde_Kolab_Storage_Driver_Mock_Data
  • Horde_Kolab_Storage_Driver_Pear
  • Horde_Kolab_Storage_Driver_Rcube
  • Horde_Kolab_Storage_Exception
  • Horde_Kolab_Storage_Exception_Pear
  • Horde_Kolab_Storage_Factory
  • Horde_Kolab_Storage_Folder_Base
  • Horde_Kolab_Storage_Folder_Decorator_Base
  • Horde_Kolab_Storage_Folder_Decorator_Trigger
  • Horde_Kolab_Storage_Folder_Namespace
  • Horde_Kolab_Storage_Folder_Namespace_Config
  • Horde_Kolab_Storage_Folder_Namespace_Element
  • Horde_Kolab_Storage_Folder_Namespace_Element_Other
  • Horde_Kolab_Storage_Folder_Namespace_Element_Personal
  • Horde_Kolab_Storage_Folder_Namespace_Element_Shared
  • Horde_Kolab_Storage_Folder_Namespace_Element_SharedWithPrefix
  • Horde_Kolab_Storage_Folder_Namespace_Fixed
  • Horde_Kolab_Storage_Folder_Namespace_Imap
  • Horde_Kolab_Storage_Folder_Stamp_Uids
  • Horde_Kolab_Storage_Folder_Type
  • Horde_Kolab_Storage_List_Base
  • Horde_Kolab_Storage_List_Decorator_Cache
  • Horde_Kolab_Storage_List_Decorator_Log
  • Horde_Kolab_Storage_List_Query_Acl_Base
  • Horde_Kolab_Storage_List_Query_Acl_Cache
  • Horde_Kolab_Storage_List_Query_ActiveSync_Base
  • Horde_Kolab_Storage_List_Query_ActiveSync_Cache
  • Horde_Kolab_Storage_List_Query_List_Base
  • Horde_Kolab_Storage_List_Query_List_Cache
  • Horde_Kolab_Storage_List_Query_Share_Base
  • Horde_Kolab_Storage_List_Query_Share_Cache
  • Horde_Kolab_Storage_QuerySet_Base
  • Horde_Kolab_Storage_QuerySet_Cached
  • Horde_Kolab_Storage_QuerySet_Uncached
  • Horde_Kolab_Storage_Synchronization
  • Horde_Kolab_Storage_Translation
  • Horde_Kolab_Storage_Uncached

Interfaces

  • Horde_Kolab_Storage
  • Horde_Kolab_Storage_Data
  • Horde_Kolab_Storage_Data_Format
  • Horde_Kolab_Storage_Data_Parser
  • Horde_Kolab_Storage_Data_Query
  • Horde_Kolab_Storage_Data_Query_History
  • Horde_Kolab_Storage_Data_Query_Preferences
  • Horde_Kolab_Storage_Driver
  • Horde_Kolab_Storage_Folder
  • Horde_Kolab_Storage_Folder_Stamp
  • Horde_Kolab_Storage_List
  • Horde_Kolab_Storage_List_Query
  • Horde_Kolab_Storage_List_Query_Acl
  • Horde_Kolab_Storage_List_Query_ActiveSync
  • Horde_Kolab_Storage_List_Query_List
  • Horde_Kolab_Storage_List_Query_Share
  • Horde_Kolab_Storage_Queriable
  • Horde_Kolab_Storage_Query
  • Horde_Kolab_Storage_QuerySet
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Kolab_Storage_Folder_Namespace

The Horde_Kolab_Storage_Folder_Namespace:: class handles IMAP namespaces and allows to derive folder information from folder names.

Copyright 2004-2012 Horde LLC (http://www.horde.org/)

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Horde_Kolab_Storage_Folder_Namespace implements Iterator, Serializable

Direct known subclasses

Horde_Kolab_Storage_Folder_Namespace_Config, Horde_Kolab_Storage_Folder_Namespace_Fixed

Indirect known subclasses

Horde_Kolab_Storage_Folder_Namespace_Imap
Abstract
Package: Kolab\Storage
Category: Kolab
License: LGPL 2.1
Author: Gunnar Wrobel wrobel@pardus.de
Link: http://pear.horde.org/index.php?package=Kolab_Storage
Located at Horde/Kolab/Storage/Folder/Namespace.php
Methods summary
public
# __construct( array $namespaces )

Constructor.

Constructor.

Parameters

$namespaces
The namespaces.
public Horde_Kolab_Storage_Folder_Namespace_Element
# matchNamespace( string $name )

Match a folder name with the corresponding namespace.

Match a folder name with the corresponding namespace.

Parameters

$name
The name of the folder.

Returns

Horde_Kolab_Storage_Folder_Namespace_Element
The corresponding namespace.

Throws

Horde_Kolab_Storage_Exception

If the namespace of the folder cannot be determined.

public string
# getOwner( string $name )

Return the owner of a folder.

Return the owner of a folder.

Parameters

$name
The name of the folder.

Returns

string
The owner of the folder.
public string
# getSubpath( string $name )

Get the sub path for the given folder name.

Get the sub path for the given folder name.

Parameters

$name
The folder name.

Returns

string
The sub path.
public string
# getParent( string $name )

Get the parent for the given folder name.

Get the parent for the given folder name.

Parameters

$name
The parent folder name.

Returns

string
The parent.
public string
# getTitle( string $name )

Return the title of a folder.

Return the title of a folder.

Parameters

$name
The name of the folder.

Returns

string
The title of the folder.
public string
# constructFolderName( string $owner, string $subpath, string $prefix = null )

Construct the Kolab storage folder name based on the folder title and the owner.

Construct the Kolab storage folder name based on the folder title and the owner.

Parameters

$owner
The owner of the folder.
$subpath
The folder subpath.
$prefix
The namespace prefix.

Returns

string
The folder name for the backend.
public string
# setTitle( string $title )

Generate an IMAP folder name in the personal namespace.

Generate an IMAP folder name in the personal namespace.

Parameters

$title
The new folder title.

Returns

string
The IMAP folder name.
public string
# setTitleInOther( string $title, string $owner )

Generate an IMAP folder name in the other namespace.

Generate an IMAP folder name in the other namespace.

Parameters

$title
The new folder title.
$owner
The new owner of the folder.

Returns

string
The IMAP folder name.
public string
# setTitleInShared( string $title )

Generate an IMAP folder name in the shared namespace.

Generate an IMAP folder name in the shared namespace.

Parameters

$title
The new folder title.

Returns

string
The IMAP folder name.
public
# rewind( )

Implementation of the Iterator rewind() method. Rewinds the namespace list.

Implementation of the Iterator rewind() method. Rewinds the namespace list.

return NULL

Implementation of

Iterator::rewind()
public Horde_Kolab_Storage_Folder_Namespace_Element|null
# current( )

Implementation of the Iterator current(). Returns the current namespace.

Implementation of the Iterator current(). Returns the current namespace.

Returns

Horde_Kolab_Storage_Folder_Namespace_Element|null
The current namespace.

Implementation of

Iterator::current()
public mixed
# key( )

Implementation of the Iterator key() method. Returns the key of the current namespace.

Implementation of the Iterator key() method. Returns the key of the current namespace.

Returns

mixed
The key for the current position.

Implementation of

Iterator::key()
public Horde_Kolab_Storage_Folder_Namespace_Element|null
# next( )

Implementation of the Iterator next() method. Returns the next namespace.

Implementation of the Iterator next() method. Returns the next namespace.

Returns

Horde_Kolab_Storage_Folder_Namespace_Element|null

The next namespace or null if there are no more namespaces.

Implementation of

Iterator::next()
public boolean
# valid( )

Implementation of the Iterator valid() method. Indicates if the current element is a valid element.

Implementation of the Iterator valid() method. Indicates if the current element is a valid element.

Returns

boolean
Whether the current element is valid

Implementation of

Iterator::valid()
public string
# __toString( )

Convert the namespace description to a string.

Convert the namespace description to a string.

Returns

string
The namespace description.
Methods inherited from Serializable
serialize(), unserialize()
Constants summary
string PERSONAL

The possible namespace types (RFC 2342 [5])

The possible namespace types (RFC 2342 [5])

# 'personal'
string OTHER
# 'other'
string SHARED
# 'shared'
API documentation generated by ApiGen