PHP Class Everzet\PersistedObjects\FileRepository

Inheritance: implements Everzet\PersistedObjects\Repository
Mostra file Open project: everzet/persisted-objects Class Usage Examples

Public Methods

Method Description
__construct ( $filename, Everzet\PersistedObjects\ObjectIdentifier $identifier )
clear ( )
findById ( $id )
getAll ( )
remove ( $object )
save ( $object )

Private Methods

Method Description
getIdentity ( $object )
loadDb ( )
saveDb ( array $collection )
stringify ( $object )

Method Details

__construct() public method

public __construct ( $filename, Everzet\PersistedObjects\ObjectIdentifier $identifier )
$identifier Everzet\PersistedObjects\ObjectIdentifier

clear() public method

public clear ( )

findById() public method

public findById ( $id )

getAll() public method

public getAll ( )

remove() public method

public remove ( $object )

save() public method

public save ( $object )