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

Class: LayersInitProvider

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

Class Overview


Creates the LayersInit structure for the layers server plugin. This class is separated from the ServerLayer class for code speratation and lisibility.


Variables

Methods



Class Details

[line 29]
Creates the LayersInit structure for the layers server plugin. This class is separated from the ServerLayer class for code speratation and lisibility.



[ Top ]


Class Variables

$layersInit =

[line 44]



Tags:

access:  public

Type:   MapInfo


[ Top ]

$log =

[line 34]



Tags:

access:  private

Type:   Logger


[ Top ]

$mapId =

[line 54]



Tags:

access:  private

Type:   string


[ Top ]

$projectHandler =

[line 49]



Tags:

access:  private

Type:   ProjectHandler


[ Top ]

$serverContext =

[line 39]



Tags:

access:  private

Type:   ServerContext


[ Top ]

$serverLayers =

[line 59]



Tags:

access:  private

Type:   ServerLayers


[ Top ]



Class Methods


constructor __construct [line 68]

LayersInitProvider __construct( ServerContext $serverContext, ServerLayers $serverLayers, ProjectHandler 2, ServerLayers 3)

Constructor



Tags:

access:  public


Parameters:

ProjectHandler   2  
ServerLayers   3  
ServerContext   $serverContext  
string   $serverLayers   map id

[ Top ]

method fillDynamicLayer [line 218]

void fillDynamicLayer( Layer $layer)

Fills properties of the given Layer object. It opens the underlying corresponding mapserver layer object.



Tags:

access:  private


Parameters:

Layer   $layer  

[ Top ]

method fillDynamicLayerBase [line 99]

void fillDynamicLayerBase( LayerBase $layerBase)

Fills properties of the given LayerBase object.



Tags:

access:  private


Parameters:

LayerBase   $layerBase  

[ Top ]

method fillDynamicLayers [line 276]

void fillDynamicLayers( )

Fills dynamic properties of all layer objects. It calls specific methods for each kind of LayerBase and Layer objects.



Tags:

access:  private


[ Top ]

method fillDynamicMap [line 81]

void fillDynamicMap( )

Fills dynamic general map information, like map name.



Tags:

access:  private


[ Top ]

method getClassIcon [line 190]

string getClassIcon( string $classId, MapObj $msMapObj, ClassObj $msClassObj)

Generates an icon image for classes, and returns its URL.



Tags:

access:  private


Parameters:

string   $classId   class id
MapObj   $msMapObj  
ClassObj   $msClassObj  

[ Top ]

method getIconsRelativePath [line 139]

string getIconsRelativePath( )

Returns the relative path to the icons. It is relative to the directory where generated images are stored.



Tags:

access:  private


[ Top ]

method getIconUrl [line 120]

string getIconUrl( string $icon, [boolean $generated = false])

Returns the URL to the given icon. The URL is calculated using the Resource handler.



Tags:

access:  private


Parameters:

string   $icon   icon relative path
boolean   $generated   indicates if icon has been generated by Cartoserver

[ Top ]

method getInit [line 337]

void getInit( )



Tags:

access:  public
see:  InitProvider::getInit()


[ Top ]

method getSymPath [line 149]

string getSymPath( )

Returns symbols file path.



Tags:

access:  private


[ Top ]

method makeDirectoryWithPerms [line 166]

void makeDirectoryWithPerms( string $directory, string $permsFrom)

Creates a directory recursively. The permissions of the newly created directories are the same as the permission of the given $permsFrom file or directory.



Tags:

access:  private


Parameters:

string   $directory   The directory to create (can create recursively)
string   $permsFrom   Permissions of the newly created directory are the same as this file or directory.

[ Top ]


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