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

Class: ServerLayers

Source Location: /coreplugins/layers/server/ServerLayers.php

Class Overview

PluginBase
   |
   --ServerPlugin
      |
      --ClientResponderAdapter
         |
         --ServerLayers

Server plugin for managing the set of layers to render.


Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 30]
Server plugin for managing the set of layers to render.



[ Top ]


Class Variables

$imageType =

[line 48]

Image type to use for images (outputformat identifier declared in mapfile). May be null to use default one.



Tags:

access:  private

Type:   string


[ Top ]

$log =

[line 35]



Tags:

access:  private

Type:   Logger
Overrides:   Array


[ Top ]

$requestedLayerNames =

[line 41]

The list of layers requested to be drawn by the client.



Tags:

var:  Array of string
access:  private

Type:   array


[ Top ]

$resRatio =

[line 54]

Ratio client-required resolution / Mapserver resolution.



Tags:

access:  private

Type:   float


[ Top ]



Class Methods


constructor __construct [line 59]

ServerLayers __construct( )

Constructor



Tags:

access:  public


Overrides ServerPlugin::__construct() (Constructor)

[ Top ]

method getImageType [line 80]

string getImageType( )

Returns the image type to use for drawing, or null to use mapfile one.



Tags:

access:  public


[ Top ]

method getInit [line 214]

void getInit( )



Tags:

access:  public
see:  InitProvider::getInit()


[ Top ]

method getRequestedLayerNames [line 71]

array getRequestedLayerNames( )

Returns the list of layers requested to be drawn by the client.



Tags:

access:  public


[ Top ]

method getResRatio [line 87]

float getResRatio( )



Tags:

return:  ratio client-required resolution / Mapserver resolution.
access:  public


[ Top ]

method handleCorePlugin [line 172]

void handleCorePlugin( mixed $requ)



Tags:

access:  public
see:  CoreProvider::handleCorePlugin()


[ Top ]

method initializeRequest [line 94]

void initializeRequest( mixed $requ)



Tags:

access:  public
see:  ClientResponder::initializeRequest()


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

[ Top ]

method updateProperties [line 113]

void updateProperties( mixed $obj, array $properties, float $ratio)

Generic function to multiply integer properties of a php mapscript object of a given ratio.



Tags:

access:  private


Parameters:

mixed   $obj   php mapscript object to update
array   $properties   array of numerical properties to update
float   $ratio   multiplicative coefficient

[ Top ]

method updateRatioParameters [line 134]

void updateRatioParameters( ms_layer_obj $layer, float $resRatio)

Updates mapfile objects (layers, classes, styles) properties according to the ratio between required resolution and mapserver one.



Tags:

access:  private


Parameters:

ms_layer_obj   $layer   Mapserver layer object
float   $resRatio   resolutions ratio

[ Top ]


Documentation generated on Wed, 6 Apr 2005 12:06:57 +0200 by phpDocumentor 1.3.0RC3