FileSerializationObjectRepository
class FileSerializationObjectRepository extends ReadOnlyFileSerializationObjectRepository implements ObjectPersisterInterface, EventManagerAwareInterface (View source)
Object repository that persists object to a file useng noresources/data serialization.
Traits
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
No description
{@inheritdoc}
Tell if ORDER BY rules corresponds to the natural sorting order of entries returned by getObjectFiles()
No description
No description
No description
No description
No description
No description
No description
No description
No description
{@inheritdoc}
{@inheritdoc}
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 40
__construct(ClassMetadata $classMetadata, FileSerializerInterface $serializationManager, $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)
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()
object
fetchObjectFromFile(string $filename, integer $flags = 0)
ObjectSorterInterface
getObjectSorter()
Get object sorter.
A default one is created if none was set before.
setObjectSorter(ObjectSorterInterface $sorter)
getObjectFile($object)
getObjectIdentifierFile($id)
string
getBasePath()
setFilesystemStrategy(string $basePath, FilenameMapperInterface $filenameMapper = null, string $extension = null)
getCachedObject($id, $normalized = false)
cacheObject($object)
uncacheObject($objectOrId)
protected array
normalizeSortedBy(string|Traversable $orderBy)
protected callable
createFilter(Expression $expression)
FileSerializerInterface|FileUnserializerInterface|NULL
getSerializationManager()
setSerializationManager(FileSerializerInterface|FileUnserializerInterface|NULL $serializationManager)
MediaTypeInterface|NULL
getFileMediaType()
setFileMediaType(MediaTypeInterface $mediaType)
FileUnserializerInterface
getSerializer()
Instantiator
getInstantiator()
PropertyMappingInterface
getPropertyMapper()
setObjectManager(ObjectManager $objectManager)
at line 54
persist($object)
{@inheritdoc}
at line 77
remove($object)
{@inheritdoc}