AbstractEntityRepresentation

Abstract entity representation. Provides functionality for all entity representations.
extends Omeka\Api\Representation\AbstractResourceRepresentation

Known subclasses

Omeka\Api\Representation\AbstractResourceEntityRepresentation, Omeka\Api\Representation\AbstractVocabularyMemberRepresentation, Omeka\Api\Representation\AssetRepresentation, Omeka\Api\Representation\ItemRepresentation, Omeka\Api\Representation\ItemSetRepresentation, Omeka\Api\Representation\JobRepresentation, Omeka\Api\Representation\MediaRepresentation, Omeka\Api\Representation\PropertyRepresentation, Omeka\Api\Representation\ResourceClassRepresentation, Omeka\Api\Representation\ResourceTemplateRepresentation, Omeka\Api\Representation\SitePageRepresentation, Omeka\Api\Representation\SiteRepresentation, Omeka\Api\Representation\UserRepresentation, Omeka\Api\Representation\VocabularyRepresentation
Abstract
Open source code
Methods Summary
public
public
# userIsAllowed( string $privilege )
Authorize the current user. Requests access to the entity and to the corresponding adapter. If the current user does not have access to the adapter, we can assume that it does not have access to the entity.
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\AbstractResourceRepresentation
$id, $resource, $adapter
Properties inherited from Omeka\Api\Representation\AbstractRepresentation
$translator, $viewHelperManager, $services