KWeb  6.4
KWebAttribute_Geometry Class Reference

Attribute for storing/editing of mysql spatial geometry. More...

Inheritance diagram for KWebAttribute_Geometry:
KWebAttribute KWebAttribute_Interface

Public Member Functions

 __construct ($id, $title, $opt=array())
 getType ()
 Zwraca nazwę typu .
 convertData ($value, $format, $conversion)

Detailed Description

Attribute for storing/editing of mysql spatial geometry.

By default, geometry is stored in WKT (Well Known Text) - SQL Spatial format (eg 'POINT(long lat)') So the data should be fetched from db using asText(column). It will be stored using GeomFromText(value)


Constructor & Destructor Documentation

KWebAttribute_Geometry::__construct ( id,
title,
opt = array() 
)

Reimplemented from KWebAttribute.


Member Function Documentation

KWebAttribute_Geometry::convertData ( value,
format,
conversion 
)
Parameters:
$conversiontrue (CONVERT_TO) - dane mają być pokazane W formularzu, false (CONVERT_FROM) - dane pochodzą Z formularza

Reimplemented from KWebAttribute.

KWebAttribute_Geometry::getType ( )

Zwraca nazwę typu .

Reimplemented from KWebAttribute.


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