PHP Класс Jarves\Filesystem\Adapter\AbstractAdapter

Please note: All methods $path arguments are relative to your mountPath!
Наследование: implements Jarves\Filesystem\Adapter\AdapterInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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