Omeka_View_Helper_ElementInput¶
Package: View\Helper
- class Omeka_View_Helper_ElementInput¶
extends Zend_View_Helper_Abstract
Generate the form markup for entering one HTML input for an Element.
- property Omeka_View_Helper_ElementInput::$_element¶
protected Element
Element record to display the input for.
- property Omeka_View_Helper_ElementInput::$_record¶
protected Omeka_Record_AbstractRecord
Omeka_Record_AbstractRecord to display the input for.
- Omeka_View_Helper_ElementInput::elementInput(Element $element, Omeka_Record_AbstractRecord $record, $index = 0, $value = '', $isHtml = false)¶
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
- Omeka_View_Helper_ElementInput::_getInputComponent($inputNameStem, $value)¶
Get the actual HTML input for this Element.
Parameters:
- $inputNameStem (string) –
- $value (string) –
Returns: string
- Omeka_View_Helper_ElementInput::_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
- Omeka_View_Helper_ElementInput::_getHtmlCheckboxComponent($inputNameStem, $isHtml)¶
Get the HTML checkbox that lets users toggle the editor.
Parameters:
- $inputNameStem (string) –
- $isHtml (bool) –
Returns: string