class UsageTracker implements TrackerInterface (View source)

Properties

private EntityManager $manager
private EntityRepository $repository

Methods

__construct(EntityManager $manager)

No description

track(TrackableInterface $trackable)

Track a trackable object Any object could be passed to this method so long as it implements TrackableInterface

forget(TrackableInterface $trackable)

Forget a trackable object Any object could be passed to this method so long as it implements TrackableInterface

trackCollection(Collection $collection)

Track a collection object

forgetCollection(Collection $collection)

Forget about a collection object

trackBlocks(Collection $collection, array $blocks)

Track a list of blocks for a collection

persist($stack_id, $collection_id, $collection_version_id, $block_id)

No description

Details

__construct(EntityManager $manager)

No description

Parameters

EntityManager $manager

TrackerInterface|TrackerInterface track(TrackableInterface $trackable)

Track a trackable object Any object could be passed to this method so long as it implements TrackableInterface

Parameters

TrackableInterface $trackable

Return Value

TrackerInterface|TrackerInterface

TrackerInterface|TrackerInterface forget(TrackableInterface $trackable)

Forget a trackable object Any object could be passed to this method so long as it implements TrackableInterface

Parameters

TrackableInterface $trackable

Return Value

TrackerInterface|TrackerInterface

private trackCollection(Collection $collection)

Track a collection object

Parameters

Collection $collection

private forgetCollection(Collection $collection)

Forget about a collection object

Parameters

Collection $collection

private trackBlocks(Collection $collection, array $blocks)

Track a list of blocks for a collection

Parameters

Collection $collection
array $blocks

private persist($stack_id, $collection_id, $collection_version_id, $block_id)

No description

Parameters

$stack_id
$collection_id
$collection_version_id
$block_id