PHP 클래스 Horde_Kolab_Storage_Folder_Namespace_Element, horde

Copyright 2010-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.
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_delimiter string The delimiter used for this namespace.
$_name string The prefix identifying this namespace.
$_user string The current user.

공개 메소드들

메소드 설명
__construct ( string $name, string $delimiter, string $user ) Constructor.
__toString ( ) : string Convert the namespace description to a string.
generateName ( array $path ) : string Generate a folder path for the given path in this namespace.
generatePath ( string $subpath, string $owner ) : string Generate a folder path for the given subpath and owner.
getDelimiter ( ) : string Return the delimiter for this namespace.
getName ( ) : string Return the name of this namespace.
getOwner ( string $name ) : string | boolean 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.
getType ( ) : string Return the type of this namespace (personal, other, or shared).
matches ( string $name ) : boolean Does the folder name lie in this namespace?

보호된 메소드들

메소드 설명
_subpath ( string $name ) : array Return an array describing the path elements of the folder.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( string $name, string $delimiter, string $user )
$name string The prefix identifying this namespace.
$delimiter string The delimiter used for this namespace.
$user string The current user.

__toString() 공개 메소드

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

_subpath() 보호된 메소드

Return an array describing the path elements of the folder.
protected _subpath ( string $name ) : array
$name string The name of the folder.
리턴 array The path elements.

generateName() 공개 메소드

Generate a folder path for the given path in this namespace.
public generateName ( array $path ) : string
$path array The path of the folder.
리턴 string The name of the folder.

generatePath() 공개 메소드

Generate a folder path for the given subpath and owner.
public generatePath ( string $subpath, string $owner ) : string
$subpath string The subpath of the folder.
$owner string The folder owner.
리턴 string The name of the folder.

getDelimiter() 공개 메소드

Return the delimiter for this namespace.
public getDelimiter ( ) : string
리턴 string The delimiter.

getName() 공개 메소드

Return the name of this namespace.
public getName ( ) : string
리턴 string The name/prefix.

getOwner() 추상적인 공개 메소드

Return the owner of a folder.
abstract public getOwner ( string $name ) : string | boolean
$name string The name of the folder.
리턴 string | boolean 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.

getType() 추상적인 공개 메소드

Return the type of this namespace (personal, other, or shared).
abstract public getType ( ) : string
리턴 string The type.

matches() 공개 메소드

Does the folder name lie in this namespace?
public matches ( string $name ) : boolean
$name string The name of the folder.
리턴 boolean True if the folder is element of this namespace.

프로퍼티 상세

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

The delimiter used for this namespace.
protected string $_delimiter
리턴 string

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

The prefix identifying this namespace.
protected string $_name
리턴 string

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

The current user.
protected string $_user
리턴 string