ProjectProperties
extends BaseQgisXmlObject
in package
QGIS Project Properties class.
Table of Contents
Properties
- $Gui : null|ProjectGuiProperties
- $Variables : null|ProjectVariables
- $WFSLayers : null|array<string|int, string>
- $WMSAddWktGeometry : null|bool
- $WMSContactMail : null|string
- $WMSContactOrganization : null|string
- $WMSContactPerson : null|string
- $WMSContactPhone : null|string
- $WMSExtent : null|array<string|int, float>
- $WMSKeywordList : null|array<string|int, string>
- $WMSMaxAtlasFeatures : null|int
- $WMSMaxHeight : null|int
- $WMSMaxWidth : null|int
- $WMSOnlineResource : null|string
- $WMSRestrictedComposers : null|array<string|int, string>
- $WMSRestrictedLayers : null|array<string|int, string>
- $WMSServiceAbstract : null|string
- $WMSServiceTitle : null|string
- $WMSUseLayerIDs : null|bool
- $childParsers : mixed
- $children : array<string|int, string>
- $childrenCollection : array<string, string>
- $defaultValues : array<string|int, mixed>
- $mandatoryChildren : array<string|int, string>
- $mandatoryProperties : array<string|int, string>
- $properties : array<string|int, string>
- $qgisLocalName : string
- $data : array<string|int, mixed>
Methods
- __construct() : mixed
- Base QGIS object constructor.
- __get() : mixed
- __isset() : bool
- __set() : void
- __unset() : void
- fromXmlReader() : BaseQgisObject
- Get an QGIS object instance from an XMLReader instance at an element.
- getData() : array<string|int, mixed>
- jsonSerialize() : mixed
- registerChildParser() : mixed
- unRegisterChildParser() : mixed
- arrayToData() : array<string|int, mixed>
- buildInstance() : BaseQgisXmlObject
- Build an instance with data as an array.
- getAttributes() : array<string|int, mixed>
- Get attributes from an XMLReader instance at an element.
- parseChild() : array<string|int, mixed>|bool|int|string
- Parse from an XMLReader instance at a child of an element.
- set() : void
Properties
$Gui
public
null|ProjectGuiProperties
$Gui
$Variables
public
null|ProjectVariables
$Variables
$WFSLayers
public
null|array<string|int, string>
$WFSLayers
$WMSAddWktGeometry
public
null|bool
$WMSAddWktGeometry
$WMSContactMail
public
null|string
$WMSContactMail
$WMSContactOrganization
public
null|string
$WMSContactOrganization
$WMSContactPerson
public
null|string
$WMSContactPerson
$WMSContactPhone
public
null|string
$WMSContactPhone
$WMSExtent
public
null|array<string|int, float>
$WMSExtent
$WMSKeywordList
public
null|array<string|int, string>
$WMSKeywordList
$WMSMaxAtlasFeatures
public
null|int
$WMSMaxAtlasFeatures
$WMSMaxHeight
public
null|int
$WMSMaxHeight
$WMSMaxWidth
public
null|int
$WMSMaxWidth
$WMSOnlineResource
public
null|string
$WMSOnlineResource
$WMSRestrictedComposers
public
null|array<string|int, string>
$WMSRestrictedComposers
$WMSRestrictedLayers
public
null|array<string|int, string>
$WMSRestrictedLayers
$WMSServiceAbstract
public
null|string
$WMSServiceAbstract
$WMSServiceTitle
public
null|string
$WMSServiceTitle
$WMSUseLayerIDs
public
null|bool
$WMSUseLayerIDs
$childParsers
protected
static mixed
$childParsers
= array()
$children
protected
static array<string|int, string>
$children
= array('WMSServiceTitle', 'WMSServiceAbstract', 'WMSKeywordList', 'WMSExtent', 'WMSOnlineResource', 'WMSContactMail', 'WMSContactOrganization', 'WMSContactPerson', 'WMSContactPhone', 'WMSMaxWidth', 'WMSMaxHeight', 'WMSMaxAtlasFeatures', 'WMSRestrictedComposers', 'WMSRestrictedLayers', 'WFSLayers', 'WMSUseLayerIDs', 'WMSAddWktGeometry')
The XML element parsed children
$childrenCollection
protected
static array<string, string>
$childrenCollection
= array()
The XML element tagname associated with a collector property name
$defaultValues
protected
array<string|int, mixed>
$defaultValues
= array()
The default values for properties
$mandatoryChildren
protected
static array<string|int, string>
$mandatoryChildren
= array()
The XML element needed children
$mandatoryProperties
protected
array<string|int, string>
$mandatoryProperties
= array()
The not null properties
$properties
protected
array<string|int, string>
$properties
= array('WMSServiceTitle', 'WMSServiceAbstract', 'WMSKeywordList', 'WMSExtent', 'WMSOnlineResource', 'WMSContactMail', 'WMSContactOrganization', 'WMSContactPerson', 'WMSContactPhone', 'WMSMaxWidth', 'WMSMaxHeight', 'WMSMaxAtlasFeatures', 'WMSRestrictedComposers', 'WMSRestrictedLayers', 'WFSLayers', 'WMSUseLayerIDs', 'WMSAddWktGeometry', 'Gui', 'Variables')
The instance properties
$qgisLocalName
protected
static string
$qgisLocalName
= 'properties'
The XML element local name
$data
private
array<string|int, mixed>
$data
= array()
The instance data for properties
Methods
__construct()
Base QGIS object constructor.
public
__construct(array<string|int, mixed> $data) : mixed
Parameters
- $data : array<string|int, mixed>
-
the instance data
__get()
public
__get(mixed $property) : mixed
Parameters
- $property : mixed
__isset()
public
__isset(mixed $property) : bool
Parameters
- $property : mixed
Return values
bool__set()
public
final __set(string $key, mixed $val) : void
Parameters
- $key : string
- $val : mixed
__unset()
public
final __unset(string $key) : void
Parameters
- $key : string
fromXmlReader()
Get an QGIS object instance from an XMLReader instance at an element.
public
static fromXmlReader(XMLReader $oXmlReader) : BaseQgisObject
Parameters
- $oXmlReader : XMLReader
-
An XMLReader instance at an element
Return values
BaseQgisObject —the QGIS object instance corresponding to the element
getData()
public
getData() : array<string|int, mixed>
Return values
array<string|int, mixed>jsonSerialize()
public
jsonSerialize() : mixed
registerChildParser()
public
static registerChildParser(mixed $localName, mixed $parser) : mixed
Parameters
- $localName : mixed
- $parser : mixed
unRegisterChildParser()
public
static unRegisterChildParser(mixed $localName, mixed $parser) : mixed
Parameters
- $localName : mixed
- $parser : mixed
arrayToData()
protected
arrayToData(mixed $vArray) : array<string|int, mixed>
Parameters
- $vArray : mixed
Return values
array<string|int, mixed>buildInstance()
Build an instance with data as an array.
protected
static buildInstance(array<string|int, mixed> $data) : BaseQgisXmlObject
Parameters
- $data : array<string|int, mixed>
-
the instance data
Return values
BaseQgisXmlObject —the instance
getAttributes()
Get attributes from an XMLReader instance at an element.
protected
static getAttributes(XMLReader $oXmlReader) : array<string|int, mixed>
Parameters
- $oXmlReader : XMLReader
-
An XMLReader instance at an element
Return values
array<string|int, mixed> —the element attributes as keys / values
parseChild()
Parse from an XMLReader instance at a child of an element.
protected
static parseChild(XMLReader $oXmlReader) : array<string|int, mixed>|bool|int|string
Parameters
- $oXmlReader : XMLReader
-
An XMLReader instance at a child of an element
Return values
array<string|int, mixed>|bool|int|string —the result of the parsing
set()
protected
set(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>