AbstractRepresentation

Abstract representation. Provides functionality for all representations.
implements JsonSerializable , Omeka\Api\Representation\RepresentationInterface , Zend\EventManager\EventManagerAwareInterface , Zend\EventManager\EventsCapableInterface uses Zend\EventManager\EventManagerAwareTrait

Known subclasses

Omeka\Api\Representation\AbstractEntityRepresentation, Omeka\Api\Representation\AbstractResourceEntityRepresentation, Omeka\Api\Representation\AbstractResourceRepresentation, Omeka\Api\Representation\AbstractVocabularyMemberRepresentation, Omeka\Api\Representation\ApiResourceRepresentation, Omeka\Api\Representation\AssetRepresentation, Omeka\Api\Representation\ItemRepresentation, Omeka\Api\Representation\ItemSetRepresentation, Omeka\Api\Representation\JobRepresentation, Omeka\Api\Representation\MediaRepresentation, Omeka\Api\Representation\ModuleRepresentation, Omeka\Api\Representation\PropertyRepresentation, Omeka\Api\Representation\ResourceClassRepresentation, Omeka\Api\Representation\ResourceReference, Omeka\Api\Representation\ResourceTemplatePropertyRepresentation, Omeka\Api\Representation\ResourceTemplateRepresentation, Omeka\Api\Representation\SiteBlockAttachmentRepresentation, Omeka\Api\Representation\SiteItemSetRepresentation, Omeka\Api\Representation\SitePageBlockRepresentation, Omeka\Api\Representation\SitePageRepresentation, Omeka\Api\Representation\SitePermissionRepresentation, Omeka\Api\Representation\SiteRepresentation, Omeka\Api\Representation\UserRepresentation, Omeka\Api\Representation\ValueRepresentation, Omeka\Api\Representation\VocabularyRepresentation
Abstract
Open source code
Methods Summary
protected
# getAdapter( string $resourceName )
Get an adapter by resource name.
protected
# getDateTime( DateTime $dateTime )
Get a JSON serializable instance of DateTime.
protected
# getTranslator( )
Get the translator service
protected
# getViewHelper( string $name )
Get a view helper from the manager.
public
# primaryMedia( )
Get one Media representation that typifies this representation.
public
# getServiceLocator( )
Get the service locator.
public
# setServiceLocator( Zend\ServiceManager\ServiceLocatorInterface $serviceLocator )
Set the service locator.
Methods used from Zend\EventManager\EventManagerAwareTrait trait
setEventManager() getEventManager()
Properties Summary
protected Zend\I18n\Translator\TranslatorInterface $translator
# NULL
protected Zend\View\HelperPluginManager $viewHelperManager
# NULL
protected Zend\ServiceManager\ServiceLocatorInterface $services
# NULL
Properties used from Zend\EventManager\EventManagerAwareTrait
$events