Source API for the «PortePlugins_Gis» class
PortePlugins_Gis
Add gis support and related methods.
By default, only one property of type "point" must be defined, no other setting than the type is required.
For now, "x" and "y" are required but ideally:
Since a point is a coordinate with x and y axis, the plugin could create two additionnal properties. They will be stored in the database but only for convenience, they won't be used in sql computing. The name of the properties are defined by the keys "x" and "y" in the property definition.
Exemple defining the "x" and "y" properties:
"my_coordinates" => array( "type" => "point", "x" => "my_x", "y" => "my_y" )
Exemple enriching the "x" and "y" properties:
"my_x" => array( "field" => "my_x_field" ), "my_y" => array( "field" => "my_y_field" ), "my_coordinates" => array( "type" => "point", "x" => "my_x", "y" => "my_y" )
Public static methods
- register
-
Register the plugin with a Porte instance.
- sanitize
-
This method is not yet documented.
- getDistance
-
This method is not yet documented.
- getNearest
-
This method is not yet documented.
- get
-
This method is not yet documented.
- fromDb
-
This method is not yet documented.
- set
-
This method is not yet documented.
- getSelect
-
This method is not yet documented.
- tableUpdate
-
This method is not yet documented.
- save
-
This method is not yet documented.
- fromArray
-
This method is not yet documented.