Class: ClientLayers
Source Location: /coreplugins/layers/client/ClientLayers.php
Inherited Constants
|
Inherited Variables
|
Inherited Methods
|
Class Details
[line 202]
Handles layers selection interface
Class Variables
Class Methods
constructor __construct [line 341]
method adjustExportMapRequest [line 1853]
void adjustExportMapRequest(
ExportConfiguration
$configuration, MapRequest
$mapRequest)
|
|
Tags:
method ajaxGetPluginResponse [line 1527]
void ajaxGetPluginResponse(
AjaxPluginResponse
$ajaxPluginResponse)
|
|
Tags:
method ajaxHandleAction [line 1540]
void ajaxHandleAction(
mixed
$actionName, PluginEnabler
$pluginEnabler)
|
|
Tags:
method buildRequest [line 1028]
method createSession [line 409]
void createSession(
MapInfo
$mapInfo, InitialMapState
$initialMapState)
|
|
Initializes layers session data and initially populates some properties.
Tags:
method drawLayersList [line 1455]
Initializes layers selector interface.
Tags:
method drawSwitches [line 1481]
Draws switches dropdown
Tags:
method fetchChildrenFromLayerGroup [line 940]
array fetchChildrenFromLayerGroup(
array
$layersList, [boolean
$listLayerGroups = false])
|
|
Determines activated layers by recursively browsing LayerGroups. Only keeps Layer objects that are not detected as {hidden AND not selected}.
Tags:
Parameters:
method fetchFrozenSelectedLayers [line 873]
array fetchFrozenSelectedLayers(
string
$layerId, [boolean
$forceFrozen = false], [boolean
$forceSelected = false])
|
|
Recursively retrieves selected frozen layers.
Tags:
Parameters:
method fetchHiddenSelectedLayers [line 853]
array fetchHiddenSelectedLayers(
string
$layerId, [boolean
$forceHidden = false], [boolean
$forceSelected = false])
|
|
Recursively retrieves selected hidden layers (not transmitted by the browser). Since "hidden" property is inheritated by layers from their declared-as-hidden parents, those layers selection statuses are retrieved as well.
Tags:
Parameters:
method fetchLayer [line 1294]
array fetchLayer(
LayerBase
$layer, [boolean
$forceSelection = false], [boolean
$forceFrozen = false], [string
$layerRendering = self::RENDERING_TREE], [int
$parentId = 0])
|
|
Deals with every single layer and recursively calls itself to build sublayers.
Tags:
Parameters:
method fetchLayerIcon [line 1218]
string fetchLayerIcon(
LayerBase
$layer, [array
&$children = array()])
|
|
Returns layer icon filename if any.
Tags:
Parameters:
method fetchRecursively [line 897]
array fetchRecursively(
LayerBase
$layer, string
$type, boolean
$forceFixed, boolean
$forceSelected)
|
|
Performs common recursive job for fetchHiddenSelectedLayers() and fetchFrozenSelectedLayers().
Tags:
Parameters:
method getClassChildren [line 1165]
Recursively retrieves the list of Mapserver Classes bound to the layer or its sublayers.
Tags:
Parameters:
method getCurrentScale [line 1186]
Retrieves current scale from location plugin
Tags:
method getFrozenLayers [line 837]
Returns the list of explicitely frozen layers.
Tags:
method getHiddenLayers [line 829]
Returns the list of explicitely hidden layers.
Tags:
method getLayerByName [line 608]
LayerBase getLayerByName(
string
$layername, [boolean
$strict = true])
|
|
Returns the Layer|LayerGroup|LayerClass object whose name is passed.
Tags:
Parameters:
method getLayerChildren [line 623]
Returns a list of current layer children, taking into account some criteria such as aggregation, LayerClass name validity.
Tags:
Parameters:
method getLayerIds [line 583]
method getLayerNode [line 543]
Construct a new tree of layerNodes by getting the layers from the mapInfo.
Tags:
method getLayerParent [line 1804]
object layer getLayerParent(
string
$layerId, array
$allLayers)
|
|
Find and return the parent of a layer
Tags:
Parameters:
method getLayers [line 593]
array getLayers(
[boolean
$forceRefresh = false])
|
|
Returns the list of Layer|LayerGroup|LayerClass objects available in MapInfo.
Tags:
Parameters:
method getLayersInit [line 1846]
method getLayersMask [line 983]
array getLayersMask(
[string
$layerId = 'root'], [bool
$resetCache = false])
|
|
Recursively determines layers that can be selected in layers selector.
Tags:
Parameters:
method getLayersSecurityFiltered [line 564]
array getLayersSecurityFiltered(
)
|
|
Filters the layers which are not allowed to be viewed by the current user. It returns a flat map of (layerId => Layer object).
Tags:
method getMatchingLayers [line 792]
array getMatchingLayers(
string
$stateProperty, string
$storageName, [boolean
$refresh = false])
|
|
Returns a list of layers that match passed condition. Is in fact a code factorizer for get*Layers() methods.
Tags:
Parameters:
method getNewSessionObject [line 401]
Gets a new instance of layers-plugin session-storage class. Usefull in extended ClientLayers class when using extended session storage class.
Tags:
method getPrintedIconPath [line 1559]
string getPrintedIconPath(
string
$icon)
|
|
Returns icon full path.
Tags:
Parameters:
method getPrintedLayerData [line 1572]
array getPrintedLayerData(
string
$layerId, mixed
$resolution)
|
|
Returns given layer printing data (icon, label, children...).
Tags:
Parameters:
method getPrintedLayers [line 1774]
array getPrintedLayers(
array
$selectedLayers, float
$scale, [mixed
$resolution = 0])
|
|
Returns the list of layers actually printed on mainmap as well as their classes and parent LayerGroups if any (mainly used for PDF printing).
Tags:
Parameters:
method getPrintedParents [line 1643]
void getPrintedParents(
string
$layerId, array
$allLayers, array
&$printedNodes, string
$childIdRef)
|
|
Add into $printedNodes the parent nodes which are 'aggregate' or 'showInPdfLegend'
Tags:
Parameters:
method getSelectedLayers [line 812]
array getSelectedLayers(
[boolean
$refresh = false])
|
|
Returns the list of activated layers.
Tags:
Parameters:
method getSwitchTargetId [line 1878]
string getSwitchTargetId(
)
|
|
get target id for switch
Tags:
method getUnfoldedLayerGroups [line 821]
array getUnfoldedLayerGroups(
)
|
|
Returns the list of LayerGroups that must be rendered unfolded.
Tags:
method handleHttpGetRequest [line 757]
void handleHttpGetRequest(
mixed
$request)
|
|
Handles data from GET request.
Tags:
method handleHttpPostRequest [line 701]
void handleHttpPostRequest(
mixed
$request)
|
|
Handles layers-related POST'ed data and updates layers statuses.
Tags:
method handleInit [line 349]
void handleInit(
mixed
$layersInit)
|
|
Tags:
method handleResult [line 1157]
void handleResult(
mixed
$layersResult)
|
|
Tags:
method handleSwitches [line 659]
void handleSwitches(
array
$request)
|
|
Handles switches form
Tags:
Parameters:
method initializeResult [line 1046]
void initializeResult(
mixed
$layersResult)
|
|
Tags:
method initUnauthorizedSwitches [line 469]
void initUnauthorizedSwitches(
LayerContainer
$layer)
|
|
Initializes list of unauthorized layers due to switches marked as unauthorized.
Tags:
Parameters:
method isLayerVisibleAtCurrentScale [line 1608]
boolean isLayerVisibleAtCurrentScale(
string
$layerId)
|
|
Tells if given layer is visible at current scale Checks for classes scale visibility
Tags:
Parameters:
method isLayerVisibleAtScale [line 1621]
boolean isLayerVisibleAtScale(
string
$layerId, int
$scale)
|
|
Tells if given layer is visible at given scale Checks for classes scale visibility
Tags:
Parameters:
method isOutOfRangeIcon [line 1206]
boolean isOutOfRangeIcon(
string
$icon)
|
|
Tags:
Parameters:
method loadSession [line 361]
void loadSession(
mixed
$sessionObject)
|
|
Retrieves session-saved layers data.
Tags:
method nodesFilterSecurity [line 522]
boolean nodesFilterSecurity(
LayerNode
$node)
|
|
Callback used to remove nodes which are not visible by the current user. If it returns true, the node will be ignored in the tree.
Tags:
Parameters:
method orderPrintedNodes [line 1709]
void orderPrintedNodes(
array
$printedNodes, array
$nodesToSort, [bool
$checkOrphan = true])
|
|
Hierarchicaly reorder the nodes
Tags:
Parameters:
method renderForm [line 1517]
void renderForm(
Smarty
$template)
|
|
Assigns the layers interface output in the general Cartoclient template.
Tags:
method saveSession [line 1836]
Saves layers data in session.
Tags:
method setOutofScaleIcon [line 1264]
Substitutes out-of-scale icons if current scale is out of the layer range of scales.
Tags:
Parameters:
method setSwitch [line 672]
void setSwitch(
string
$newSwitch)
|
|
Changes switch from another plugin
Tags:
Parameters:
Class Constants
|