constructor __construct [line 371]
Cartoclient __construct(
)
|
|
Constructor
Initializes:
- Project handler
- MapInfo cache
- Client objects
- Session
Plugins cannot call internationalization functions in constructor and in preInitialize().
Tags:
method addMessage [line 595]
void addMessage(
string
$message, [int
$channel = Message::CHANNEL_USER])
|
|
Adds a message to the list of message to display to the user
Tags:
Parameters:
method areViewsEnable [line 621]
boolean areViewsEnable(
)
|
|
Tells if views are enabled in configuration.
Tags:
method callEnabledPluginImplementing [line 697]
void callEnabledPluginImplementing(
int
$enableLevel, string
$pluginName, string
$interface, string
$functionName)
|
|
Calls a given $pluginName implementing an interface if its enable level is equal or higher than the given $enableLevel Interfaces are declared in
ClientPlugin.
Tags:
Parameters:
method callEnabledPluginsImplementing [line 678]
void callEnabledPluginsImplementing(
int
$enableLevel, string
$interface, string
$functionName)
|
|
Calls enabled plugins implementing an interface A plugin is enabled if its enable level is equal or higher than the given $enableLevel Interfaces are declared in
ClientPlugin.
Tags:
Parameters:
method callPluginsImplementing [line 660]
void callPluginsImplementing(
string
$interface, string
$functionName)
|
|
Calls plugins implementing an interface
Interfaces are declared in ClientPlugin.
Tags:
Parameters:
method clientAllowed [line 953]
Returns whether the current user has privileges to access cartoweb. It
reads the securityAllowedRoles variable in client.ini
Tags:
method doExport [line 1118]
string doExport(
ExportPlugin
$plugin)
|
|
Alternative processing of doMain() when exporting data.
Tags:
Parameters:
method doMain [line 974]
Main method
- Plugins initialization
- HTTP request handling
- Map request construction
- Server call
- Result handling
- Display
- Session save
Tags:
method getAjaxAction [line 556]
Returns the requested AJAX action
Tags:
method getCartoForm [line 470]
method getCartoserverService [line 512]
method getClientSession [line 484]
method getClientVersion [line 579]
array getClientVersion(
)
|
|
Returns CartoWeb version and revision strings of the Cartoclient
Tags:
method getConfig [line 442]
method getCorePluginNames [line 571]
array getCorePluginNames(
)
|
|
Returns the names of core plugins
Tags:
Overrides
Cartocommon::getCorePluginNames() (Returns the names of core plugins shared by client and server)
method getFormRenderer [line 505]
method getHttpRequestHandler [line 491]
method getInitialMapState [line 841]
Retrieves initialMapState data depending on detected initialMapStateId.
initialMapStateId is determined using (by order of priority): $_REQUEST, $_ENV, client.ini, auto (first initialMapState found).
Tags:
method getInstance [line 432]
Returns the instance of this class. There is only one during the cartoclient lifetime.
Tags:
method getMapInfo [line 724]
Returns Map Info, get it from cache if not yet set
Tags:
method getMapInfoCache [line 712]
Returns the MapInfoCache
Tags:
method getMapRequest [line 899]
Initializes map request with current mapId
Tags:
method getMapResult [line 477]
method getMapResultFromRequest [line 914]
Calls Cartoserver service to get results
Also checks that MapInfo is up-to-date. If not, MapInfo cache reloads it.
Tags:
Parameters:
method getMessages [line 603]
method getOutputType [line 632]
Returns the current output type (pdf, csv, html, etc.).
Tags:
method getPluginManager [line 498]
method getProjectHandler [line 452]
method getResourceHandler [line 459]
method getSelfUrl [line 945]
Returns current base URL.
Tags:
method getSessionName [line 741]
Builds and returns session name.
Tags:
method getValidExportType [line 1187]
mixed getValidExportType(
)
|
|
Tells if an export plugin is available for current output and returns it.
Tags:
method getViewManager [line 610]
method initializeObjects [line 1164]
void initializeObjects(
)
|
|
Initializes client objects
Initializes:
- Configuration
- I18n
- UTF/ISO Encoding
- Plugins
- Cartoserver service
- HTTP request handler
- Form renderer
Tags:
method initializePlugins [line 639]
void initializePlugins(
)
|
|
Initializes core and normal client plugins
Tags:
method initializeSession [line 807]
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:
method isAjaxMode [line 521]
Tells if the Cartoclient runs in AJAX mode
Tags:
method isInterruptFlow [line 937]
Returns true if the flow of operation has to be interrupted, and the template displayed without calling server.
Tags:
method main [line 1205]
method manageViewsSystem [line 1137]
void manageViewsSystem(
)
|
|
Detects if views controller must be launched.
Tags:
method prepareAjax [line 1084]
void prepareAjax(
string
$ajaxAction)
|
|
Prepares the AJAX mode by setting plugins enable level according the given ajaxAction.
Tags:
Parameters:
method saveSession [line 778]
Saves session data in a different container for each mapId
Tags:
method setAjaxAction [line 529]
string setAjaxAction(
mixed
$ajaxAction)
|
|
Sets the current AJAX action
Tags:
method setClientSession [line 563]
method setInterruptFlow [line 928]
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:
Parameters: