MediaRepresentation

extends Omeka\Api\Representation\AbstractResourceEntityRepresentation
Methods Summary
public
public
# getResourceJsonLdType( )
{@inheritDoc}
public
# getResourceJsonLd( )
{@inheritDoc}
public
# render( array $options = array ( ) )
Return the HTML necessary to render this media.
public
# originalUrl( )
Get the URL to the original file.
public
# thumbnailUrl( string $type )
Get the URL to a thumbnail image.
public
# thumbnailUrls( )
Get all thumbnail URLs, keyed by type.
public
# ingester( )
Get the media ingester
public
# ingesterLabel( )
Get the ingester's label
public
# renderer( )
Get the media renderer
public
# mediaData( )
Get the media data. Named getMediaData() so as not to override parent::getData().
public
# source( )
Get the source of the media.
public
# mediaType( )
Get the Internet media type of the media.
public
# sha256( )
Get the SHA-256 of the media.
public
# filename( )
Get the media's filename (if any).
public
# storageId( )
Get the media's storage ID (if any).
public
# extension( )
Get the media's file extension (if any).
public
# hasOriginal( )
Check whether this media has an original file.
public
# hasThumbnails( )
Check whether this media has thumbnail images.
public
# lang( )
Get the language code of the media.
public
# item( )
Return the parent item parent of this media.
public
# displayTitle( string|null $default = NULL )
Get the display title for this resource. Change the fallback title to be the media's source, if it exists.

Overrides

public
# siteUrl( $siteSlug = NULL, $canonical = false )
public
Methods inherited from Omeka\Api\Representation\AbstractResourceEntityRepresentation
getResourceJsonLd(), getResourceJsonLdType(), __construct(), getJsonLdType(), getJsonLd(), resourceName(), resourceClass(), resourceTemplate(), owner(), isPublic(), created(), modified(), values(), value(), subjectValues(), subjectValueTotalCount(), subjectValueProperties(), objectValues(), displayValues(), displaySubjectValues(), displayTitle(), displayDescription(), displayResourceClassLabel(), linkPretty(), valueRepresentation()
Methods inherited from Omeka\Api\Representation\AbstractEntityRepresentation
__construct(), userIsAllowed()
Methods inherited from Omeka\Api\Representation\AbstractResourceRepresentation
getJsonLd(), getJsonLdType(), __construct(), id(), jsonSerialize(), setId(), setAdapter(), getAdapter(), getReference(), apiUrl(), url(), adminUrl(), siteUrl(), link(), linkRaw(), getFileUrl(), getControllerName(), embeddedJsonLd()
Methods inherited from Omeka\Api\Representation\AbstractRepresentation
getAdapter(), getDateTime(), getTranslator(), getViewHelper(), primaryMedia(), getServiceLocator(), setServiceLocator()
Properties inherited from Omeka\Api\Representation\AbstractResourceEntityRepresentation
$values
Properties inherited from Omeka\Api\Representation\AbstractResourceRepresentation
$id, $resource, $adapter
Properties inherited from Omeka\Api\Representation\AbstractRepresentation
$translator, $viewHelperManager, $services