PHP 클래스 Horde_Kolab_Storage_Folder_Namespace, horde

Copyright 2004-2016 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.
상속: implements IteratorAggregate, implements Serializable
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$user string The current user.

공개 메소드들

메소드 설명
__construct ( array $namespaces ) Constructor.
__toString ( ) : string Convert the namespace description to a string.
constructFolderName ( string $owner, string $subpath, string $prefix = null ) : string Construct the Kolab storage folder name based on the folder title and the owner.
getIterator ( )
getOwner ( string $name ) : string Return the owner of a folder.
getParent ( string $name ) : string Get the parent for the given folder name.
getSubpath ( string $name ) : string Get the sub path for the given folder name.
getTitle ( string $name ) : string Return the title of a folder.
matchNamespace ( string $name ) : Horde_Kolab_Storage_Folder_Namespace_Element Match a folder name with the corresponding namespace.
setTitle ( string $title ) : string Generate an IMAP folder name in the personal namespace.
setTitleInOther ( string $title, string $owner ) : string Generate an IMAP folder name in the other namespace.
setTitleInShared ( string $title ) : string Generate an IMAP folder name in the shared namespace.

보호된 메소드들

메소드 설명
initialize ( array $namespaces ) : null Initialize the class with a set of namespace configurations.

비공개 메소드들

메소드 설명
_getNamespace ( string $type, string $prefix = null ) : Horde_Kolab_Storage_Folder_Namespace_Element Get the namespace matching the given type and (optional) prefix.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( array $namespaces )
$namespaces array The namespaces.

__toString() 공개 메소드

Convert the namespace description to a string.
public __toString ( ) : string
리턴 string The namespace description.

constructFolderName() 공개 메소드

Construct the Kolab storage folder name based on the folder title and the owner.
public constructFolderName ( string $owner, string $subpath, string $prefix = null ) : string
$owner string The owner of the folder.
$subpath string The folder subpath.
$prefix string The namespace prefix.
리턴 string The folder name for the backend.

getIterator() 공개 메소드

public getIterator ( )

getOwner() 공개 메소드

Return the owner of a folder.
public getOwner ( string $name ) : string
$name string The name of the folder.
리턴 string The owner of the folder.

getParent() 공개 메소드

Get the parent for the given folder name.
public getParent ( string $name ) : string
$name string The parent folder name.
리턴 string The parent.

getSubpath() 공개 메소드

Get the sub path for the given folder name.
public getSubpath ( string $name ) : string
$name string The folder name.
리턴 string The sub path.

getTitle() 공개 메소드

Return the title of a folder.
public getTitle ( string $name ) : string
$name string The name of the folder.
리턴 string The title of the folder.

initialize() 보호된 메소드

Initialize the class with a set of namespace configurations.
protected initialize ( array $namespaces ) : null
$namespaces array The namespaces.
리턴 null

matchNamespace() 공개 메소드

Match a folder name with the corresponding namespace.
public matchNamespace ( string $name ) : Horde_Kolab_Storage_Folder_Namespace_Element
$name string The name of the folder.
리턴 Horde_Kolab_Storage_Folder_Namespace_Element The corresponding namespace.

setTitle() 공개 메소드

Generate an IMAP folder name in the personal namespace.
public setTitle ( string $title ) : string
$title string The new folder title.
리턴 string The IMAP folder name.

setTitleInOther() 공개 메소드

Generate an IMAP folder name in the other namespace.
public setTitleInOther ( string $title, string $owner ) : string
$title string The new folder title.
$owner string The new owner of the folder.
리턴 string The IMAP folder name.

setTitleInShared() 공개 메소드

Generate an IMAP folder name in the shared namespace.
public setTitleInShared ( string $title ) : string
$title string The new folder title.
리턴 string The IMAP folder name.

프로퍼티 상세

$user 보호되어 있는 프로퍼티

The current user.
protected string $user
리턴 string