TargetInterface
interface TargetInterface (View source)
Methods
string
getName()
Returns the name of this target instance
void
void
publishResource(PersistentResource $resource, CollectionInterface $collection)
Publishes the given persistent resource from the given storage
void
string
getPublicStaticResourceUri(string $relativePathAndFilename)
Returns the web accessible URI pointing to the given static resource
string
getPublicPersistentResourceUri(PersistentResource $resource)
Returns the web accessible URI pointing to the specified persistent resource
Details
string
getName()
Returns the name of this target instance
void
publishCollection(CollectionInterface $collection)
Publishes the whole collection to this target
void
publishResource(PersistentResource $resource, CollectionInterface $collection)
Publishes the given persistent resource from the given storage
void
unpublishResource(PersistentResource $resource)
Unpublishes the given persistent resource
string
getPublicStaticResourceUri(string $relativePathAndFilename)
Returns the web accessible URI pointing to the given static resource
string
getPublicPersistentResourceUri(PersistentResource $resource)
Returns the web accessible URI pointing to the specified persistent resource
void
onPublish(Closure $callback)
Registers a callback, which must be invoked by the implementation after each resource publishing