PHP 클래스 Gollem_Api, horde

This file defines Gollem's external API interface. Other applications can interact with Gollem through this API. Copyright 2010-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
저자: Amith Varghese ([email protected])
저자: Michael Slusarz ([email protected])
저자: Ben Klang ([email protected])
상속: extends Horde_Registry_Api
파일 보기 프로젝트 열기: horde/horde

공개 메소드들

메소드 설명
browse ( string $path = '', array $properties = ['name', 'icon', 'browseable'] ) : array Browses through the VFS tree.
getViewLink ( string $dir, string $file, string $backend_key = '' ) : Horde_Url Returns a link to the gollem file preview interface
mkcol ( string $path ) Creates a directory ("collection" in WebDAV-speak) within the VFS
move ( string $path, string $dest ) Renames a file or directory
path_delete ( string $path ) Removes a file or folder from the VFS
put ( string $path, string $content, string $content_type ) Accepts a file for storage into the VFS.
returnFromSelectlist ( string $selectid, integer $index ) : string Returns the data for a given selection ID and index.
selectlistLink ( string $link_text, string $link_style, string $formid, boolean $icon = false, string $selectid = '' ) : string Creates a link to the gollem file selection window.
selectlistResults ( string $selectid ) Returns the list of files selected by the user for a given selection ID.
setSelectlist ( string $selectid = '', array $files = [] ) : string Sets the files selected for a given selection ID.

보호된 메소드들

메소드 설명
_getBackend ( $path )

메소드 상세

_getBackend() 보호된 메소드

protected _getBackend ( $path )

browse() 공개 메소드

Each VFS backend is listed as a directory at the top level. No modify operations are allowed outside any VFS area.
public browse ( string $path = '', array $properties = ['name', 'icon', 'browseable'] ) : array
$path string The level of the tree to browse.
$properties array The item properties to return. Defaults to 'name', 'icon', and 'browseable'.
리턴 array The contents of $path.

mkcol() 공개 메소드

Creates a directory ("collection" in WebDAV-speak) within the VFS
public mkcol ( string $path )
$path string Path of directory to create

move() 공개 메소드

Renames a file or directory
public move ( string $path, string $dest )
$path string Path to source object to be renamed
$dest string Path to new name

path_delete() 공개 메소드

Removes a file or folder from the VFS
public path_delete ( string $path )
$path string Path of file or folder to delete

put() 공개 메소드

Accepts a file for storage into the VFS.
public put ( string $path, string $content, string $content_type )
$path string Path to store file.
$content string Contents of file.
$content_type string MIME type of file.

returnFromSelectlist() 공개 메소드

Returns the data for a given selection ID and index.
public returnFromSelectlist ( string $selectid, integer $index ) : string
$selectid string The selection ID.
$index integer The index of the file data to return.
리턴 string The file data.

selectlistResults() 공개 메소드

Returns the list of files selected by the user for a given selection ID.
public selectlistResults ( string $selectid )
$selectid string The selection ID.

setSelectlist() 공개 메소드

Sets the files selected for a given selection ID.
public setSelectlist ( string $selectid = '', array $files = [] ) : string
$selectid string The selection ID to use.
$files array An array with each file entry stored in its own array, with the key as the directory name and the value as the filename.
리턴 string The selection ID.