DataTypeInterface

Interface for data types.

Known implementers

Omeka\DataType\AbstractDataType , Omeka\DataType\Literal , Omeka\DataType\Resource\AbstractResource , Omeka\DataType\Resource\All , Omeka\DataType\Resource\Item , Omeka\DataType\Resource\Itemset , Omeka\DataType\Resource\Media , Omeka\DataType\Uri

Methods Summary
public
# getName( )
Get the name of this data type.
public
# getLabel( )
Get a human-readable label for this data type.
public
# getOptgroupLabel( )
Get a human-readable optgroup label for this data type, if any.
public
# prepareForm( Zend\View\Renderer\PhpRenderer $view )
Prepare the view to enable the data types. Typically used to append JavaScript to the head.
public
# form( Zend\View\Renderer\PhpRenderer $view )
Get the template markup used to render the value in the resource form.
public
# isValid( array $valueObject )
Is this value object valid?
public
# hydrate( array $valueObject , Omeka\Entity\Value $value , Omeka\Api\Adapter\AbstractEntityAdapter $adapter )
Hydrate the value entity using the value object.
public
# render( Zend\View\Renderer\PhpRenderer $view , Omeka\Api\Representation\ValueRepresentation $value )
Get the markup used to render the value.
public
# toString( Omeka\Api\Representation\ValueRepresentation $value )
Get the value as a simple string.
public
# getJsonLd( Omeka\Api\Representation\ValueRepresentation $value )
Get an array representation of this value using JSON-LD notation.