Omeka_View_Helper_ElementInput

class Omeka_View_Helper_ElementInput

Package: View\Helper

Generate the form markup for entering one HTML input for an Element.

property _element

Element record to display the input for.

property _record

Omeka_Record_AbstractRecord to display the input for.

elementInput(Element $element, Omeka_Record_AbstractRecord $record, int $index = 0, string $value =, bool $isHtml =)

Display one form input for an Element.

Parameters:
  • $element (Element) – The Element to display the input for.
  • $record (Omeka_Record_AbstractRecord) – The record to display the input for.
  • $index (int) – The index of this input. (starting at zero).
  • $value (string) – The default value of this input.
  • $isHtml (bool) – Whether this input’s value is HTML.
Returns:

string

_getInputComponent(string $inputNameStem, string $value)

Get the actual HTML input for this Element.

Parameters:
  • $inputNameStem (string) –
  • $value (string) –
Returns:

string

_getControlsComponent()

Get the button that will allow a user to remove this form input. The submit input has a class of ‘add-element’, which is used by the Javascript to do stuff.

Returns:string
_getHtmlCheckboxComponent(string $inputNameStem, bool $isHtml)

Get the HTML checkbox that lets users toggle the editor.

Parameters:
  • $inputNameStem (string) –
  • $isHtml (bool) –
Returns:

string

Project Versions

Previous topic

Omeka_View_Helper_ElementForm

Next topic

Omeka_View_Helper_FileId3Metadata

This Page