lizmapProject
in package
Verify this methods are not used in external modules so we can delete them without risk, otherwise, we have to implement them in Project and call it here
Table of Contents
Properties
- $proj : Project
Methods
- __construct() : mixed
- constructor.
- checkAcl() : bool
- Check acl rights on the project.
- checkAclByUser() : mixed
- clearCache() : mixed
- findEditionLayerByLayerId() : null|object
- findEditionLayerByName() : mixed
- findLayerByAnyName() : mixed
- findLayerByLayerId() : mixed
- findLayerByName() : mixed
- findLayerByShortName() : mixed
- findLayerByTitle() : mixed
- findLayerByTypeName() : mixed
- findLayersByKeyword() : array<string|int, qgisMapLayer>|array<string|int, qgisVectorLayer>
- getAllProj4() : mixed
- getCanvasColor() : mixed
- getCfgFileTime() : mixed
- getData() : mixed
- getDatavizLayersConfig() : array<string|int, mixed>|bool
- getDefaultBottomDockable() : array<string|int, lizmapMapDockItem>
- getDefaultDockable() : array<string|int, lizmapMapDockItem>
- getDefaultMiniDockable() : array<string|int, lizmapMapDockItem>
- getEditionLayers() : mixed
- getEditionLayersForCurrentUser() : mixed
- getFileTime() : mixed
- getFormFilterLayersConfig() : mixed
- getFullCfg() : object
- getGoogleKey() : string
- getKey() : mixed
- getLayer() : mixed
- getLayerByKeyword() : mixed
- getLayerDefinition() : mixed
- getLayerNameByIdFromConfig() : null|string
- getLayers() : mixed
- getLoginFilter() : array<string|int, mixed>
- Get login filtered config with the build expression.
- getLoginFilteredConfig() : mixed
- getLoginFilters() : array<string|int, mixed>
- Get login filtered configs with the build expressions.
- getMetadata() : ProjectMetadata
- Get the minimum needed project information for some pages (landing page, admin project listing).
- getOptions() : mixed
- getPath() : mixed
- getProj4() : mixed
- getProperties() : mixed
- getQgisPath() : mixed
- getQgisProjectVersion() : mixed
- getRelations() : mixed
- getRelativeQgisPath() : mixed
- getRepository() : mixed
- getThemes() : mixed
- getUpdatedConfig() : object
- getWMSInformation() : mixed
- getXmlLayer() : array<string|int, SimpleXMLElement>
- hasAtlasEnabled() : mixed
- hasAttributeLayers() : mixed
- hasEditionLayers() : mixed
- hasEditionLayersForCurrentUser() : mixed
- hasFormFilterLayers() : mixed
- hasFtsSearches() : mixed
- hasLocateByLayer() : mixed
- hasLoginFilteredLayers() : bool
- hasTimemanagerLayers() : mixed
- hasTooltipLayers() : mixed
- needsGoogle() : bool
- needsUpdateError() : bool
- Check if the project needs an update in the QGIS desktop plugin.
- needsUpdateWarning() : bool
- Check if the project needs an update in the QGIS desktop plugin.
Properties
$proj
protected
Project
$proj
Methods
__construct()
constructor.
public
__construct(string $key, Repository $rep, mixed $context, mixed $services) : mixed
Parameters
- $key : string
-
: the project name
- $rep : Repository
-
: the repository
- $context : mixed
- $services : mixed
checkAcl()
Check acl rights on the project.
public
checkAcl() : bool
Return values
bool —true if the current user as rights on the project
checkAclByUser()
public
checkAclByUser(mixed $login) : mixed
Parameters
- $login : mixed
clearCache()
public
clearCache() : mixed
findEditionLayerByLayerId()
public
findEditionLayerByLayerId(string $layerId) : null|object
Parameters
- $layerId : string
Return values
null|objectfindEditionLayerByName()
public
findEditionLayerByName(mixed $name) : mixed
Parameters
- $name : mixed
findLayerByAnyName()
public
findLayerByAnyName(mixed $name) : mixed
Parameters
- $name : mixed
findLayerByLayerId()
public
findLayerByLayerId(mixed $layerId) : mixed
Parameters
- $layerId : mixed
findLayerByName()
public
findLayerByName(mixed $name) : mixed
Parameters
- $name : mixed
findLayerByShortName()
public
findLayerByShortName(mixed $shortName) : mixed
Parameters
- $shortName : mixed
findLayerByTitle()
public
findLayerByTitle(mixed $title) : mixed
Parameters
- $title : mixed
findLayerByTypeName()
public
findLayerByTypeName(mixed $typeName) : mixed
Parameters
- $typeName : mixed
findLayersByKeyword()
public
findLayersByKeyword(string $key) : array<string|int, qgisMapLayer>|array<string|int, qgisVectorLayer>
Parameters
- $key : string
Return values
array<string|int, qgisMapLayer>|array<string|int, qgisVectorLayer>getAllProj4()
public
getAllProj4() : mixed
getCanvasColor()
public
getCanvasColor() : mixed
getCfgFileTime()
public
getCfgFileTime() : mixed
getData()
public
getData(mixed $key) : mixed
Parameters
- $key : mixed
getDatavizLayersConfig()
public
getDatavizLayersConfig() : array<string|int, mixed>|bool
Return values
array<string|int, mixed>|boolgetDefaultBottomDockable()
public
getDefaultBottomDockable() : array<string|int, lizmapMapDockItem>
Tags
Return values
array<string|int, lizmapMapDockItem>getDefaultDockable()
public
getDefaultDockable() : array<string|int, lizmapMapDockItem>
Tags
Return values
array<string|int, lizmapMapDockItem>getDefaultMiniDockable()
public
getDefaultMiniDockable() : array<string|int, lizmapMapDockItem>
Tags
Return values
array<string|int, lizmapMapDockItem>getEditionLayers()
public
getEditionLayers() : mixed
getEditionLayersForCurrentUser()
public
getEditionLayersForCurrentUser() : mixed
getFileTime()
public
getFileTime() : mixed
getFormFilterLayersConfig()
public
getFormFilterLayersConfig() : mixed
getFullCfg()
public
getFullCfg() : object
Return values
object —the full JSON object corresponding to the configuration
getGoogleKey()
public
getGoogleKey() : string
Return values
stringgetKey()
public
getKey() : mixed
getLayer()
public
getLayer(mixed $layerId) : mixed
Parameters
- $layerId : mixed
getLayerByKeyword()
public
getLayerByKeyword(mixed $key) : mixed
Parameters
- $key : mixed
getLayerDefinition()
public
getLayerDefinition(mixed $layerId) : mixed
Parameters
- $layerId : mixed
getLayerNameByIdFromConfig()
public
getLayerNameByIdFromConfig(string $layerId) : null|string
Parameters
- $layerId : string
Return values
null|stringgetLayers()
public
getLayers() : mixed
getLoginFilter()
Get login filtered config with the build expression.
public
getLoginFilter(string $layerName[, bool $edition = false ]) : array<string|int, mixed>
Parameters
- $layerName : string
-
: layer's name
- $edition : bool = false
-
: get login filters for edition
Return values
array<string|int, mixed> —the login filtered config with build expression
getLoginFilteredConfig()
public
getLoginFilteredConfig(mixed $layername) : mixed
Parameters
- $layername : mixed
getLoginFilters()
Get login filtered configs with the build expressions.
public
getLoginFilters(array<string|int, string> $layers[, bool $edition = false ]) : array<string|int, mixed>
Parameters
- $layers : array<string|int, string>
-
: layers' name list
- $edition : bool = false
-
: get login filters for edition
Return values
array<string|int, mixed> —the login filtered configs with build expressions
getMetadata()
Get the minimum needed project information for some pages (landing page, admin project listing).
public
getMetadata() : ProjectMetadata
Return values
ProjectMetadatagetOptions()
public
getOptions() : mixed
getPath()
public
getPath() : mixed
getProj4()
public
getProj4(mixed $authId) : mixed
Parameters
- $authId : mixed
getProperties()
public
getProperties() : mixed
getQgisPath()
public
getQgisPath() : mixed
getQgisProjectVersion()
public
getQgisProjectVersion() : mixed
getRelations()
public
getRelations() : mixed
getRelativeQgisPath()
public
getRelativeQgisPath() : mixed
getRepository()
public
getRepository() : mixed
getThemes()
public
getThemes() : mixed
getUpdatedConfig()
public
getUpdatedConfig() : object
Return values
object —the updated JSON object corresponding to the configuration
getWMSInformation()
public
getWMSInformation() : mixed
getXmlLayer()
public
getXmlLayer(string $layerId) : array<string|int, SimpleXMLElement>
Parameters
- $layerId : string
Return values
array<string|int, SimpleXMLElement>hasAtlasEnabled()
public
hasAtlasEnabled() : mixed
hasAttributeLayers()
public
hasAttributeLayers([mixed $onlyDisplayedLayers = false ]) : mixed
Parameters
- $onlyDisplayedLayers : mixed = false
hasEditionLayers()
public
hasEditionLayers() : mixed
hasEditionLayersForCurrentUser()
public
hasEditionLayersForCurrentUser() : mixed
hasFormFilterLayers()
public
hasFormFilterLayers() : mixed
hasFtsSearches()
public
hasFtsSearches() : mixed
hasLocateByLayer()
public
hasLocateByLayer() : mixed
hasLoginFilteredLayers()
public
hasLoginFilteredLayers() : bool
Return values
boolhasTimemanagerLayers()
public
hasTimemanagerLayers() : mixed
hasTooltipLayers()
public
hasTooltipLayers() : mixed
needsGoogle()
public
needsGoogle() : bool
Return values
boolneedsUpdateError()
Check if the project needs an update in the QGIS desktop plugin.
public
needsUpdateError() : bool
Return values
bool —true if the project needs an update
needsUpdateWarning()
Check if the project needs an update in the QGIS desktop plugin.
public
needsUpdateWarning() : bool
Return values
bool —true if the project needs an update