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

$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 62]

ServerEdit __construct( )

Constructor



Tags:

access:  public


Overrides ServerPlugin::__construct() (Constructor)

[ Top ]

method checkLayerMetadata [line 545]

boolean checkLayerMetadata( )

Checks if layer metadata are valid.



Tags:

access:  protected


[ Top ]

method deleteFeature [line 336]

queryId deleteFeature( id $feature)

Handles shapes deletion



Tags:

access:  protected


Parameters:

id   $feature   id of the object to update

[ Top ]

method getAttributes [line 131]

array getAttributes( string $layerId)

Returns list of attributes to be returned



Tags:

access:  protected


Parameters:

string   $layerId   layer id

[ Top ]

method getDb [line 72]

DB getDb( mixed $layerId)

Returns the Pear::DB database connection.



Tags:

access:  protected


[ Top ]

method getDsn [line 171]

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 116]

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 210]

string getGeomColumn( )

Gets the geometry column from metadata



Tags:

return:  geometry column
access:  protected


[ Top ]

method getGeometryType [line 225]

string getGeometryType( )

Gets the geometry column from metadata



Tags:

return:  geometry column
access:  protected


[ Top ]

method getMetadataValueString [line 94]

void getMetadataValueString( mixed $layerId, mixed $metadataName)

metadata string value



Tags:

access:  protected


[ Top ]

method getSrid [line 201]

integer getSrid( )

Gets the srid from metadata



Tags:

return:  srid
access:  protected


[ Top ]

method handleDrawing [line 621]

EditResult handleDrawing( EditRequest $requ)

Handles shapes drawing



Tags:

access:  public


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

Parameters:

EditRequest   $requ  

[ Top ]

method handlePreDrawing [line 576]

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 244]

queryId insertFeature( array $feature)

Handles shapes input



Tags:

access:  protected


Parameters:

array   $feature   array of shapes

[ Top ]

method pointToBox3D [line 362]

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 497]

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 380]

void selectFeaturesByShape( array $shapes)

Handles shapes input



Tags:

access:  protected


Parameters:

array   $shapes   array of shapes

[ Top ]

method updateFeature [line 293]

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 Mon, 13 Feb 2006 11:44:05 +0100 by phpDocumentor 1.3.0RC3