Horde_Kolab_Storage_Folder_Namespace::constructFolderName PHP Method

constructFolderName() public method

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.
return string The folder name for the backend.
    public function constructFolderName($owner, $subpath, $prefix = null)
    {
        if (empty($owner)) {
            return $this->_getNamespace(self::SHARED, $prefix)->generatePath($subpath, $owner);
        } else {
            if ($owner == $this->user) {
                return $this->_getNamespace(self::PERSONAL, $prefix)->generatePath($subpath, $owner);
            } else {
                return $this->_getNamespace(self::OTHER, $prefix)->generatePath($subpath, $owner);
            }
        }
    }