PHP Class Jarves\Storage\FileStorage

Inheritance: extends AbstractStorage
Afficher le fichier Open project: jarves/jarves

Méthodes publiques

Méthode 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}

Méthodes protégées

Méthode Description
getPathFromPK ( $pk )

Method Details

__construct() public méthode

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 méthode

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

checkAccess() public méthode

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

clear() public méthode

public clear ( )

getBranch() public méthode

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

getCount() public méthode

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

getItem() public méthode

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

getItems() public méthode

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

getParent() public méthode

public getParent ( $pk, $options = null )

getParentId() public méthode

public getParentId ( $pk )

getParents() public méthode

public getParents ( $pk, $options = null )

getPathFromPK() protected méthode

protected getPathFromPK ( $pk )

mapPrimaryKey() public méthode

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

move() public méthode

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

patch() public méthode

public patch ( $pk, $values )

primaryStringToArray() public méthode

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

remove() public méthode

{@inheritDoc}
public remove ( $primaryKey )

update() public méthode

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