PHP Class Horde_Kolab_Storage_Folder_Namespace_Element_SharedWithPrefix, 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.
Inheritance: extends Horde_Kolab_Storage_Folder_Namespace_Element_Shared
ファイルを表示 Open project: horde/horde

Protected Properties

Property Type Description
$_prefix string The prefix to hide when referencing this namespace.

Public Methods

Method Description
__construct ( string $name, string $delimiter, string $user, string $prefix ) Constructor.
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.

Protected Methods

Method Description
_subpath ( string $name ) : array Return an array describing the path elements of the folder.

Method Details

__construct() public method

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

_subpath() protected method

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

generateName() public method

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

generatePath() public method

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.
return string The name of the folder.

Property Details

$_prefix protected_oe property

The prefix to hide when referencing this namespace.
protected string $_prefix
return string