Semantic MediaWiki and related extensions
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PFDateTimePicker Class Reference
Inheritance diagram for PFDateTimePicker:
Inheritance graph
[legend]
Collaboration diagram for PFDateTimePicker:
Collaboration graph
[legend]

Public Member Functions

 __construct ( $input_number, $cur_value, $input_name, $disabled, array $other_args)
 
 getHtmlText ()
 
 getJsValidationFunctionData ()
 
 getResourceModuleNames ()
 
- Public Member Functions inherited from PFFormInput
 __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 ()
 

Static Public Member Functions

static getName ()
 
static getOtherPropTypesHandled ()
 
static getParameters ()
 
- Static Public Member Functions inherited from PFFormInput
static getName ()
 
static getHandledPropertyTypes ()
 
static getParameters ()
 
static canHandleLists ()
 
static getDefaultPropTypes ()
 
static getDefaultPropTypeLists ()
 
static getOtherPropTypesHandled ()
 
static getOtherPropTypeListsHandled ()
 
static getDefaultCargoTypes ()
 
static getDefaultCargoTypeLists ()
 
static getOtherCargoTypesHandled ()
 
static getOtherCargoTypeListsHandled ()
 

Protected Member Functions

 setupJsInitAttribs ()
 

Protected Attributes

 $mDatePicker
 
 $mTimePicker
 
- Protected Attributes inherited from PFFormInput
 $mInputNumber
 
 $mCurrentValue
 
 $mInputName
 
 $mIsMandatory
 
 $mIsDisabled
 
 $mOtherArgs
 
 $mJsInitFunctionData = array()
 
 $mJsValidationFunctionData = array()
 

Constructor & Destructor Documentation

◆ __construct()

PFDateTimePicker::__construct (   $input_number,
  $cur_value,
  $input_name,
  $disabled,
array  $other_args 
)
Parameters
string$input_numberThe number of the input in the form.
string$cur_valueThe current value of the input field.
string$input_nameThe name of the input.
bool$disabledIs this input disabled?
array$other_argsAn associative array of other parameters that were present in the input definition.

Member Function Documentation

◆ getHtmlText()

PFDateTimePicker::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

◆ getJsValidationFunctionData()

PFDateTimePicker::getJsValidationFunctionData ( )

Returns the name and parameters for the validation JavaScript functions for this input type, if any.

Returns
array

◆ getName()

static PFDateTimePicker::getName ( )
static

Returns the name of the input type this class handles: menuselect.

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 PFDateTimePicker::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 PFDateTimePicker::getParameters ( )
static

Returns the set of parameters for this form input.

Returns
array[]

◆ getResourceModuleNames()

PFDateTimePicker::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

The documentation for this class was generated from the following file:

About | General disclaimer | Privacy policy