SORT_TYPE
SORT_TYPE
Gollem base library.
Copyright 1999-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
createFolder(string $dir, string $name, \Horde_Vfs_Base $gollem_vfs = null)
Create a folder using the current Gollem session settings.
string | $dir | The directory path. |
string | $name | The folder to create. |
\Horde_Vfs_Base | $gollem_vfs | A VFS instance to use. |
changePermissions(string $dir, string $name, string $permission)
Change permissions on files using the current Gollem session settings.
string | $dir | The directory name. |
string | $name | The filename to change permissions on. |
string | $permission | The permission mode to set. |
moveFile(string $backend_f, string $dir, string $name, string $backend_t, string $newdir)
Moves a file using the current Gollem session settings.
string | $backend_f | The backend to move the file from. |
string | $dir | The directory name of the original file. |
string | $name | The original filename. |
string | $backend_t | The backend to move the file to. |
string | $newdir | The directory to move the file to. |
copyFile(string $backend_f, string $dir, string $name, string $backend_t, string $newdir)
Copies a file using the current Gollem session settings.
string | $backend_f | The backend to copy the file from. |
string | $dir | The directory name of the original file. |
string | $name | The original filename. |
string | $backend_t | The backend to copy the file to. |
string | $newdir | The directory to copy the file to. |
checkPermissions(string $filter, integer $permission = \Horde_Perms::READ, string $resource = null) : boolean
Checks if a user has the specified permissions on a resource.
string | $filter | What are we checking for. Either 'backend' or 'directory'. |
integer | $permission | The permission to check for. One of the Horde_Perms constants. |
string | $resource | The resource to check. If empty, check the current backend/directory. |
Returns true if the user has permission.
stripAPIPath(string $path) : string
Cleans a path presented to Gollem's browse API call.
This will remove:
string | $path | Path as presented to Gollem API. |
Cleaned path as described above.
pathEncode(string $path) : string
Convert a Gollem path into a URL encoded string, but keep '/'.
This allows for proper PATH_INFO path parsing. Special care is taken to handle "+" and " ".
string | $path | Path to be urlencode()d. |
URL-encoded string with '/' preserved.