qgisVectorLayerDatasource
in package
Give access to qgis mapLayer configuration.
Tags
Table of Contents
Properties
- $datasource : mixed
- $datasourceRegexes : array<string|int, mixed>
- $provider : mixed
Methods
- __construct() : mixed
- constructor.
- getDatasourceParameter() : mixed
- getDatasourceParameterOgr() : mixed
- getDatasourceParameterSql() : mixed
Properties
$datasource
protected
mixed
$datasource
$datasourceRegexes
protected
array<string|int, mixed>
$datasourceRegexes
= array('dbname' => "dbname='?([^ ']+)'? ", 'service' => "service='?([^ ']+)'? ", 'host' => "host='?([^ ']+)'? port=", 'port' => 'port=([0-9]+) ', 'user' => "user='?([^ ']+)'? ", 'password' => "password='?([^ ']+)'? ", 'sslmode' => "sslmode='?([^ ']+)'? ", 'key' => "key='?([^ ']+)'? ", 'estimatedmetadata' => 'estimatedmetadata=([^ ]+) ', 'selectatid' => 'selectatid=([^ ]+) ', 'srid' => 'srid=([0-9]+) ', 'type' => 'type=([a-zA-Z]+) ', 'checkPrimaryKeyUnicity' => "checkPrimaryKeyUnicity='([0-1]+)' ", 'table' => 'table="(.+?)"($|\s)', 'geocol' => '\(([^ >]+)\)', 'sql' => ' sql=(.*)$')
Regexes used to get datasource parameters
$provider
protected
mixed
$provider
Methods
__construct()
constructor.
public
__construct(mixed $provider, mixed $datasource) : mixed
Parameters
- $provider : mixed
- $datasource : mixed
getDatasourceParameter()
public
getDatasourceParameter(mixed $param) : mixed
Parameters
- $param : mixed
getDatasourceParameterOgr()
private
getDatasourceParameterOgr(mixed $param) : mixed
Parameters
- $param : mixed
getDatasourceParameterSql()
private
getDatasourceParameterSql(mixed $param) : mixed
Parameters
- $param : mixed