PHP Класс Jarves\Storage\FileStorage

Наследование: extends AbstractStorage
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( Jarves $jarves, WebFilesystem $webFilesystem, ACL $acl, ConditionOperator $conditionOperator )
add ( $values, $branchPk = false, $mode = 'into', $scope ) {@inheritDoc}
checkAccess ( $path ) Checks the file access.
clear ( )
getBranch ( $pk = null, Condition $condition = null, $depth = 1, $scope = null, $options = null ) {@inheritDoc}
getCount ( Condition $condition = null )
getItem ( $primaryKey, $options = null ) {@inheritDoc}
getItems ( array $filter = null, Condition $condition = null, $options = null ) {@inheritDoc}
getParent ( $pk, $options = null )
getParentId ( $pk )
getParents ( $pk, $options = null )
mapPrimaryKey ( &$primaryKey ) We accept as primary key the path as well, so we have to convert it to internal ID.
move ( $pk, $targetPk, $position = 'first', $targetObjectKey = null, $overwrite = false ) {@inheritDoc}
patch ( $pk, $values )
primaryStringToArray ( $primaryKey ) {@inheritDoc}
remove ( $primaryKey ) {@inheritDoc}
search ( $query, Condition $condition = null, $max = 20 )
update ( $primaryKey, $values ) {@inheritDoc}

Защищенные методы

Метод Описание
getPathFromPK ( $pk )

Описание методов

__construct() публичный Метод

public __construct ( Jarves $jarves, WebFilesystem $webFilesystem, ACL $acl, ConditionOperator $conditionOperator )
$jarves Jarves\Jarves
$webFilesystem Jarves\Filesystem\WebFilesystem
$acl Jarves\ACL
$conditionOperator Jarves\ConditionOperator

add() публичный Метод

{@inheritDoc}
public add ( $values, $branchPk = false, $mode = 'into', $scope )

checkAccess() публичный Метод

Checks the file access.
public checkAccess ( $path )
$path

clear() публичный Метод

public clear ( )

getBranch() публичный Метод

{@inheritDoc}
public getBranch ( $pk = null, Condition $condition = null, $depth = 1, $scope = null, $options = null )
$condition Jarves\Configuration\Condition

getCount() публичный Метод

public getCount ( Condition $condition = null )
$condition Jarves\Configuration\Condition

getItem() публичный Метод

{@inheritDoc}
public getItem ( $primaryKey, $options = null )

getItems() публичный Метод

{@inheritDoc}
public getItems ( array $filter = null, Condition $condition = null, $options = null )
$filter array
$condition Jarves\Configuration\Condition

getParent() публичный Метод

public getParent ( $pk, $options = null )

getParentId() публичный Метод

public getParentId ( $pk )

getParents() публичный Метод

public getParents ( $pk, $options = null )

getPathFromPK() защищенный Метод

protected getPathFromPK ( $pk )

mapPrimaryKey() публичный Метод

We accept as primary key the path as well, so we have to convert it to internal ID.
public mapPrimaryKey ( &$primaryKey )
$primaryKey

move() публичный Метод

{@inheritDoc}
public move ( $pk, $targetPk, $position = 'first', $targetObjectKey = null, $overwrite = false )

patch() публичный Метод

public patch ( $pk, $values )

primaryStringToArray() публичный Метод

Same as parent method, except: If we get the PK as path we convert it to internal ID.
public primaryStringToArray ( $primaryKey )

remove() публичный Метод

{@inheritDoc}
public remove ( $primaryKey )

update() публичный Метод

{@inheritDoc}
public update ( $primaryKey, $values )