PHP Class Jarves\Storage\FileStorage

Inheritance: extends AbstractStorage
Datei anzeigen Open project: jarves/jarves

Public Methods

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

Protected Methods

Method Description
getPathFromPK ( $pk )

Method Details

__construct() public method

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

add() public method

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

checkAccess() public method

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

clear() public method

public clear ( )

getBranch() public method

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

getCount() public method

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

getItem() public method

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

getItems() public method

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

getParent() public method

public getParent ( $pk, $options = null )

getParentId() public method

public getParentId ( $pk )

getParents() public method

public getParents ( $pk, $options = null )

getPathFromPK() protected method

protected getPathFromPK ( $pk )

mapPrimaryKey() public method

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

move() public method

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

patch() public method

public patch ( $pk, $values )

primaryStringToArray() public method

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

remove() public method

{@inheritDoc}
public remove ( $primaryKey )

update() public method

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