ElementInterface

Known implementers

Omeka\Form\ActivateForm , Omeka\Form\ConfirmForm , Omeka\Form\Element\AbstractGroupByOwnerSelect , Omeka\Form\Element\AbstractVocabularyMemberSelect , Omeka\Form\Element\Asset , Omeka\Form\Element\Ckeditor , Omeka\Form\Element\CkeditorInline , Omeka\Form\Element\ColorPicker , Omeka\Form\Element\HtmlTextarea , Omeka\Form\Element\ItemSetSelect , Omeka\Form\Element\PropertySelect , Omeka\Form\Element\Recaptcha , Omeka\Form\Element\ResourceClassSelect , Omeka\Form\Element\ResourceSelect , Omeka\Form\Element\RestoreTextarea , Omeka\Form\Element\SiteSelect , Omeka\Form\ForgotPasswordForm , Omeka\Form\InstallationForm , Omeka\Form\LoginForm , Omeka\Form\ModuleStateChangeForm , Omeka\Form\ResourceBatchUpdateForm , Omeka\Form\ResourceForm , Omeka\Form\ResourceTemplateForm , Omeka\Form\ResourceTemplateImportForm , Omeka\Form\ResourceTemplateReviewImportForm , Omeka\Form\SettingForm , Omeka\Form\SiteForm , Omeka\Form\SitePageForm , Omeka\Form\SiteSettingsForm , Omeka\Form\UserForm , Omeka\Form\VocabularyForm , Omeka\Form\VocabularyImportForm , Omeka\Form\VocabularyUpdateForm , Zend\Form\Element , Zend\Form\Element\Select , Zend\Form\Element\Text , Zend\Form\Element\Textarea , Zend\Form\Fieldset , Zend\Form\FieldsetInterface , Zend\Form\Form , Zend\Form\FormInterface

Methods Summary
public
# setName( string $name )
Set the name of this element In most cases, this will proxy to the attributes for storage, but is present to indicate that elements are generally named.
public
# getName( )
Retrieve the element name
public
# setOptions( array|\Traversable $options )
Set options for an element
public
# setOption( string $key , mixed $value )
Set a single option for an element
public
# getOptions( )
get the defined options
public
# getOption( string $option )
return the specified option
public
# setAttribute( string $key , mixed $value )
Set a single element attribute
public
# getAttribute( string $key )
Retrieve a single element attribute
public
# hasAttribute( string $key )
Return true if a specific attribute is set
public
# setAttributes( array|\Traversable $arrayOrTraversable )
Set many attributes at once Implementation will decide if this will overwrite or merge.
public
# getAttributes( )
Retrieve all attributes at once
public
# setValue( mixed $value )
Set the value of the element
public
# getValue( )
Retrieve the element value
public
# setLabel( $label )
Set the label (if any) used for this element
public
# getLabel( )
Retrieve the label (if any) used for this element
public
# setMessages( array|\Traversable $messages )
Set a list of messages to report when validation fails
public
# getMessages( )
Get validation error messages, if any Returns a list of validation failure messages, if any.