Plugins
[ class tree: Plugins ] [ index: Plugins ] [ all elements ]

Class: ServerEdit

Source Location: /plugins/edit/server/ServerEdit.php

Class Overview

PluginBase
   |
   --ServerPlugin
      |
      --ClientResponderAdapter
         |
         --ServerEdit

Server Edit class


Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 34]
Server Edit class



[ Top ]


Class Variables

$attributeRendering =

[line 63]

List of rendering type (for attributes)



Tags:

access:  protected

Type:   array


[ Top ]

$attributes =

[line 57]

List of attributes



Tags:

access:  protected

Type:   array


[ Top ]

$db =

[line 45]

Database object



Tags:

access:  protected

Type:   DB


[ Top ]

$idAttribute =

[line 51]

Id attribute



Tags:

access:  protected

Type:   string


[ Top ]

$log =

[line 39]



Tags:

access:  protected

Type:   Logger
Overrides:   Array


[ Top ]



Class Methods


constructor __construct [line 68]

ServerEdit __construct( )

Constructor



Tags:

access:  public


Overrides ServerPlugin::__construct() (Constructor)

[ Top ]

method checkLayerMetadata [line 579]

boolean checkLayerMetadata( )

Checks if layer metadata are valid.



Tags:

access:  protected


[ Top ]

method deleteFeature [line 367]

queryId deleteFeature( id $feature)

Handles shapes deletion



Tags:

access:  protected


Parameters:

id   $feature   id of the object to update

[ Top ]

method getAttributes [line 136]

array getAttributes( string $layerId)

Returns list of attributes to be returned



Tags:

access:  protected


Parameters:

string   $layerId   layer id

[ Top ]

method getDb [line 78]

DB getDb( mixed $layerId)

Returns the Pear::DB database connection.



Tags:

access:  protected


[ Top ]

method getDsn [line 202]

string getDsn( string $layerId)

Converts the mapfile connection to acceptable DSN



Tags:

return:  dsn
access:  protected


Parameters:

string   $layerId   layer id

[ Top ]

method getEditableAttributes [line 121]

void getEditableAttributes( mixed $attributes)

Gets the "edit_attributes" string from a list of attributes and from metadata



Tags:

var:  layer id
access:  protected


[ Top ]

method getGeomColumn [line 241]

string getGeomColumn( )

Gets the geometry column from metadata



Tags:

return:  geometry column
access:  protected


[ Top ]

method getGeometryType [line 256]

string getGeometryType( )

Gets the geometry column from metadata



Tags:

return:  geometry column
access:  protected


[ Top ]

method getMetadataValueString [line 99]

void getMetadataValueString( mixed $layerId, mixed $metadataName)

metadata string value



Tags:

access:  protected


[ Top ]

method getSrid [line 232]

integer getSrid( )

Gets the srid from metadata



Tags:

return:  srid
access:  protected


[ Top ]

method handleDrawing [line 656]

EditResult handleDrawing( EditRequest $requ)

Handles shapes drawing



Tags:

access:  public


Overrides ClientResponderAdapter::handleDrawing() (parent method not documented)

Parameters:

EditRequest   $requ  

[ Top ]

method handlePreDrawing [line 610]

EditResult handlePreDrawing( EditRequest $requ)

Handles shapes insert in the database



Tags:

access:  public


Overrides ClientResponderAdapter::handlePreDrawing() (parent method not documented)

Parameters:

EditRequest   $requ  

[ Top ]

method insertFeature [line 275]

queryId insertFeature( array $feature)

Handles shapes input



Tags:

access:  protected


Parameters:

array   $feature   array of shapes

[ Top ]

method pointToBox3D [line 393]

box3D pointToBox3D( Dimension $x, x $y, y $width, Bbox $height, Bbox $bbox, [mixed $tolerance = 3])

converts a geographical point to a Box3D using tolerance



Tags:

access:  protected


Parameters:

Dimension   $x   image size
x   $y   geo coordinate
y   $width   geo coordinate
Bbox   $height   current bbox in geographical coordinates
tolerance   $bbox   tolerance given in pixel

[ Top ]

method selectFeaturesById [line 531]

array selectFeaturesById( string $featuresIds)

Select shapes with given id's from database



Tags:

return:  array of features
access:  protected


Parameters:

string   $featuresIds   list of ids

[ Top ]

method selectFeaturesByShape [line 411]

void selectFeaturesByShape( array $shapes)

Handles shapes input



Tags:

access:  protected


Parameters:

array   $shapes   array of shapes

[ Top ]

method updateFeature [line 324]

queryId updateFeature( id $feature, array 1)

Handles shapes update



Tags:

access:  protected


Parameters:

array   1   array of shapes
id   $feature   id of the object to update

[ Top ]


Documentation generated on Thu, 04 Sep 2008 11:39:49 +0200 by phpDocumentor 1.3.0RC3