|
| __construct ( $input_number, $cur_value, $input_name, $disabled, array $other_args) |
|
| getResourceModuleNames () |
|
| getHtmlText () |
|
| __construct ( $input_number, $cur_value, $input_name, $disabled, array $other_args) |
|
| getDefaultParameters () |
|
| getHtmlText () |
|
| getJsInitFunctionData () |
|
| getJsValidationFunctionData () |
|
| getResourceModuleNames () |
|
| addJsInitFunctionData ( $name, $param=null) |
|
| addJsValidationFunctionData ( $name, $param='null') |
|
| addJavaScript () |
|
|
| $mInputNumber |
|
| $mCurrentValue |
|
| $mInputName |
|
| $mIsMandatory |
|
| $mIsDisabled |
|
| $mOtherArgs |
|
| $mJsInitFunctionData = array() |
|
| $mJsValidationFunctionData = array() |
|
◆ __construct()
PFDatePickerInput::__construct |
( |
|
$input_number, |
|
|
|
$cur_value, |
|
|
|
$input_name, |
|
|
|
$disabled, |
|
|
array |
$other_args |
|
) |
| |
- Parameters
-
string | $input_number | The number of the input in the form. |
string | $cur_value | The current value of the input field. |
string | $input_name | The name of the input. |
bool | $disabled | Is this input disabled? |
array | $other_args | An associative array of other parameters that were present in the input definition. |
◆ genericTextHTML()
static PFDatePickerInput::genericTextHTML |
( |
|
$currentValue, |
|
|
|
$inputName, |
|
|
|
$isDisabled, |
|
|
|
$otherArgs, |
|
|
|
$inputId = null , |
|
|
|
$tabIndex = null , |
|
|
|
$class = '' |
|
) |
| |
|
static |
Creates the HTML text for an input.
Common attributes for input types are set according to the parameters. The parameters are the standard parameters set by Page Forms' InputTypeHook plus some optional.
- Parameters
-
string | $currentValue | |
string | $inputName | |
bool | $isDisabled | |
array | $otherArgs | |
string | null | $inputId | (optional) |
int | null | $tabIndex | (optional) |
string | $class | |
- Returns
- string the html text of an input element
◆ getHtmlText()
PFDatePickerInput::getHtmlText |
( |
| ) |
|
Returns the HTML code to be included in the output page for this input.
Ideally this HTML code should provide a basic functionality even if the browser is not JavaScript capable, i.e. even without JavaScript the user should be able to input values.
- Returns
- string
◆ getName()
static PFDatePickerInput::getName |
( |
| ) |
|
|
static |
Returns the name of the input type this class handles.
This is the name to be used in the field definition for the "input type" parameter.
- Returns
- String The name of the input type this class handles.
◆ getOtherPropTypesHandled()
static PFDatePickerInput::getOtherPropTypesHandled |
( |
| ) |
|
|
static |
Returns the set of SMW property types which this input can handle, but for which it isn't the default input.
- Returns
- string[]
◆ getParameters()
static PFDatePickerInput::getParameters |
( |
| ) |
|
|
static |
Returns the set of parameters for this form input.
TODO: Add missing parameters
- Returns
- array[]
◆ getResourceModuleNames()
PFDatePickerInput::getResourceModuleNames |
( |
| ) |
|
Returns the names of the resource modules this input type uses.
Returns the names of the modules as an array or - if there is only one module - as a string.
- Returns
- null|string|array
◆ setupJsInitAttribs()
PFDatePickerInput::setupJsInitAttribs |
( |
| ) |
|
|
protected |
Set up JS attributes
- Returns
- String
The documentation for this class was generated from the following file: