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

Class: Cartoclient

Source Location: /client/Cartoclient.php

Class Overview


Main Cartoclient class


Variables

Methods



Class Details

[line 214]
Main Cartoclient class



[ Top ]


Class Variables

$cartoForm =

[line 239]



Tags:

access:  private

Type:   CartoForm


[ Top ]

$cartoserverService =

[line 259]



Tags:

access:  private

Type:   CartoserverService


[ Top ]

$clientSession =

[line 234]



Tags:

access:  private

Type:   ClientSession


[ Top ]

$config =

[line 269]



Tags:

access:  private

Type:   ClientConfig


[ Top ]

$formRenderer =

[line 254]



Tags:

access:  private

Type:   FormRenderer


[ Top ]

$httpRequestHandler =

[line 249]



Tags:

access:  private

Type:   HttpRequestHandler


[ Top ]

$interruptFlow =  false

[line 292]

When true, the cartoweb flow of operation will be interrupted and the html will be displayed.



Tags:

access:  private

Type:   boolean


[ Top ]

$log =

[line 219]



Tags:

access:  private

Type:   Logger


[ Top ]

$mapInfo =

[line 224]



Tags:

access:  private

Type:   MapInfo


[ Top ]

$mapInfoCache =

[line 229]



Tags:

access:  private

Type:   MapInfoCache


[ Top ]

$mapResult =

[line 244]



Tags:

access:  private

Type:   MapResult


[ Top ]

$messages = array()

[line 285]

Array of user/developer messages



Tags:

access:  private

Type:   array


[ Top ]

$pluginManager =

[line 264]



Tags:

access:  private

Type:   PluginManager


[ Top ]

$projectHandler =

[line 274]



Tags:

access:  private



[ Top ]

$resourceHandler =

[line 279]



Tags:

access:  private

Type:   ResourceHandler


[ Top ]



Class Methods


constructor __construct [line 303]

Cartoclient __construct( )

Constructor

Initializes:

  • Project handler
  • MapInfo cache
  • Client objects
  • Session




Tags:

access:  public


[ Top ]

method addMessage [line 436]

void addMessage( string $message, [int $channel = Message::CHANNEL_USER])

Adds a message to the list of message to display to the user



Tags:

access:  public


Parameters:

string   $message   the text of the message
int   $channel   the channel identifier of the message

[ Top ]

method callPluginsImplementing [line 472]

void callPluginsImplementing( string $interface, string $functionName)

Calls plugins implementing an interface

Interfaces are declared in ClientPlugin.




Tags:

access:  public


Parameters:

string   $interface   interface name
string   $functionName   function name

[ Top ]

method clientAllowed [line 614]

void clientAllowed( )

Returns whether the current user has privileges to access cartoweb. It

reads the securityAllowedRoles variable in client.ini




Tags:

access:  public


[ Top ]

method doMain [line 634]

void doMain( )

Main method

  • Plugins initialization
  • HTTP request handling
  • Map request construction
  • Server call
  • Result handling
  • Display
  • Session save




Tags:

access:  private


[ Top ]

method getCartoForm [line 368]

CartoForm getCartoForm( )



Tags:

access:  public


[ Top ]

method getCartoserverService [line 410]

CartoserverService getCartoserverService( )



Tags:

access:  public


[ Top ]

method getClientSession [line 382]

ClientSession getClientSession( )



Tags:

access:  public


[ Top ]

method getConfig [line 340]

ClientConfig getConfig( )



Tags:

access:  public


[ Top ]

method getCorePluginNames [line 425]

array getCorePluginNames( )

Returns the names of core plugins



Tags:

return:  names
access:  private


[ Top ]

method getFormRenderer [line 403]

FormRenderer getFormRenderer( )



Tags:

return:  the current form renderer
access:  public


[ Top ]

method getHttpRequestHandler [line 389]

HttpRequestHandler getHttpRequestHandler( )



Tags:

access:  public


[ Top ]

method getMapInfo [line 497]

MapInfo getMapInfo( )

Returns Map Info, get it from cache if not yet set



Tags:

return:  MapInfo
access:  public
see:  MapInfoCache


[ Top ]

method getMapInfoCache [line 485]

MapInfoCache getMapInfoCache( )

Returns the MapInfoCache



Tags:

access:  private


[ Top ]

method getMapRequest [line 568]

MapRequest getMapRequest( )

Initializes map request with current mapId



Tags:

return:  new map request
access:  private


[ Top ]

method getMapResult [line 375]

MapResult getMapResult( )



Tags:

access:  public


[ Top ]

method getMapResultFromRequest [line 583]

MapResult getMapResultFromRequest( MapRequest $mapRequest)

Calls Cartoserver service to get results

Also checks that MapInfo is up-to-date. If not, MapInfo cache reloads it.




Tags:

return:  result returned by server
access:  private
see:  MapInfoCache


Parameters:

MapRequest   $mapRequest   the map request

[ Top ]

method getMessages [line 444]

array getMessages( )



Tags:

access:  public


[ Top ]

method getPluginManager [line 396]

PluginManager getPluginManager( )



Tags:

access:  public


[ Top ]

method getProjectHandler [line 350]

ProjectHandler getProjectHandler( )



Tags:

return:  the current cartoclient project handler
access:  public


[ Top ]

method getResourceHandler [line 357]

ResourceHandler getResourceHandler( )



Tags:

return:  the cartoclient resource handler
access:  public


[ Top ]

method initializeObjects [line 720]

void initializeObjects( )

Initializes client objects

Initializes:

  • Configuration
  • I18n
  • UTF/ISO Encoding
  • Plugins
  • Cartoserver service
  • HTTP request handler
  • Form renderer




Tags:

access:  private


[ Top ]

method initializePlugins [line 451]

void initializePlugins( )

Initializes core and normal client plugins



Tags:

access:  private


[ Top ]

method initializeSession [line 526]

void initializeSession( )

Initializes session

If the mapId's session is not created yet, it is created and initialized. For creation and reload, plugins are called to manage their session data.




Tags:

access:  private
see:  Sessionable


[ Top ]

method isInterruptFlow [line 606]

void isInterruptFlow( )

Returns true if the flow of operation has to be interrupted, and the template displayed without calling server.



Tags:

access:  public
see:  #setInterruptFlow()


[ Top ]

method main [line 741]

void main( )

Main entry point.

Calls Cartoclient::doMain() with exception handling.




Tags:

access:  public


[ Top ]

method saveSession [line 510]

void saveSession( ClientSession $clientSession)

Save session in a variable different for each mapId



Tags:

access:  private


Parameters:

ClientSession   $clientSession   object to save in session

[ Top ]

method setClientSession [line 417]

void setClientSession( ClientSession $clientSession)



Tags:

access:  public


Parameters:

ClientSession   $clientSession  

[ Top ]

method setInterruptFlow [line 597]

void setInterruptFlow( boolean $interruptFlow)

Tells the Cartoclient that the normal control flow has to be interrupted.

When true, the server will not be called, and the final template drawing step is invoked.




Tags:

access:  public


Parameters:

boolean   $interruptFlow   true if the control flow has to be interrupted.

[ Top ]


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