SFTextInput Class Reference
[Form Inputs]

The SFTextInput class. More...

Inherits SFFormInput.

Inherited by SFTextWithAutocompleteInput, and SFYearInput.

List of all members.

Public Member Functions

 getHtmlText ()
 Returns the HTML code to be included in the output page for this input.

Static Public Member Functions

static getName ()
 Returns the name of the input type this class handles.
static getDefaultPropTypes ()
 Returns the set of SMW property types for which this input is meant to be the default one - ideally, no more than one input should declare itself the default for any specific type.
static getOtherPropTypesHandled ()
 Returns the set of SMW property types which this input can handle, but for which it isn't the default input.
static getDefaultPropTypeLists ()
 Returns the set of SMW property types for which this input is meant to be the default one - ideally, no more than one input should declare itself the default for any specific type.
static getOtherPropTypeListsHandled ()
 Returns the set of SMW property types which this input can handle, but for which it isn't the default input.
static uploadableHTML ($input_id, $delimiter=null, $default_filename=null, $cur_value= '', $other_args=array())
static getHTML ($cur_value, $input_name, $is_mandatory, $is_disabled, $other_args)
 Method to make new style input types compatible with old-style call from the SF parser.
static getParameters ()
 Returns the set of parameters for this form input.

Static Protected Member Functions

static getPreviewImage ($imageName)
 Gets the HTML for the preview image or null if there is none.


Detailed Description

The SFTextInput class.

Definition at line 14 of file SF_TextInput.php.


Member Function Documentation

static SFTextInput::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. Should be declared abstract. Static functions cannot be abstract. Do we need this method at all? The name should be set outside this class when the input type is registered.

Reimplemented from SFFormInput.

Reimplemented in SFTextWithAutocompleteInput, and SFYearInput.

Definition at line 15 of file SF_TextInput.php.

static SFTextInput::getDefaultPropTypes (  )  [static]

Returns the set of SMW property types for which this input is meant to be the default one - ideally, no more than one input should declare itself the default for any specific type.

Deprecated:
Returns:
Array of arrays (key is the property type, value is an array of default args to be used for this input)

Reimplemented from SFFormInput.

Reimplemented in SFTextWithAutocompleteInput, and SFYearInput.

Definition at line 19 of file SF_TextInput.php.

static SFTextInput::getOtherPropTypesHandled (  )  [static]

Returns the set of SMW property types which this input can handle, but for which it isn't the default input.

Deprecated:
Returns:
Array of strings

Reimplemented from SFFormInput.

Reimplemented in SFTextWithAutocompleteInput, and SFYearInput.

Definition at line 28 of file SF_TextInput.php.

static SFTextInput::getDefaultPropTypeLists (  )  [static]

Returns the set of SMW property types for which this input is meant to be the default one - ideally, no more than one input should declare itself the default for any specific type.

Deprecated:
Returns:
Array of arrays (key is the property type, value is an array of default args to be used for this input)

Reimplemented from SFFormInput.

Reimplemented in SFTextWithAutocompleteInput, and SFYearInput.

Definition at line 32 of file SF_TextInput.php.

static SFTextInput::getOtherPropTypeListsHandled (  )  [static]

Returns the set of SMW property types which this input can handle, but for which it isn't the default input.

Deprecated:
Returns:
Array of strings

Reimplemented from SFFormInput.

Reimplemented in SFTextWithAutocompleteInput, and SFYearInput.

Definition at line 41 of file SF_TextInput.php.

static SFTextInput::getPreviewImage ( imageName  )  [static, protected]

Gets the HTML for the preview image or null if there is none.

Since:
2.3.3
Parameters:
string $imageName
Returns:
string|null

Definition at line 54 of file SF_TextInput.php.

static SFTextInput::uploadableHTML ( input_id,
delimiter = null,
default_filename = null,
cur_value = '',
other_args = array() 
) [static]

Definition at line 96 of file SF_TextInput.php.

References SFUtils::getSpecialPage().

static SFTextInput::getHTML ( cur_value,
input_name,
is_mandatory,
is_disabled,
other_args 
) [static]

Method to make new style input types compatible with old-style call from the SF parser.

Deprecated:
Do not use/override this in new input type classes
TODO: remove/refactor once SF uses forminput objects properly

Reimplemented from SFFormInput.

Reimplemented in SFTextWithAutocompleteInput, and SFYearInput.

Definition at line 139 of file SF_TextInput.php.

References SFTextWithAutocompleteInput::getHTML().

Referenced by SFFormPrinter::formFieldHTML(), SFTextWithAutocompleteInput::getHTML(), and SFComboBoxInput::getHTML().

static SFTextInput::getParameters (  )  [static]

Returns the set of parameters for this form input.

Reimplemented from SFFormInput.

Reimplemented in SFTextWithAutocompleteInput, and SFYearInput.

Definition at line 226 of file SF_TextInput.php.

SFTextInput::getHtmlText (  ) 

Returns the HTML code to be included in the output page for this input.

Reimplemented from SFFormInput.

Reimplemented in SFTextWithAutocompleteInput, and SFYearInput.

Definition at line 259 of file SF_TextInput.php.


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

Generated on Sun Mar 18 07:15:42 2012 for Semantic MediaWiki by  doxygen 1.5.6