Class: I2CE Module OpenLayers (Development)
This article describes the class I2CE_Module_OpenLayers .
- Extends the class: I2CE_Module.
- Location: Part of the module OpenLayers in the package I2CE 4.1-dev
- Source: Defined in the file modules/OpenLayers/lib/I2CE_Module_OpenLayers.php on line 29
- Author: Luke Duncan <lduncan@intrahealth.org>
Page for displaying OpenLayers maps.
Methods
addMapDefaults()
Add any necessary defaults to the given map details. This is currently just a default view and any layers defined in the _order, but not in the layers data.
- Defined in i2ce/modules/OpenLayers/lib/I2CE_Module_OpenLayers.php on line 73
- Signature: public function addMapDefaults($maps)
- Parameters:
- array &$maps
The maps data
- array &$maps
encode()
Encode the string for json and make sure it's all numeric when needed.
- Defined in i2ce/modules/OpenLayers/lib/I2CE_Module_OpenLayers.php on line 47
- Signature: static protected function encode($val)
- Parameters:
- mixed $val
- Returns: string
isAssoc()
Determine if the given array is associative or not
- Defined in i2ce/modules/OpenLayers/lib/I2CE_Module_OpenLayers.php on line 63
- Signature: static public function isAssoc($arr)
- Parameters:
- array $arr
- Returns: boolean
processOptions()
Process the map options from an array and return the OpenLayers javascript code to display the map.
- Defined in i2ce/modules/OpenLayers/lib/I2CE_Module_OpenLayers.php on line 118
- Signature: public function processOptions($key,$val,$type)
- Parameters:
- Returns: array
An array of two values, the first is the OpenLayers map and the second is an array of javascript code to be run before the map code.
toNumbers()
Convert the argument to a number value if it is numeric (for proper json_encoding).
- Defined in i2ce/modules/OpenLayers/lib/I2CE_Module_OpenLayers.php on line 36
- Signature: static protected function toNumbers($num)
- Parameters:
- mixed $num
- Returns: mixed
Inherited Methods
__construct()
This public method is inherited from I2CE_Module->__construct()
action_configure()
This public method is inherited from I2CE_Module->action_configure()
action_disable()
This public method is inherited from I2CE_Module->action_disable()
action_enable()
This public method is inherited from I2CE_Module->action_enable()
action_initialize()
This public method is inherited from I2CE_Module->action_initialize()
getCLIMethods()
This public method is inherited from I2CE_Module->getCLIMethods()
getConfig()
This public method is inherited from I2CE_Module->getConfig()
getHooks()
This public method is inherited from I2CE_Module->getHooks()
getMethods()
This public method is inherited from I2CE_Module->getMethods()
post_update()
This public method is inherited from I2CE_Module->post_update()
pre_upgrade()
This public method is inherited from I2CE_Module->pre_upgrade()
upgrade()
This public method is inherited from I2CE_Module->upgrade()
_hasMethod()
This public method is inherited from I2CE_Fuzzy->_hasMethod()
Inherited Fuzzy Methods
launchBackgroundProcess()
This method is inherited from I2CE_Module->launchBackgroundProcess()
launchBackgroundPHPScript()
This method is inherited from I2CE_Module->launchBackgroundPHPScript()
launchBackgroundPage()
This method is inherited from I2CE_Module->launchBackgroundPage()
userMessage()
This method is inherited from I2CE_Fuzzy->userMessage()