PHP 클래스 Jarves\Filesystem\Adapter\AbstractAdapter

Please note: All methods $path arguments are relative to your mountPath!
상속: implements Jarves\Filesystem\Adapter\AdapterInterface
파일 보기 프로젝트 열기: jarves/jarves 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$jarves Jarves\Jarves
$mountPath string Current name of the mount point. (in fact, the folder name in media/)
$params array Current params as array.

공개 메소드들

메소드 설명
__construct ( string $mountPath, array $params = null ) Constructor
getHash ( $path ) : string Returns the content hash (max 64 byte).
getJarves ( ) : Jarves
getMountPath ( ) : string Returns current name of the mount point.
getParam ( string $key ) : mixed Gets a value of the params.
getParams ( ) : array
setJarves ( Jarves $jarves )
setMountPath ( $mountPath ) Sets the name of mount point.
setParam ( string $key, mixed $value ) Sets a value for a param.
setParams ( array $params )

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( string $mountPath, array $params = null )
$mountPath string The mount name for this layer. (in fact, the folder name in media/)
$params array

getHash() 공개 메소드

Returns the content hash (max 64 byte).
public getHash ( $path ) : string
$path
리턴 string

getJarves() 공개 메소드

public getJarves ( ) : Jarves
리턴 Jarves\Jarves

getMountPath() 공개 메소드

Returns current name of the mount point.
public getMountPath ( ) : string
리턴 string

getParam() 공개 메소드

Gets a value of the params.
public getParam ( string $key ) : mixed
$key string
리턴 mixed

getParams() 공개 메소드

public getParams ( ) : array
리턴 array

setJarves() 공개 메소드

public setJarves ( Jarves $jarves )
$jarves Jarves\Jarves

setMountPath() 공개 메소드

Sets the name of mount point.
public setMountPath ( $mountPath )

setParam() 공개 메소드

Sets a value for a param.
public setParam ( string $key, mixed $value )
$key string
$value mixed

setParams() 공개 메소드

public setParams ( array $params )
$params array

프로퍼티 상세

$jarves 보호되어 있는 프로퍼티

protected Jarves,Jarves $jarves
리턴 Jarves\Jarves

$mountPath 보호되어 있는 프로퍼티

Current name of the mount point. (in fact, the folder name in media/)
protected string $mountPath
리턴 string

$params 보호되어 있는 프로퍼티

Current params as array.
protected array $params
리턴 array