Package: View\Helper
Generate the form markup for entering element text metadata.
Displays a form for the record’s element.
The function applies filters that allow plugins to customize the display of element form components. Here is an example of how a plugin may add and implement an element form filter:
add_filter(array(‘ElementForm’, ‘Item’, ‘Dublin Core’, ‘Title’)), ‘form_item_title’);function form_item_title(array $components, $args){
// Where $components would looks like:// array(// ‘label’ => [...],// ‘inputs’ => [...],// ‘description’ => [...],// ‘comment’ => [...],// ‘add_input’ => [...],// )// and $args looks like:// array(// ‘record’ => [...],// ‘element’ => [...],// ‘options’ => [...],// )}
Parameters: |
|
---|
How many form inputs to display for a given element.
Returns: | integer |
---|
Parameters: |
|
---|---|
Returns: | mixed |
Parameters: |
|
---|
Retrieve the form value for the field.
Parameters: |
|
---|---|
Returns: | string |
If index is not given, return all texts.
Parameters: |
|
---|---|
Returns: | void |
Parameters: |
|
---|