Property | Type | Description | |
---|---|---|---|
$backend | array | Configuration hash for the current backend. |
Property | Type | Description | |
---|---|---|---|
$_columns | array | Cache for display columns. |
Method | Description | |
---|---|---|
changeDir ( ) | Changes the current directory of the Gollem session based on the 'dir' form field. | |
changePermissions ( string $dir, string $name, string $permission ) | Change permissions on files using the current Gollem session settings. | |
checkPermissions ( string $filter, integer $permission = Horde_Perms::READ, string $resource = null ) : boolean | Checks if a user has the specified permissions on a resource. | |
copyFile ( string $backend_f, string $dir, string $name, string $backend_t, string $newdir ) | Copies a file using the current Gollem session settings. | |
createFolder ( string $dir, string $name, Horde_Vfs_Base $gollem_vfs = null ) | Create a folder using the current Gollem session settings. | |
deleteFile ( string $dir, string $name ) | Delete a file using the current Gollem session settings. | |
deleteFolder ( string $dir, string $name ) | Delete a folder using the current Gollem session settings. | |
directoryNavLink ( string $currdir, string $url ) : string | Produces a directory link used for navigation. | |
expireCache ( string $dir ) | Expire a folder cache entry. | |
getColumns ( $backend ) : array | Parses the 'columns' preference. | |
getDisplayPath ( string $path ) : string | Generate the display path (the path with any root information stripped out). | |
getVFSPath ( string $fullpath ) : array | Take a fully qualified and break off the file or directory name. | |
listFolder ( string $dir ) : array | List the current folder. | |
moveFile ( string $backend_f, string $dir, string $name, string $backend_t, string $newdir ) | Moves a file using the current Gollem session settings. | |
pathEncode ( string $path ) : string | Convert a Gollem path into a URL encoded string, but keep '/'. | |
renameItem ( string $oldDir, string $old, string $newDir, $new ) | Rename files using the current Gollem session settings. | |
setDir ( string $dir ) | Changes the current directory of the Gollem session to the supplied value. | |
sortDate ( $a, $b ) | Internal sorting function for 'date'. | |
sortName ( $a, $b ) | Internal sorting function for 'name'. | |
sortSize ( $a, $b ) | Internal sorting function for 'size'. | |
sortType ( $a, $b ) | Internal sorting function for 'type'. | |
stripAPIPath ( string $path ) : string | Cleans a path presented to Gollem's browse API call. | |
subdirectory ( string $base, string $dir ) : string | Generate correct subdirectory links. | |
verifyDir ( string $dir ) : boolean | This function verifies whether a given directory is below the root. | |
writeFile ( string $dir, string $name, string $filename ) | Write an uploaded file to the VFS backend. |
Method | Description | |
---|---|---|
_copyFile ( $mode, $backend_f, $dir, $name, $backend_t, $newdir ) | Private function that copies/moves files. | |
_getCacheID ( string $dir ) | Generate the Cache ID for a directory. | |
_setLabel ( ) | Set the lable to use for the current page. | |
_sortDirs ( $a, $b ) | Internal helper to sort directories first if pref set. |
protected static _copyFile ( $mode, $backend_f, $dir, $name, $backend_t, $newdir ) |
protected static _getCacheID ( string $dir ) | ||
$dir | string | The directory name. |
protected static _setLabel ( ) |
protected static _sortDirs ( $a, $b ) |
public static changeDir ( ) |
public static checkPermissions ( string $filter, integer $permission = Horde_Perms::READ, string $resource = null ) : boolean | ||
$filter | string | What are we checking for. Either 'backend' or 'directory'. |
$permission | integer | The permission to check for. One of the Horde_Perms constants. |
$resource | string | The resource to check. If empty, check the current backend/directory. |
return | boolean | Returns true if the user has permission. |
public static copyFile ( string $backend_f, string $dir, string $name, string $backend_t, string $newdir ) | ||
$backend_f | string | The backend to copy the file from. |
$dir | string | The directory name of the original file. |
$name | string | The original filename. |
$backend_t | string | The backend to copy the file to. |
$newdir | string | The directory to copy the file to. |
public static createFolder ( string $dir, string $name, Horde_Vfs_Base $gollem_vfs = null ) | ||
$dir | string | The directory path. |
$name | string | The folder to create. |
$gollem_vfs | Horde_Vfs_Base | A VFS instance to use. |
public static deleteFile ( string $dir, string $name ) | ||
$dir | string | The directory name. |
$name | string | The filename to delete. |
public static deleteFolder ( string $dir, string $name ) | ||
$dir | string | The subdirectory name. |
$name | string | The folder name to delete. |
public static expireCache ( string $dir ) | ||
$dir | string | The directory name. |
public static getColumns ( $backend ) : array | ||
return | array | The list of columns to be displayed. |
public static getDisplayPath ( string $path ) : string | ||
$path | string | The path to display. |
return | string | The display path. |
public static getVFSPath ( string $fullpath ) : array | ||
$fullpath | string | Path to be split. |
return | array | Array of ($path, $name) |
public static listFolder ( string $dir ) : array | ||
$dir | string | The directory name. |
return | array | The sorted list of files. |
public static moveFile ( string $backend_f, string $dir, string $name, string $backend_t, string $newdir ) | ||
$backend_f | string | The backend to move the file from. |
$dir | string | The directory name of the original file. |
$name | string | The original filename. |
$backend_t | string | The backend to move the file to. |
$newdir | string | The directory to move the file to. |
public static pathEncode ( string $path ) : string | ||
$path | string | Path to be urlencode()d. |
return | string | URL-encoded string with '/' preserved. |
public static sortDate ( $a, $b ) |
public static sortName ( $a, $b ) |
public static sortSize ( $a, $b ) |
public static sortType ( $a, $b ) |
public static stripAPIPath ( string $path ) : string | ||
$path | string | Path as presented to Gollem API. |
return | string | Cleaned path as described above. |
protected static array $_columns | ||
return | array |
public static array $backend | ||
return | array |