ReadOnlyFileSerializationObjectRepository
class ReadOnlyFileSerializationObjectRepository extends AbstractFilesystemObjectRepository implements PropertyMappingProviderInterface (View source)
Object repository that load objects from structured text files.
Traits
Trait for objects that holds a file serialization system
Trait for objects that define an object filename mapping strategy
ObjectManagerReferenceTrait
Constants
| FETCH_USE_CACHED |
|
| FETCH_CACHE_OBJECT |
|
Properties
| protected FilenameMapperInterface | $filenameMapper | from FilenameStrategyTrait | |
| protected string|NULL | $extension | from FilenameStrategyTrait | |
| protected string | $basePath | from AbstractFilesystemObjectRepository | |
| protected MediaTypeInterface|NULL | $mediaType | from SerializationStrategyTrait |
Methods
__construct(ClassMetadata $classMetadata, FileUnserializerInterface $serializer, $basePath, FilenameMapperInterface $filenameMapper = null, MediaTypeInterface $mediaType = null, $extension = null)
No description
findBy(array $criteria, array|null $orderBy = null, $limit = null, $offset = null)
{@inheritdoc}
boolean
isNaturalSort(array $orderBy)
Tell if ORDER BY rules corresponds to the natural sorting order of entries returned by getObjectFiles()
object
fetchObjectFromFile(string $filename, integer $flags = 0)
No description
setObjectSorter(ObjectSorterInterface $sorter)
No description
setFilesystemStrategy(string $basePath, FilenameMapperInterface $filenameMapper = null, string $extension = null)
No description
array
callable
createFilter(Expression $expression)
No description
FileSerializerInterface|FileUnserializerInterface|NULL
getSerializationManager()
No description
setSerializationManager(FileSerializerInterface|FileUnserializerInterface|NULL $serializationManager)
No description
FileUnserializerInterface
getSerializer()
No description
Instantiator
getInstantiator()
No description
PropertyMappingInterface
getPropertyMapper()
No description
setObjectManager(ObjectManager $objectManager)
No description
Details
in FilenameStrategyTrait at line 23
FilenameMapperInterface
getFilenameMapper()
in FilenameStrategyTrait at line 32
setFilenameMapper(FilenameMapperInterface $filenameMapper = null)
in FilenameStrategyTrait at line 41
getFileExtension()
string
in FilenameStrategyTrait at line 51
setFileExtension(string $extension)
at line 50
__construct(ClassMetadata $classMetadata, FileUnserializerInterface $serializer, $basePath, FilenameMapperInterface $filenameMapper = null, MediaTypeInterface $mediaType = null, $extension = null)
find($id)
{@inheritdoc}
findBy(array $criteria, array|null $orderBy = null, $limit = null, $offset = null)
{@inheritdoc}
findOneBy(array $criteria)
findAll()
matching(Criteria $criteria)
contains(object $object)
attach(object $object)
detach($object)
at line 153
boolean
isNaturalSort(array $orderBy)
Tell if ORDER BY rules corresponds to the natural sorting order of entries returned by getObjectFiles()
getClassName()
{@inheritdoc}
ClassMetadata
getClassMetadata()
string[]
getObjectFiles()
at line 102
object
fetchObjectFromFile(string $filename, integer $flags = 0)
ObjectSorterInterface
getObjectSorter()
Get object sorter.
A default one is created if none was set before.