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

Class: ClientPlugin

Source Location: /client/ClientPlugin.php

Class Overview

PluginBase
   |
   --ClientPlugin

Client plugin


Author(s):

Variables

Constants

Methods


Child classes:

ExportPlugin
Export plugin
ClientAuth
Client authentication plugin based on PEAR:Auth
ClientGeostat
Client Geostat
ClientLayerReorder
Client layereReorder class
ClientOutline
Client Outline class
ClientRouting
ClientEdit
Client Edit class
ClientViews
Handles the views creation/edition/deletion interface.
ClientMapOverlay
Client MapOverlay class
ClientAccounting
Client part of Accounting plugin
ClientWmsBrowser
Client wmsBrowser class
ClientLocate
Locate web service
ClientToolTips
Client part of ClientToolTips plugin
ClientImages
Client part of Images plugin
ClientLayers
Handles layers selection interface
ClientLocation
Client part of Location plugin
ClientQuery
Client part of Query plugin
ClientStatictools
A client plugin class for displaying static tools, like tools for measrurement.
ClientTables
Client part of Tables plugin
ClientFilterIdrecenter
ClientFilterSimple
Plugin to test tables management
Plugin to test tables rules creation
ClientHello
Demo plugin, shows how to output messages and use sessions.
ClientTestMainTableRules
Plugin to test tables rules creation
Plugin which shows a failure message in case the demo data is not installed

Inherited Variables

Inherited Methods

Class: PluginBase

PluginBase::__construct()
Constructor
PluginBase::account()
Records an accounting message for plugins
PluginBase::getBasePath()
PluginBase::getExtendedName()
PluginBase::getName()
PluginBase::getRequest()
Get plugin's request or result out of MapRequest or MapResult
PluginBase::initialize()
Plugin initialization (can be extended in custom plugins)
PluginBase::initializeConfig()
Initializes plugin
PluginBase::preInitialize()
Plugin pre initialization. In most cases, plugins should use
PluginBase::replacePlugin()
Returns name of parent plugin in case of plugin extension
PluginBase::setBasePath()
PluginBase::setExtendedName()
PluginBase::setName()

Class Details

[line 334]
Client plugin



Tags:

abstract:  


[ Top ]


Class Variables

$cartoclient =

[line 365]



Tags:

access:  protected

Type:   Cartoclient


[ Top ]

$config =

[line 370]



Tags:

access:  private

Type:   ClientConfig


[ Top ]

$enabledLevel =  ClientPlugin::ENABLE_LEVEL_FULL

[line 343]

Enable level of the plugin (used for AJAX calls).



Tags:


Type:   int


[ Top ]

$log =

[line 360]



Tags:

access:  private

Type:   Logger
Overrides:   Array


[ Top ]



Class Methods


constructor __construct [line 375]


method checkBool [line 430]

boolean checkBool( mixed $value, string $variable)

Checks if variable $variable has a boolean (0 or 1) value $value.



Tags:

access:  public


Parameters:

mixed   $value   variable value
string   $variable   variable name

[ Top ]

method checkInt [line 413]

boolean checkInt( mixed $value, string $variable)

Checks if variable $variable has an integer positive or zero value $value.



Tags:

access:  public


Parameters:

mixed   $value   variable value
string   $variable   variable name

[ Top ]

method checkNumeric [line 446]

boolean checkNumeric( mixed $value, string $variable)

Checks if variable $variable has a numeric value $value.



Tags:

access:  public


Parameters:

mixed   $value   variable value
string   $variable   variable name

[ Top ]

method disable [line 499]

void disable( )

Sets the enable level to ClientPlugin::ENABLE_LEVEL_SERVERCALL.



Tags:

access:  public


[ Top ]

method enable [line 492]

void enable( )

Sets the enable level to ClientPlugin::ENABLE_LEVEL_FULL.



Tags:

access:  public


[ Top ]

method getCartoclient [line 402]

Cartoclient getCartoclient( )



Tags:

access:  public


[ Top ]

method getConfig [line 395]

ClientConfig getConfig( )



Tags:

access:  public


[ Top ]

method getEnabledLevel [line 485]

int getEnabledLevel( )

Returns the enable level.



Tags:

return:  the current enable level.
access:  public


[ Top ]

method getHttpValue [line 460]

string getHttpValue( array $request, string $key)

Returns the user-submitted $key data if it is set.



Tags:

access:  public


Parameters:

array   $request  
string   $key  

[ Top ]

method initializeConfig [line 385]

void initializeConfig( Cartoclient $initArgs)

Initializes plugin configuration



Tags:

access:  public


Overrides PluginBase::initializeConfig() (Initializes plugin)

Parameters:

Cartoclient   $initArgs   Cartoclient

[ Top ]

method isEnabledAtLevel [line 508]

bool isEnabledAtLevel( mixed $enableLevel)

Sets the enable level to ClientPlugin::ENABLE_LEVEL_FULL.



Tags:

return:  true if the current enable level is equal or greater than the given enable level, false otherwise.
access:  public


[ Top ]

method setEnableLevel [line 472]

void setEnableLevel( int $enableLevel)

Sets the enable level (to be used with the AJAX mode).



Tags:

access:  public


Parameters:

int   $enableLevel  

[ Top ]


Class Constants

ENABLE_LEVEL_FULL =  3

[line 355]


[ Top ]

ENABLE_LEVEL_LOAD =  0

[line 352]


[ Top ]

ENABLE_LEVEL_PROCESS =  1

[line 353]


[ Top ]

ENABLE_LEVEL_SERVERCALL =  2

[line 354]


[ Top ]



Documentation generated on Wed, 30 Aug 2006 21:57:02 +0200 by phpDocumentor 1.3.0RC3