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

Class: ClientImages

Source Location: /coreplugins/images/client/ClientImages.php

Class Overview

PluginBase
   |
   --ClientPlugin
      |
      --ClientImages

Client part of Images plugin


Variables

Constants

Methods


Inherited Variables

Inherited Methods

Class: ClientPlugin

ClientPlugin::__construct()
Constructor
ClientPlugin::checkBool()
Checks if variable $variable has a boolean (0 or 1) value $value.
ClientPlugin::checkInt()
Checks if variable $variable has an integer positive or zero value $value.
ClientPlugin::checkNumeric()
Checks if variable $variable has a numeric value $value.
ClientPlugin::getCartoclient()
ClientPlugin::getConfig()
ClientPlugin::getHttpValue()
Returns the user-submitted $key data if it is set.
ClientPlugin::initializeConfig()
Initializes plugin configuration

Class: PluginBase

PluginBase::__construct()
Constructor
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 52]
Client part of Images plugin



[ Top ]


Class Variables

$collapseKeymap =  0

[line 82]

Indicates if keymap must be collapsible



Tags:

access:  protected

Type:   boolean


[ Top ]

$imagesResult =

[line 70]

Last server result



Tags:

access:  protected

Type:   ImagesResult


[ Top ]

$imagesState =

[line 64]

Current session state



Tags:

access:  protected

Type:   ImagesState


[ Top ]

$log =

[line 58]



Tags:

access:  private

Type:   Logger
Overrides:   Array


[ Top ]

$mapSizes =

[line 76]

Possible map sizes



Tags:

access:  protected

Type:   array


[ Top ]



Class Methods


constructor __construct [line 97]

ClientImages __construct( )

Constructor



Tags:

access:  public


Overrides ClientPlugin::__construct() (Constructor)

[ Top ]

method adjustExportMapRequest [line 383]

void adjustExportMapRequest( ExportConfiguration $configuration, MapRequest $mapRequest)



Tags:

access:  public
see:  Exportable::adjustExportMapRequest()


[ Top ]

method buildRequest [line 232]

void buildRequest( )



Tags:

access:  public
see:  ServerCaller::buildRequest()


[ Top ]

method createSession [line 112]

void createSession( MapInfo $mapInfo, InitialMapState $initialMapState)



Tags:

access:  public
see:  Sessionable::createSession()


[ Top ]

method drawMapSizes [line 317]

string drawMapSizes( )

Draws map sizes choice



Tags:

return:  Smarty generated HTML content
access:  protected


[ Top ]

method getImageUrl [line 279]

string getImageUrl( string $path, [boolean $useXhtml = true], [mixed $forceAbsolute = false])



Tags:

return:  The URL to the image, as put inside the html template
access:  protected


Parameters:

string   $path   minimal image path
boolean   $useXhtml   True to make URL XHTML-compliant

[ Top ]

method getMainmapDimensions [line 186]

Dimension getMainmapDimensions( )

Returns the dimensions of the main map. It may be used by other plugins.



Tags:

access:  public


[ Top ]

method getMapSizes [line 194]

array getMapSizes( )

Returns the list of map sizes to display.



Tags:

return:  Array of map sizes (Map with label, with and height keys)
access:  protected


[ Top ]

method handleHttpGetRequest [line 173]

void handleHttpGetRequest( mixed $request)



Tags:

access:  public
see:  GuiProvider::handleHttpPostRequest()


[ Top ]

method handleHttpPostRequest [line 158]

void handleHttpPostRequest( mixed $request)



Tags:

access:  public
see:  GuiProvider::handleHttpPostRequest()


[ Top ]

method handleMapSize [line 130]

void handleMapSize( array $request, [boolean $check = false])

Handles map sizes dropdown box



Tags:

access:  protected


Parameters:

array   $request   HTTP request
boolean   $check   checks?

[ Top ]

method handleResult [line 272]

void handleResult( mixed $imagesResult)



Tags:

access:  public
see:  ServerCaller::handleResult()


[ Top ]

method initializeResult [line 261]

void initializeResult( mixed $imagesResult)



Tags:

access:  public
see:  ServerCaller::initializeResult()


[ Top ]

method initMapSizes [line 290]

array initMapSizes( )

Reads map sizes from configuration



Tags:

return:  Array of map sizes (Map with label, with and height keys)
access:  protected


[ Top ]

method loadSession [line 104]

void loadSession( mixed $sessionObject)



Tags:

access:  public
see:  Sessionable::loadSession()


[ Top ]

method outputMainmap [line 414]

void outputMainmap( )

Outputs raw mainmap image.



Tags:

access:  public


[ Top ]

method renderForm [line 333]

void renderForm( Smarty $template)



Tags:

access:  public
see:  GuiProvider::renderForm()


[ Top ]

method saveSession [line 375]

void saveSession( )



Tags:

access:  public
see:  Sessionable::saveSession()


[ Top ]

method setMapDimensions [line 210]

void setMapDimensions( int &$mapWidth, int &$mapHeight)

Sets map width and height

Sets from:

  • Selected size from predefined list, if config's mapSizesActive = true
  • Fixed size from config file
  • Default size




Tags:

access:  protected


Parameters:

int   &$mapWidth   width to be set
int   &$mapHeight   height to be set

[ Top ]


Class Constants

DEF_MAP_HEIGHT =  200

[line 92]

Default map height, if not specified in config


[ Top ]

DEF_MAP_WIDTH =  400

[line 87]

Default map width, if not specified in config


[ Top ]



Documentation generated on Mon, 13 Feb 2006 11:43:30 +0100 by phpDocumentor 1.3.0RC3