|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| __construct ($form=null) | |
| _addClientSideValidation ($params) | |
| _getLayoutInfo ($params) | |
| _smartyFBVAutocompleteInput ($params, $smarty) | |
| _smartyFBVButton ($params, $smarty) | |
| _smartyFBVCheckbox ($params, $smarty) | |
| _smartyFBVCheckboxGroup ($params, $smarty) | |
| _smartyFBVFileInput ($params, $smarty) | |
| _smartyFBVHiddenInput ($params, $smarty) | |
| _smartyFBVInterestsInput ($params, $smarty) | |
| _smartyFBVKeywordInput ($params, $smarty) | |
| _smartyFBVRadioButton ($params, $smarty) | |
| _smartyFBVSelect ($params, $smarty) | |
| _smartyFBVSubLabel ($params, $smarty) | |
| _smartyFBVTextArea ($params, $smarty) | |
| _smartyFBVTextInput ($params, $smarty) | |
| getForm () | |
| getStyles () | |
| setForm ($form) | |
| smartyFBVElement ($params, $smarty, $content=null) | |
| smartyFBVFormArea ($params, $content, $smarty, &$repeat) | |
| smartyFBVFormButtons ($params, $smarty) | |
| smartyFBVFormSection ($params, $content, $smarty, &$repeat) | |
| smartyFieldLabel ($params, $smarty) | |
Data Fields | |
| $_fbvStyles | |
| $_form | |
Definition at line 57 of file FormBuilderVocabulary.inc.php.
| FormBuilderVocabulary::__construct | ( | $form = null | ) |
Constructor.
| $form | object Form associated with this object |
Definition at line 68 of file FormBuilderVocabulary.inc.php.
| FormBuilderVocabulary::_addClientSideValidation | ( | $params | ) |
Assign the appropriate class name to the element for client-side validation
| $params | array return array |
Definition at line 824 of file FormBuilderVocabulary.inc.php.
References getForm().
Referenced by smartyFBVElement().
| FormBuilderVocabulary::_getLayoutInfo | ( | $params | ) |
Cycle through layout parameters to add the appropriate classes to the element's parent container
| $params | array |
Definition at line 841 of file FormBuilderVocabulary.inc.php.
Referenced by smartyFBVElement(), and smartyFBVFormSection().
| FormBuilderVocabulary::_smartyFBVAutocompleteInput | ( | $params, | |
| $smarty | |||
| ) |
Form Autocomplete text input. (actually two inputs, label and value) parameters: disabled (optional), name (optional - assigned value of 'id' by default)
| $params | array |
| $smarty | object |
Definition at line 345 of file FormBuilderVocabulary.inc.php.
References _smartyFBVTextInput().
Referenced by smartyFBVElement().
| FormBuilderVocabulary::_smartyFBVButton | ( | $params, | |
| $smarty | |||
| ) |
Form button. parameters: label (or value), disabled (optional), type (optional)
| $params | array |
| $smarty | object |
Definition at line 315 of file FormBuilderVocabulary.inc.php.
Referenced by smartyFBVElement().
| FormBuilderVocabulary::_smartyFBVCheckbox | ( | $params, | |
| $smarty | |||
| ) |
Checkbox input control. parameters: label, disabled (optional), translate (optional), name (optional - value of 'id' by default)
| $params | array |
| $smarty | object |
Definition at line 632 of file FormBuilderVocabulary.inc.php.
Referenced by smartyFBVElement().
| FormBuilderVocabulary::_smartyFBVCheckboxGroup | ( | $params, | |
| $smarty | |||
| ) |
Form checkbox group control. parameters: from [array], selected [array index], defaultLabel (optional), defaultValue (optional), disabled (optional), translate (optional), name (optional - value of 'id' by default)
| $params | array |
| $smarty | object |
Definition at line 595 of file FormBuilderVocabulary.inc.php.
Referenced by smartyFBVElement().
| FormBuilderVocabulary::_smartyFBVFileInput | ( | $params, | |
| $smarty | |||
| ) |
File upload input. parameters: submit (optional - name of submit button to include), disabled (optional), name (optional - value of 'id' by default)
| $params | array |
| $smarty | object |
Definition at line 699 of file FormBuilderVocabulary.inc.php.
References _smartyFBVSubLabel().
Referenced by smartyFBVElement().
| FormBuilderVocabulary::_smartyFBVHiddenInput | ( | $params, | |
| $smarty | |||
| ) |
Hidden input element. parameters: value, id, name (optional - assigned value of 'id' by default), disabled (optional), multilingual (optional)
| $params | array |
| $smarty | object |
Definition at line 515 of file FormBuilderVocabulary.inc.php.
Referenced by smartyFBVElement().
| FormBuilderVocabulary::_smartyFBVInterestsInput | ( | $params, | |
| $smarty | |||
| ) |
Reviewing interests input. parameters: interests - current users's keywords (array)
| $params | array |
| $smarty | object |
Definition at line 763 of file FormBuilderVocabulary.inc.php.
References _smartyFBVSubLabel().
Referenced by smartyFBVElement().
| FormBuilderVocabulary::_smartyFBVKeywordInput | ( | $params, | |
| $smarty | |||
| ) |
Keyword input. parameters: available - all available keywords (for autosuggest); current - user's current keywords
| $params | array |
| $smarty | object |
Definition at line 726 of file FormBuilderVocabulary.inc.php.
References _smartyFBVSubLabel().
Referenced by smartyFBVElement().
| FormBuilderVocabulary::_smartyFBVRadioButton | ( | $params, | |
| $smarty | |||
| ) |
Radio input control. parameters: label, disabled (optional), translate (optional), name (optional - value of 'id' by default)
| $params | array |
| $smarty | object |
Definition at line 663 of file FormBuilderVocabulary.inc.php.
Referenced by smartyFBVElement().
| FormBuilderVocabulary::_smartyFBVSelect | ( | $params, | |
| $smarty | |||
| ) |
Form select control. parameters: from [array], selected [array index], defaultLabel (optional), defaultValue (optional), disabled (optional), translate (optional), name (optional - value of 'id' by default)
| $params | array |
| $smarty | object |
Definition at line 545 of file FormBuilderVocabulary.inc.php.
References _smartyFBVSubLabel().
Referenced by smartyFBVElement().
| FormBuilderVocabulary::_smartyFBVSubLabel | ( | $params, | |
| $smarty | |||
| ) |
Custom Smarty function for labelling/highlighting of form fields.
| $params | array can contain 'name' (field name/ID), 'required' (required field), 'key' (localization key), 'label' (non-localized label string), 'suppressId' (boolean) |
| $smarty | Smarty |
Definition at line 785 of file FormBuilderVocabulary.inc.php.
References getForm().
Referenced by _smartyFBVFileInput(), _smartyFBVInterestsInput(), _smartyFBVKeywordInput(), _smartyFBVSelect(), _smartyFBVTextArea(), and _smartyFBVTextInput().
| FormBuilderVocabulary::_smartyFBVTextArea | ( | $params, | |
| $smarty | |||
| ) |
Form text area. parameters:
| $params | array |
| $smarty | object |
Definition at line 449 of file FormBuilderVocabulary.inc.php.
References _smartyFBVSubLabel(), and getStyles().
Referenced by smartyFBVElement().
| FormBuilderVocabulary::_smartyFBVTextInput | ( | $params, | |
| $smarty | |||
| ) |
Form text input. parameters: disabled (optional), name (optional - assigned value of 'id' by default), multilingual (optional)
| $params | array |
| $smarty | object |
Definition at line 378 of file FormBuilderVocabulary.inc.php.
References _smartyFBVSubLabel().
Referenced by _smartyFBVAutocompleteInput(), and smartyFBVElement().
| FormBuilderVocabulary::getForm | ( | ) |
Get the form
Definition at line 92 of file FormBuilderVocabulary.inc.php.
References $_form.
Referenced by _addClientSideValidation(), _smartyFBVSubLabel(), smartyFBVFormSection(), and smartyFieldLabel().
| FormBuilderVocabulary::getStyles | ( | ) |
Get the form style constants
Definition at line 100 of file FormBuilderVocabulary.inc.php.
References $_fbvStyles.
Referenced by _smartyFBVTextArea().
| FormBuilderVocabulary::setForm | ( | $form | ) |
| FormBuilderVocabulary::smartyFBVElement | ( | $params, | |
| $smarty, | |||
$content = null |
|||
| ) |
Base form element.
| $params | array |
| $smarty | object- |
Definition at line 227 of file FormBuilderVocabulary.inc.php.
References _addClientSideValidation(), _getLayoutInfo(), _smartyFBVAutocompleteInput(), _smartyFBVButton(), _smartyFBVCheckbox(), _smartyFBVCheckboxGroup(), _smartyFBVFileInput(), _smartyFBVHiddenInput(), _smartyFBVInterestsInput(), _smartyFBVKeywordInput(), _smartyFBVRadioButton(), _smartyFBVSelect(), _smartyFBVTextArea(), _smartyFBVTextInput(), and strtolower_codesafe().
| FormBuilderVocabulary::smartyFBVFormArea | ( | $params, | |
| $content, | |||
| $smarty, | |||
| & | $repeat | ||
| ) |
A form area that contains form sections.
| $params | array |
| $content | string |
| $smarty | object |
| $repeat |
Definition at line 115 of file FormBuilderVocabulary.inc.php.
| FormBuilderVocabulary::smartyFBVFormButtons | ( | $params, | |
| $smarty | |||
| ) |
Submit and (optional) cancel button for a form.
| $params | array |
| $smarty | object |
| $repeat |
Definition at line 205 of file FormBuilderVocabulary.inc.php.
| FormBuilderVocabulary::smartyFBVFormSection | ( | $params, | |
| $content, | |||
| $smarty, | |||
| & | $repeat | ||
| ) |
A form section that contains controls in a variety of layout possibilities.
| $params | array |
| $content | string |
| $smarty | object |
| $repeat |
Definition at line 137 of file FormBuilderVocabulary.inc.php.
References _getLayoutInfo(), and getForm().
| FormBuilderVocabulary::smartyFieldLabel | ( | $params, | |
| $smarty | |||
| ) |
Custom Smarty function for labelling/highlighting of form fields.
| $params | array can contain 'name' (field name/ID), 'required' (required field), 'key' (localization key), 'label' (non-localized label string), 'suppressId' (boolean) |
| $smarty | Smarty |
Definition at line 867 of file FormBuilderVocabulary.inc.php.
References getForm().
| FormBuilderVocabulary::$_fbvStyles |
Styles organized by parameter name
Definition at line 62 of file FormBuilderVocabulary.inc.php.
Referenced by getStyles().
| FormBuilderVocabulary::$_form |
Form associated with this object, if any. Will inform smarty which forms to label as required
Definition at line 59 of file FormBuilderVocabulary.inc.php.
Referenced by getForm().