SMFormInput Class Reference

Inherited by SMGoogleMaps3FormInput, SMGoogleMaps3MultiInput, SMOpenLayersFormInput, and SMYahooMapsFormInput.

List of all members.

Public Member Functions

 __construct (iMappingService $service)
 Constructor.
 getInputOutput ($coordinates, $input_name, $is_mandatory, $is_disabled, array $params)

Public Attributes

const SEPARATOR = ';'

Protected Member Functions

 getParameterInfo ()
 Returns an array containing the parameter info.
 getInputHTML (array $params, Parser $parser, $mapName)
 Returns the HTML to display the map input.
 getJSON (array $params, Parser $parser, $mapName)
 Returns the JSON with the maps data.
 getJSONObject (array $params, Parser $parser)
 Returns a PHP object to encode to JSON with the map data.
 getResourceModules ()

Protected Attributes

 $service


Detailed Description

Definition at line 12 of file SM_FormInput.php.


Constructor & Destructor Documentation

SMFormInput::__construct ( iMappingService $  service  ) 

Constructor.

Since:
1.0
Parameters:
iMappingService $service

Definition at line 37 of file SM_FormInput.php.


Member Function Documentation

SMFormInput::getParameterInfo (  )  [protected]

Returns an array containing the parameter info.

Since:
1.0
Returns:
array

Definition at line 48 of file SM_FormInput.php.

References $smgFIFieldSize, and $smgFIMulti.

Referenced by getInputOutput().

SMFormInput::getInputOutput ( coordinates,
input_name,
is_mandatory,
is_disabled,
array $  params 
)

Since:
1.0
Parameters:
string $coordinates
string $input_name
boolean $is_mandatory
boolean $is_disabled
array $field_args
Returns:
string

Definition at line 101 of file SM_FormInput.php.

References getInputHTML(), getJSON(), getParameterInfo(), and getResourceModules().

SMFormInput::getInputHTML ( array $  params,
Parser $  parser,
mapName 
) [protected]

Returns the HTML to display the map input.

Since:
1.0
Parameters:
array $params
Parser $parser
string $mapName
Returns:
string

Definition at line 173 of file SM_FormInput.php.

Referenced by getInputOutput().

SMFormInput::getJSON ( array $  params,
Parser $  parser,
mapName 
) [protected]

Returns the JSON with the maps data.

Since:
1.0
Parameters:
array $params
Parser $parser
string $mapName
Returns:
string

Definition at line 195 of file SM_FormInput.php.

References getJSONObject().

Referenced by getInputOutput().

SMFormInput::getJSONObject ( array $  params,
Parser $  parser 
) [protected]

Returns a PHP object to encode to JSON with the map data.

Since:
1.0
Parameters:
array $params
Parser $parser
Returns:
mixed

Reimplemented in SMGoogleMaps3MultiInput, and SMOpenLayersFormInput.

Definition at line 218 of file SM_FormInput.php.

Referenced by getJSON().

SMFormInput::getResourceModules (  )  [protected]

Since:
1.0
Returns:
array of string

Reimplemented in SMGoogleMaps3FormInput, SMGoogleMaps3MultiInput, SMOpenLayersFormInput, and SMYahooMapsFormInput.

Definition at line 227 of file SM_FormInput.php.

Referenced by getInputOutput().


Member Data Documentation

SMFormInput::$service [protected]

Definition at line 19 of file SM_FormInput.php.

Definition at line 28 of file SM_FormInput.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