UsageTracker
class UsageTracker implements TrackerInterface (View source)
Properties
private EntityManager | $manager | ||
private FileUsageRepository | $repository |
Methods
No description
Track a trackable object Any object could be passed to this method so long as it implements TrackableInterface
Forget a trackable object Any object could be passed to this method so long as it implements TrackableInterface
No description
No description
No description
Details
__construct(EntityManagerInterface $manager)
No description
TrackerInterface|TrackerInterface
track(TrackableInterface $trackable)
Track a trackable object Any object could be passed to this method so long as it implements TrackableInterface
TrackerInterface|TrackerInterface
forget(TrackableInterface $trackable)
Forget a trackable object Any object could be passed to this method so long as it implements TrackableInterface
private
trackCollection(Collection $collection)
Track a collection object
private
forgetCollection(Collection $collection)
Forget about a collection object
private
trackFileTrackable(FileTrackableInterface $trackable)
No description
private
trackAttributes(Collection $collection, array $attributes)
No description
private
trackBlocks(Collection $collection, array $blocks)
Track a list of blocks for a collection
private Generator
getTrackables(array $list, callable $transformer = null)
internal | param bool $getController |
No description
private
trackTrackables(Collection $collection, Iterator|FileTrackableInterface[] $trackables, callable $persist)
No description
private bool
persist($file_id, $collection_id, $collection_version_id, $block_id)
No description