PHP Class Jarves\Filesystem\Adapter\AbstractAdapter

Please note: All methods $path arguments are relative to your mountPath!
Inheritance: implements Jarves\Filesystem\Adapter\AdapterInterface
Datei anzeigen Open project: jarves/jarves Class Usage Examples

Protected Properties

Property Type Description
$jarves Jarves\Jarves
$mountPath string Current name of the mount point. (in fact, the folder name in media/)
$params array Current params as array.

Public Methods

Method Description
__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 )

Method Details

__construct() public method

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() public method

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

getJarves() public method

public getJarves ( ) : Jarves
return Jarves\Jarves

getMountPath() public method

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

getParam() public method

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

getParams() public method

public getParams ( ) : array
return array

setJarves() public method

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

setMountPath() public method

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

setParam() public method

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

setParams() public method

public setParams ( array $params )
$params array

Property Details

$jarves protected_oe property

protected Jarves,Jarves $jarves
return Jarves\Jarves

$mountPath protected_oe property

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

$params protected_oe property

Current params as array.
protected array $params
return array