AbstractResourceEntityAdapter

extends Omeka\Api\Adapter\AbstractEntityAdapter

Known subclasses

Omeka\Api\Adapter\ItemAdapter, Omeka\Api\Adapter\ItemSetAdapter, Omeka\Api\Adapter\MediaAdapter
Abstract
Open source code
Methods Summary
public
# buildQuery( Doctrine\ORM\QueryBuilder $qb , array $query )
public
# sortQuery( Doctrine\ORM\QueryBuilder $qb , array $query )
public
# hydrate( Omeka\Api\Request $request , Omeka\Entity\EntityInterface $entity , Omeka\Stdlib\ErrorStore $errorStore )
{@inheritDoc}
public
# validateEntity( Omeka\Entity\EntityInterface $entity , Omeka\Stdlib\ErrorStore $errorStore )
protected
# buildPropertyQuery( Doctrine\ORM\QueryBuilder $qb , array $query )
Build query on value. Query format: - property[{index}][joiner]: "and" OR "or" joiner with previous query - property[{index}][property]: property ID - property[{index}][text]: search text - property[{index}][type]: search type - eq: is exactly - neq: is not exactly - in: contains - nin: does not contain - ex: has any value - nex: has no value
protected
# getPropertyByTerm( string $term )
Get a property entity by JSON-LD term.
public
# getSubjectValues( Omeka\Entity\Resource $resource , int $page = NULL, int $perPage = NULL, int $property = NULL )
Get values where the provided resource is the RDF object.
public
# getSubjectValueTotalCount( Omeka\Entity\Resource $resource , int $property = NULL )
Get the total count of the provided resource's subject values.
public
# getSubjectValueProperties( Omeka\Entity\Resource $resource )
Get distinct properties (predicates) where the provided resource is the RDF object.
public
Methods inherited from Omeka\Api\Adapter\AbstractEntityAdapter
hydrate(), validateRequest(), validateEntity(), buildQuery(), sortQuery(), sortByCount(), limitQuery(), search(), create(), batchCreate(), read(), update(), batchUpdate(), delete(), batchDelete(), getEntityManager(), deleteEntity(), hydrateEntity(), authorize(), findEntity(), createNamedParameter(), createAlias(), isTerm(), isUnique(), shouldHydrate(), hydrateOwner(), hydrateResourceClass(), hydrateResourceTemplate(), updateTimestamps()
Methods inherited from Omeka\Api\Adapter\AbstractAdapter
getRepresentationClass(), search(), create(), batchCreate(), read(), update(), batchUpdate(), preprocessBatchUpdate(), delete(), batchDelete(), getAdapter(), getRepresentation(), getTranslator(), getResourceId(), setServiceLocator(), getServiceLocator()
Properties inherited from Omeka\Api\Adapter\AbstractEntityAdapter
$index, $sortFields
Properties inherited from Omeka\Api\Adapter\AbstractAdapter
$translator, $serviceLocator