-
Default-Constructor
+
Constructor
+
Parameters
+
+ - $headers
+ array[assoc]
$headers - RequestHeader
+
@@ -195,7 +202,7 @@
#
- __destruct( )
+ __destruct( )
@@ -228,7 +235,7 @@
|
- $sqlManager
+ $sqlManager
|
|
@@ -361,6 +368,87 @@
Variable for the sql manager of the api
+
+ |
+
+
+
+ protected
+ <T>:SqlManager
+ |
+
+
+ $serialManager
+ |
+ |
+
+ #
+
+
+
+ Variable for the serialazarion manager of the api
+
+
+
+
+
+ Variable for the serialazarion manager of the api
+
+
+
+ |
+
+
+
+ protected static
+ string
+ |
+
+
+ $contentypeXML
+ |
+ "application/xml;charset=utf-8" |
+
+ #
+
+
+
+ Variable for the contentype of XML
+
+
+
+
+
+ Variable for the contentype of XML
+
+
+
+ |
+
+
+
+ protected static
+ string
+ |
+
+
+ $contentypeJson
+ |
+ "application/json;charset=utf-8" |
+
+ #
+
+
+
+ Variable for the contentype of Json
+
+
+
+
+
+ Variable for the contentype of Json
+
+
|
diff --git a/doc/class-api.PisApi.html b/doc/class-api.PisApi.html
index d71d156..0521df3 100644
--- a/doc/class-api.PisApi.html
+++ b/doc/class-api.PisApi.html
@@ -6,8 +6,8 @@
Class api\PisApi | GeoApi
-
-
+
+
@@ -27,6 +27,8 @@
database
+ None
+
PHP
Slim
@@ -143,7 +145,7 @@
stubbfel
Since:
20.06.2013
- Located at api/PisApi.php
+ Located at api/PisApi.php
@@ -161,20 +163,25 @@
#
- __construct( )
+ __construct( array[assoc] $headers = array() )
- Default-Constructor
+ Constructor
- Default-Constructor
+ Constructor
+ Parameters
+
+ - $headers
+ array[assoc] $headers - RequestHeader
+
@@ -196,7 +203,7 @@
#
- __destruct( )
+ __destruct( )
@@ -231,7 +238,7 @@
|
- $routeParameterPids
+ $routeParameterPids
|
"/pid/:pid+" |
@@ -372,13 +379,202 @@
- Route string for the alias paramter
+ Route string for the pids paramter
- Route string for the alias paramter
+ Route string for the pids paramter
+
+
+
+ |
+
+
+
+ public static
+ string
+ |
+
+
+ $routeParameterParent
+ |
+ "/parent/:parent" |
+
+ #
+
+
+
+ Route string for the parent paramter
+
+
+
+
+
+ Route string for the parent paramter
+
+
+
+ |
+
+
+
+ public static
+ string
+ |
+
+
+ $routeParameterINames
+ |
+ "/iname/:iname+" |
+
+ #
+
+
+
+ Route string for the iNames paramter
+
+
+
+
+
+ Route string for the iNames paramter
+
+
+
+ |
+
+
+
+ public static
+ string
+ |
+
+
+ $routParameterIPatter
+ |
+ "ipatter/:ipatter" |
+
+ #
+
+
+
+ public string for the patter string parameter
+
+
+
+
+
+ public string for the patter string parameter
+
+
+
+ |
+
+
+
+ public static
+ string
+ |
+
+
+ $keyPidList
+ |
+ "pidList" |
+
+ #
+
+
+
+ Keyword for pidList arguments
+
+
+
+
+
+ Keyword for pidList arguments
+
+
+
+ |
+
+
+
+ public static
+ string
+ |
+
+
+ $keyINameList
+ |
+ "iNameList" |
+
+ #
+
+
+
+ Keyword for iNameList arguments
+
+
+
+
+
+ Keyword for iNameList arguments
+
+
+
+ |
+
+
+
+ public static
+ string
+ |
+
+
+ $keyIPatter
+ |
+ "searchPatter" |
+
+ #
+
+
+
+ Keyword for iNameList arguments
+
+
+
+
+
+ Keyword for iNameList arguments
+
+
+
+ |
+
+
+
+ public static
+ string
+ |
+
+
+ $keyParentId
+ |
+ "parendId" |
+
+ #
+
+
+
+ Keyword for parendId arguments
+
+
+
+
+
+ Keyword for parendId arguments
@@ -390,6 +586,9 @@
Properties inherited from api\Api
+ $contentypeJson,
+ $contentypeXML,
+ $serialManager,
$sqlManager
|
diff --git a/doc/class-api.PssApi.html b/doc/class-api.PssApi.html
index 7d45c90..3bef164 100644
--- a/doc/class-api.PssApi.html
+++ b/doc/class-api.PssApi.html
@@ -6,8 +6,8 @@
Class api\PssApi | GeoApi
-
-
+
+
@@ -27,6 +27,8 @@
database
+ None
+
PHP
Slim
@@ -143,7 +145,7 @@
stubbfel
Since:
20.06.2013
- Located at api/PssApi.php
+ Located at api/PssApi.php
@@ -161,20 +163,25 @@
|
#
- __construct( )
+ __construct( array[assoc] $headers = array() )
- Default-Constructor
+ Constructor
- Default-Constructor
+ Constructor
+ Parameters
+
+ - $headers
+ array[assoc] $headers - RequestHeader
+
@@ -196,7 +203,7 @@
| |
+
+
+ public static
+ string
+ |
+
+
+ $routeParameterSNames
+ |
+ "/sname/:sname+" |
+
+ #
+
+
+
+ Route string for the iNames paramter
+
+
+
+
+
+ Route string for the iNames paramter
+
+
+
+ |
+
+
+
+ public static
+ string
+ |
+
+
+ $keyPidList
+ |
+ "pidList" |
+
+ #
+
+
+
+ Keyword for pidList arguments
+
+
+
+
+
+ Keyword for pidList arguments
+
+
+
+ |
+
+
+
+ public static
+ string
+ |
+
+
+ $keySNameList
+ |
+ "sNameList" |
+
+ #
+
+
+
+ Keyword for iNameList arguments
+
+
+
+
+
+ Keyword for iNameList arguments
+
+
|
@@ -390,6 +478,9 @@
Properties inherited from api\Api
+ $contentypeJson,
+ $contentypeXML,
+ $serialManager,
$sqlManager
|
diff --git a/doc/class-api.SpsApi.html b/doc/class-api.SpsApi.html
index 70b9db1..d343d7a 100644
--- a/doc/class-api.SpsApi.html
+++ b/doc/class-api.SpsApi.html
@@ -6,8 +6,8 @@
Class api\SpsApi | GeoApi
-
-
+
+
@@ -27,6 +27,8 @@
database
+ None
+
PHP
Slim
@@ -143,7 +145,7 @@
stubbfel
Since:
20.06.2013
- Located at api/SpsApi.php
+ Located at api/SpsApi.php
@@ -161,20 +163,25 @@
#
- __construct( )
+ __construct( array[assoc] $headers = array() )
- Default-Constructor
+ Constructor
- Default-Constructor
+ Constructor
+ Parameters
+
+ - $headers
+ array[assoc] $headers - RequestHeader
+
@@ -196,7 +203,7 @@
#
- __destruct( )
+ __destruct( )
@@ -231,7 +238,7 @@
|
- $routeParameterLongitude
+ $routeParameterLongitude
|
"/longitude/:longitude" |
@@ -487,7 +521,7 @@
|
- $routeParameterLatitude
+ $routeParameterLatitude
|
"/latitude/:latitude" |
@@ -514,7 +548,7 @@
|
- $keyAlias
+ $keyAlias
|
"alias" |
@@ -541,7 +575,7 @@
|
- $keyDomain
+ $keyDomain
|
"domain" |
@@ -568,7 +602,7 @@
|
- $keyPoly
+ $keyPoly
|
"poly" |
@@ -595,7 +629,7 @@
|
- $keyLong
+ $keyLong
|
"longitude" |
@@ -622,7 +656,7 @@
|
- $keyLat
+ $keyLat
|
"latitude" |
@@ -639,6 +673,33 @@
Keyword for latitude arguments
+
+ |
+
+
+
+ public static
+ string
+ |
+
+
+ $keyRange
+ |
+ "range" |
+
+ #
+
+
+
+ Keyword for range arguments
+
+
+
+
+
+ Keyword for range arguments
+
+
|
@@ -648,6 +709,9 @@
Properties inherited from api\Api
+ $contentypeJson,
+ $contentypeXML,
+ $serialManager,
$sqlManager
|
diff --git a/doc/class-config.DBConfig.html b/doc/class-config.DBConfig.html
index 0a1c532..a34565c 100644
--- a/doc/class-config.DBConfig.html
+++ b/doc/class-config.DBConfig.html
@@ -6,8 +6,8 @@
Class config\DBConfig | GeoApi
-
-
+
+
@@ -27,6 +27,8 @@
database
+ None
+
PHP
Slim
@@ -174,7 +176,7 @@
$sqlDBName
|
- "geoDB" |
+ "geodb" |
#
diff --git a/doc/class-database.PisSqlManager.html b/doc/class-database.PisSqlManager.html
index 5e387ff..e495922 100644
--- a/doc/class-database.PisSqlManager.html
+++ b/doc/class-database.PisSqlManager.html
@@ -6,8 +6,8 @@
Class database\PisSqlManager | GeoApi
-
-
+
+
@@ -27,6 +27,8 @@
database
+ None
+
PHP
Slim
@@ -135,7 +137,7 @@ database\SQLManager
stubbfel
Since:
20.06.2013
- Located at database/PisSqlManager.php
+ Located at database/PisSqlManager.php
@@ -153,7 +155,7 @@ database\SQLManager
|
#
- __construct( )
+ __construct( )
@@ -186,7 +188,7 @@ database\SQLManager
#
- __destruct( )
+ __destruct( )
@@ -219,7 +221,7 @@ database\SQLManager
#
- sendPisQuery( array $queryArgs )
+ sendPisQuery( array $pidList, mixed $parentId, mixed $iNameList, mixed $iPatter = "*" )
@@ -235,8 +237,14 @@ database\SQLManager
Parameters
- - $queryArgs
+ - $pidList
array $queryArgs
+ - $parentId
+
+ - $iNameList
+
+ - $iPatter
+
Returns
@@ -343,6 +351,60 @@ database\SQLManager
Fieldname of the value of the information
+
+ |
+
+
+
+ public static
+ string
+ |
+
+
+ $parentId
+ |
+ "parent" |
+
+ #
+
+
+
+ Fieldname of the parendId
+
+
+
+
+
+ Fieldname of the parendId
+
+
+
+ |
+
+
+
+ public static
+ string
+ |
+
+
+ $refpoint
+ |
+ "refpoint" |
+
+ #
+
+
+
+ Fieldname of the refpoint
+
+
+
+
+
+ Fieldname of the refpoint
+
+
|
diff --git a/doc/class-database.PssSqlManager.html b/doc/class-database.PssSqlManager.html
index c97cd21..6857fe4 100644
--- a/doc/class-database.PssSqlManager.html
+++ b/doc/class-database.PssSqlManager.html
@@ -6,8 +6,8 @@
Class database\PssSqlManager | GeoApi
-
-
+
+
@@ -27,6 +27,8 @@
database
+ None
+
PHP
Slim
@@ -135,7 +137,7 @@ database\SQLManager
stubbfel
Since:
20.06.2013
- Located at database/PssSqlManager.php
+ Located at database/PssSqlManager.php
@@ -153,7 +155,7 @@ database\SQLManager
#
- __construct( )
+ __construct( )
@@ -186,7 +188,7 @@ database\SQLManager
#
- __destruct( )
+ __destruct( )
@@ -219,7 +221,7 @@ database\SQLManager
#
- sendPssQuery( array $queryArgs )
+ sendPssQuery( array $pidList, mixed $sNameList )
@@ -235,8 +237,10 @@ database\SQLManager
Parameters
- - $queryArgs
+ - $pidList
array $queryArgs
+ - $sNameList
+
Returns
@@ -370,6 +374,60 @@ database\SQLManager
Fieldname of the value of the information
+
+ |
+
+
+
+ public static
+ string
+ |
+
+
+ $parentId
+ |
+ "parent" |
+
+ #
+
+
+
+ Fieldname of the parendId
+
+
+
+
+
+ Fieldname of the parendId
+
+
+
+ |
+
+
+
+ public static
+ string
+ |
+
+
+ $refpoint
+ |
+ "refpoint" |
+
+ #
+
+
+
+ Fieldname of the refpoint
+
+
+
+
+
+ Fieldname of the refpoint
+
+
|
diff --git a/doc/class-database.SpsSqlManager.html b/doc/class-database.SpsSqlManager.html
index 4419f20..e7d29e6 100644
--- a/doc/class-database.SpsSqlManager.html
+++ b/doc/class-database.SpsSqlManager.html
@@ -6,8 +6,8 @@
Class database\SpsSqlManager | GeoApi
-
-
+
+
@@ -27,6 +27,8 @@
database
+ None
+
PHP
Slim
@@ -135,7 +137,7 @@ database\SQLManager
stubbfel
Since:
20.06.2013
- Located at database/SpsSqlManager.php
+ Located at database/SpsSqlManager.php
@@ -153,7 +155,7 @@ database\SQLManager
#
- __construct( )
+ __construct( )
@@ -186,7 +188,7 @@ database\SQLManager
#
- __destruct( )
+ __destruct( )
@@ -219,7 +221,7 @@ database\SQLManager
#
- sendSpsAliasQuery( array $queryArgs )
+ sendSpsAliasQuery( array $queryArgs )
@@ -261,7 +263,7 @@ database\SQLManager
|
+
+
+
+ public static
+ string
+ |
+
+
+ $refpoint
+ |
+ "refpoint" |
+
+ #
+
+
+
+ Fieldname of the refpoint
+
+
+
+
+
+ Fieldname of the refpoint
+
+
|
diff --git a/doc/class-database.SqlManager.html b/doc/class-database.SqlManager.html
index e49829e..5db356a 100644
--- a/doc/class-database.SqlManager.html
+++ b/doc/class-database.SqlManager.html
@@ -6,8 +6,8 @@
Class database\SqlManager | GeoApi
-
-
+
+
@@ -27,6 +27,8 @@
database
+ None
+
PHP
Slim
@@ -122,7 +124,7 @@
stubbfel
Since:
20.06.2013
- Located at database/SqlManager.php
+ Located at database/SqlManager.php
@@ -140,7 +142,7 @@
#
- __construct( )
+ __construct( )
@@ -173,7 +175,7 @@
#
- __destruct( )
+ __destruct( )
@@ -206,7 +208,7 @@
#
- connect( )
+ connect( )
@@ -239,7 +241,7 @@
#
- closeConnection( )
+ closeConnection( )
@@ -272,7 +274,7 @@
#
- query( string $query )
+ query( string $query )
@@ -320,7 +322,7 @@
Properties summary
- protected
+ protected static
string
|
@@ -347,7 +349,7 @@
- protected
+ protected static
string
|
@@ -374,7 +376,7 @@
- protected
+ protected static
string
|
@@ -396,6 +398,60 @@
String for quotes in a query
+
+
+
+
+
+ protected static
+ string
+ |
+
+
+ $openBracket
+ |
+ "(" |
+
+ #
+
+
+
+ String for open Bracket in a query
+
+
+
+
+
+ String for open Bracket in a query
+
+
+
+ |
+
+
+
+ protected static
+ string
+ |
+
+
+ $closeBracket
+ |
+ ")" |
+
+ #
+
+
+
+ String for close Bracket in a query
+
+
+
+
+
+ String for close Bracket in a query
+
+
|
diff --git a/doc/class-utiliy.ArrayManager.html b/doc/class-utiliy.ArrayManager.html
index 406687e..940ccfe 100644
--- a/doc/class-utiliy.ArrayManager.html
+++ b/doc/class-utiliy.ArrayManager.html
@@ -6,8 +6,8 @@
Class utiliy\ArrayManager | GeoApi
-
-
+
+
@@ -27,6 +27,8 @@
database
+ None
+
PHP
Slim
@@ -50,10 +52,15 @@
Classes
+ Interfaces
+
@@ -121,7 +128,7 @@
stubbfel
Since:
26.06.2013
- Located at utility/ArrayManager.php
+ Located at utility/ArrayManager.php
@@ -229,7 +236,51 @@ $operator
#
- validIntList( array $list )
+ validIntList( array $list )
+
+
+
+ Method check if all items of the array are only digits and <
+PHP_INT_MAX
+
+
+
+
+
+ Method check if all items of the array are only digits and <
+PHP_INT_MAX
+
+
+
+ Parameters
+
+
+ Returns
+
+ boolean
+
+
+
+
+
+
+ |
+
+
+
+
+ public static
+ boolean
+
+
+ |
+
+
+ #
+ validAlphaNumList( array $list )
diff --git a/doc/class-utiliy.JsonManager.html b/doc/class-utiliy.JsonManager.html
new file mode 100644
index 0000000..baaff74
--- /dev/null
+++ b/doc/class-utiliy.JsonManager.html
@@ -0,0 +1,451 @@
+
+
+
+
+
+
+ Class utiliy\JsonManager | GeoApi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Class JsonManager
+
+
+
+
+ The XmlManager provides some xml-methods
+
+
+
+
+ -
+utiliy\JsonManager
+ implements
+ utiliy\SerialManager
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Methods summary
+
+
+
+ public static
+ json-string
+
+
+ |
+
+
+ #
+ arrayToSpsJson( array[num][assoc] $result )
+
+
+
+ Method convert an array to a response json for the sps service
+
+
+
+
+
+ Method convert an array to a response json for the sps service
+
+
+
+ Parameters
+
+ - $result
+ array[num][assoc] $result
+
+
+ Returns
+
+ json-string
+
+
+
+ Example
+
+ { 127003463, Kommunikations-
+und Medienzentrum", typ
+Papitzer Stra\u00dfe 4\/5", typ
+
+
+
+
+ |
+
+
+
+
+ public static
+ json-string
+
+
+ |
+
+
+ #
+ arrayToPisJson( array[num][assoc] $result )
+
+
+
+ Method convert an array to a response json for the pis service like
+
+
+
+
+
+ Method convert an array to a response json for the pis service like
+
+
+
+ Parameters
+
+ - $result
+ array[num][assoc] $result
+
+
+ Returns
+
+ json-string
+
+
+
+ Example
+
+ [{ id,
+Kommunikations- und Medienzentrum"}, 1
+
+
+
+
+ |
+
+
+
+
+ public static
+ Json-string
+
+
+ |
+
+
+ #
+ arrayToPssJson( array[num][assoc] $result )
+
+
+
+ Method convert an array to a response json for the pss service
+
+
+
+
+
+ Method convert an array to a response json for the pss service
+
+
+
+ Parameters
+
+ - $result
+ array[num][assoc] $result
+
+
+ Returns
+
+ Json-string
+
+
+
+ Example
+
+
+
+
+ |
+
+
+
+
+ public
+ string
+
+
+ |
+
+
+ #
+ arrayToSps( array $result )
+
+
+
+ Implement the arrayToSps from @see SerialManager
+
+
+
+
+
+ Implement the arrayToSps from @see SerialManager
+
+
+
+ Parameters
+
+ - $result
+ array [num] [assoc] $result
+
+
+ Returns
+
+ string
+
+
+
+
+
+ Implementation of
+
+
+ |
+
+
+
+
+ public
+ string
+
+
+ |
+
+
+ #
+ arrayToPss( array $result )
+
+
+
+ Implement the arrayToPss from @see SerialManager
+
+
+
+
+
+ Implement the arrayToPss from @see SerialManager
+
+
+
+ Parameters
+
+ - $result
+ array [num] [assoc] $result
+
+
+ Returns
+
+ string
+
+
+
+
+
+ Implementation of
+
+
+ |
+
+
+
+
+ public
+ string
+
+
+ |
+
+
+ #
+ arrayToPis( array $result )
+
+
+
+ Implement the arrayToPis from @see SerialManager
+
+
+
+
+
+ Implement the arrayToPis from @see SerialManager
+
+
+
+ Parameters
+
+ - $result
+ array [num] [assoc] $result
+
+
+ Returns
+
+ string
+
+
+
+
+
+ Implementation of
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/doc/class-utiliy.SerialManager.html b/doc/class-utiliy.SerialManager.html
new file mode 100644
index 0000000..8df7f4c
--- /dev/null
+++ b/doc/class-utiliy.SerialManager.html
@@ -0,0 +1,297 @@
+
+
+
+
+
+
+ Interface utiliy\SerialManager | GeoApi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Interface SerialManager
+
+
+
+
+ This is an Interface for the serialpation from sql-result to formatted
+string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Methods summary
+
+
+
+ public
+ string
+
+
+ |
+
+
+ #
+ arrayToSps( array $result )
+
+
+
+ Convert an array from the SPS to a formatted string
+
+
+
+
+
+ Convert an array from the SPS to a formatted string
+
+
+
+ Parameters
+
+ - $result
+ array [num] [assoc] $result
+
+
+ Returns
+
+ string
+
+
+
+
+
+
+ |
+
+
+
+
+ public
+ string
+
+
+ |
+
+
+ #
+ arrayToPis( array $result )
+
+
+
+ Convert an array from the PIS to a formatted string
+
+
+
+
+
+ Convert an array from the PIS to a formatted string
+
+
+
+ Parameters
+
+ - $result
+ array [num] [assoc] $result
+
+
+ Returns
+
+ string
+
+
+
+
+
+
+ |
+
+
+
+
+ public
+ string
+
+
+ |
+
+
+ #
+ arrayToPss( array $result )
+
+
+
+ Convert an array from the PSS to a formatted string
+
+
+
+
+
+ Convert an array from the PSS to a formatted string
+
+
+
+ Parameters
+
+ - $result
+ array [num] [assoc] $result
+
+
+ Returns
+
+ string
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/doc/class-utiliy.StringManager.html b/doc/class-utiliy.StringManager.html
index ee21fe2..5fd9580 100644
--- a/doc/class-utiliy.StringManager.html
+++ b/doc/class-utiliy.StringManager.html
@@ -6,8 +6,8 @@
Class utiliy\StringManager | GeoApi
-
-
+
+
@@ -27,6 +27,8 @@
database
+ None
+
PHP
Slim
@@ -50,10 +52,15 @@
Classes
+ Interfaces
+
@@ -121,7 +128,7 @@
stubbfel
Since:
25.06.2013
- Located at utility/StringManager.php
+ Located at utility/StringManager.php
@@ -139,7 +146,7 @@
#
- startsWith( string $haystack, string $needle )
+ startsWith( string $haystack, string $needle )
@@ -183,7 +190,7 @@
#
- endsWith( string $haystack, string $needle )
+ endsWith( string $haystack, string $needle )
| | |
+
+
+
+ public static
+ boolean
+
+
+ |
+
+
+ #
+ validInt( string $value )
+
+
+
+ Method if the string is in integor
+
+
+
+
+
+ Method if the string is in integor
+
+
+
+ Parameters
+
+ - $value
+ string $value
+
+
+ Returns
+
+ boolean
+
+
+
+
+
|
@@ -290,13 +339,40 @@ controlls)
- A Constant vor an emptystring like ""
+ A Constant for an emptystring like ""
- A Constant vor an emptystring like ""
+ A Constant for an emptystring like ""
+
+
+
+ |
+
+
+
+ public static
+ string
+ |
+
+
+ $quotes
+ |
+ "\"" |
+
+ #
+
+
+
+ A Constant for an quotechars like "
+
+
+
+
+
+ A Constant for an quotechars like "
diff --git a/doc/class-utiliy.XmlManager.html b/doc/class-utiliy.XmlManager.html
index b3c9eac..bc121f4 100644
--- a/doc/class-utiliy.XmlManager.html
+++ b/doc/class-utiliy.XmlManager.html
@@ -6,8 +6,8 @@
Class utiliy\XmlManager | GeoApi
-
-
+
+
@@ -27,6 +27,8 @@
database
+ None
+
PHP
Slim
@@ -50,10 +52,15 @@
Classes
+ Interfaces
+
@@ -103,6 +110,15 @@
+
+ -
+utiliy\XmlManager
+ implements
+ utiliy\SerialManager
+
+
+
+
@@ -121,7 +137,7 @@
stubbfel
Since:
25.06.2013
- Located at utility/XmlManager.php
+ Located at utility/XmlManager.php
@@ -139,7 +155,7 @@
|
#
- arrayToSpsXml( array[num][assoc] $result )
+ arrayToSpsXml( array[num][assoc] $result )
@@ -183,7 +199,7 @@
#
- arrayToPisXml( array[num][assoc] $result )
+ arrayToPisXml( array[num][assoc] $result )
@@ -229,7 +245,7 @@ id ="4711"> <placeInformation placeInformationName =
#
- arrayToPssXml( array[num][assoc] $result )
+ arrayToPssXml( array[num][assoc] $result )
@@ -263,6 +279,138 @@ id ="4711"> <placeInformation placeInformationName =
+
+ |
+ | |
+
+
+
+ public
+ string
+
+
+ |
+
+
+ #
+ arrayToSps( array $result )
+
+
+
+ Convert an array from the SPS to a formatted string
+
+
+
+
+
+ Convert an array from the SPS to a formatted string
+
+
+
+ Parameters
+
+ - $result
+ array [num] [assoc] $result
+
+
+ Returns
+
+ string
+
+
+
+
+
+ Implementation of
+
+
+ |
+
+
+
+
+ public
+ string
+
+
+ |
+
+
+ #
+ arrayToPis( array $result )
+
+
+
+ Convert an array from the PIS to a formatted string
+
+
+
+
+
+ Convert an array from the PIS to a formatted string
+
+
+
+ Parameters
+
+ - $result
+ array [num] [assoc] $result
+
+
+ Returns
+
+ string
+
+
+
+
+
+ Implementation of
+
+
+ |
+
+
+
+
+ public
+ string
+
+
+ |
+
+
+ #
+ arrayToPss( array $result )
+
+
+
+ Convert an array from the PSS to a formatted string
+
+
+
+
+
+ Convert an array from the PSS to a formatted string
+
+
+
+ Parameters
+
+ - $result
+ array [num] [assoc] $result
+
+
+ Returns
+
+ string
+
+
+
+
+
+ Implementation of
+
|
diff --git a/doc/elementlist.js b/doc/elementlist.js
index 9425446..e0c1536 100644
--- a/doc/elementlist.js
+++ b/doc/elementlist.js
@@ -1,3 +1,3 @@
var ApiGen = ApiGen || {};
-ApiGen.elements = [["c","api\\Api"],["c","api\\PisApi"],["c","api\\PssApi"],["c","api\\SpsApi"],["c","ArrayAccess"],["c","ArrayIterator"],["c","config\\DBConfig"],["c","Countable"],["c","database\\PisSqlManager"],["c","database\\PssSqlManager"],["c","database\\SpsSqlManager"],["c","database\\SqlManager"],["c","ErrorException"],["c","Exception"],["c","InvalidArgumentException"],["c","Iterator"],["c","IteratorAggregate"],["c","LogicException"],["c","RuntimeException"],["c","SeekableIterator"],["c","Serializable"],["c","SimpleXMLElement"],["c","Slim\\Environment"],["c","Slim\\Exception\\Pass"],["c","Slim\\Exception\\Stop"],["c","Slim\\Http\\Headers"],["c","Slim\\Http\\Request"],["c","Slim\\Http\\Response"],["c","Slim\\Http\\Util"],["c","Slim\\Log"],["c","Slim\\LogWriter"],["c","Slim\\Middleware"],["c","Slim\\Middleware\\ContentTypes"],["c","Slim\\Middleware\\Flash"],["c","Slim\\Middleware\\MethodOverride"],["c","Slim\\Middleware\\PrettyExceptions"],["c","Slim\\Middleware\\SessionCookie"],["c","Slim\\Route"],["c","Slim\\Router"],["c","Slim\\Slim"],["c","Slim\\View"],["c","Traversable"],["c","utiliy\\ArrayManager"],["c","utiliy\\StringManager"],["c","utiliy\\XmlManager"]];
+ApiGen.elements = [["c","api\\Api"],["c","api\\PisApi"],["c","api\\PssApi"],["c","api\\SpsApi"],["c","ArrayAccess"],["c","ArrayIterator"],["c","config\\DBConfig"],["c","Countable"],["c","database\\PisSqlManager"],["c","database\\PssSqlManager"],["c","database\\SpsSqlManager"],["c","database\\SqlManager"],["c","ErrorException"],["c","Exception"],["c","InvalidArgumentException"],["c","Iterator"],["c","IteratorAggregate"],["f","LoadDomain()"],["f","LoadInfo()"],["f","LoadPlace()"],["f","LoadService()"],["c","LogicException"],["c","RuntimeException"],["c","SeekableIterator"],["c","Serializable"],["c","SimpleXMLElement"],["c","Slim\\Environment"],["c","Slim\\Exception\\Pass"],["c","Slim\\Exception\\Stop"],["c","Slim\\Http\\Headers"],["c","Slim\\Http\\Request"],["c","Slim\\Http\\Response"],["c","Slim\\Http\\Util"],["c","Slim\\Log"],["c","Slim\\LogWriter"],["c","Slim\\Middleware"],["c","Slim\\Middleware\\ContentTypes"],["c","Slim\\Middleware\\Flash"],["c","Slim\\Middleware\\MethodOverride"],["c","Slim\\Middleware\\PrettyExceptions"],["c","Slim\\Middleware\\SessionCookie"],["c","Slim\\Route"],["c","Slim\\Router"],["c","Slim\\Slim"],["c","Slim\\View"],["c","Traversable"],["c","utiliy\\ArrayManager"],["c","utiliy\\JsonManager"],["c","utiliy\\SerialManager"],["c","utiliy\\StringManager"],["c","utiliy\\XmlManager"]];
diff --git a/doc/function-LoadDomain.html b/doc/function-LoadDomain.html
new file mode 100644
index 0000000..e096177
--- /dev/null
+++ b/doc/function-LoadDomain.html
@@ -0,0 +1,122 @@
+
+
+
+
+
+
+ Function LoadDomain | GeoApi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Function LoadDomain
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/doc/function-LoadInfo.html b/doc/function-LoadInfo.html
new file mode 100644
index 0000000..32b0af6
--- /dev/null
+++ b/doc/function-LoadInfo.html
@@ -0,0 +1,122 @@
+
+
+
+
+
+
+ Function LoadInfo | GeoApi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Function LoadInfo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/doc/function-LoadPlace.html b/doc/function-LoadPlace.html
new file mode 100644
index 0000000..550b16d
--- /dev/null
+++ b/doc/function-LoadPlace.html
@@ -0,0 +1,188 @@
+
+
+
+
+
+
+ Function LoadPlace | GeoApi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Function LoadPlace
+
+
+
+
+
+
+
+ Parameters summary
+
+ mixed |
+ $path |
+
+
+ |
+
+
+ mixed |
+ $planIndex = -1 |
+
+
+ |
+
+
+ mixed |
+ $idIndex = -1 |
+
+
+ |
+
+
+ mixed |
+ $parentIndex = -1 |
+
+
+ |
+
+
+ mixed |
+ $alias = array() |
+
+
+ |
+
+
+ mixed |
+ $domain = array() |
+
+
+ |
+
+
+ mixed |
+ $infos = array() |
+
+
+ |
+
+
+ mixed |
+ $service = array() |
+
+
+ |
+
+
+ mixed |
+ $newsFlag = true |
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/doc/function-LoadService.html b/doc/function-LoadService.html
new file mode 100644
index 0000000..f19f2ba
--- /dev/null
+++ b/doc/function-LoadService.html
@@ -0,0 +1,122 @@
+
+
+
+
+
+
+ Function LoadService | GeoApi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Function LoadService
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/doc/index.html b/doc/index.html
index 1f99e35..17bcf61 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -26,6 +26,8 @@
database
+ None
+
PHP
Slim
@@ -77,6 +79,7 @@
Slim\Slim
Slim\View
utiliy\ArrayManager
+ utiliy\JsonManager
utiliy\StringManager
utiliy\XmlManager
@@ -90,6 +93,7 @@
SeekableIterator
Serializable
Traversable
+ utiliy\SerialManager
@@ -105,6 +109,13 @@
+ Functions
+
@@ -153,6 +164,9 @@
|
| database |
+
+ | None |
+
| PHP |
diff --git a/doc/namespace-None.html b/doc/namespace-None.html
new file mode 100644
index 0000000..545ac3b
--- /dev/null
+++ b/doc/namespace-None.html
@@ -0,0 +1,135 @@
+
+
+
+
+
+
+ No namespace | GeoApi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ No namespace
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/doc/namespace-PHP.html b/doc/namespace-PHP.html
index 4a2a9fa..01dff0a 100644
--- a/doc/namespace-PHP.html
+++ b/doc/namespace-PHP.html
@@ -6,8 +6,8 @@
Namespace PHP | GeoApi
-
-
+
+
@@ -27,6 +27,8 @@
database
+ None
+
PHP
Slim
diff --git a/doc/namespace-Slim.Exception.html b/doc/namespace-Slim.Exception.html
index f344cd1..3dfcbf8 100644
--- a/doc/namespace-Slim.Exception.html
+++ b/doc/namespace-Slim.Exception.html
@@ -6,8 +6,8 @@
Namespace Slim\Exception | GeoApi
-
-
+
+
@@ -27,6 +27,8 @@
database
+ None
+
PHP
Slim
diff --git a/doc/namespace-Slim.Http.html b/doc/namespace-Slim.Http.html
index 0f9426d..2bc8670 100644
--- a/doc/namespace-Slim.Http.html
+++ b/doc/namespace-Slim.Http.html
@@ -6,8 +6,8 @@
Namespace Slim\Http | GeoApi
-
-
+
+
@@ -27,6 +27,8 @@
database
+ None
+
PHP
Slim
diff --git a/doc/namespace-Slim.Middleware.html b/doc/namespace-Slim.Middleware.html
index 4876805..5a718c2 100644
--- a/doc/namespace-Slim.Middleware.html
+++ b/doc/namespace-Slim.Middleware.html
@@ -6,8 +6,8 @@
Namespace Slim\Middleware | GeoApi
-
-
+
+
@@ -27,6 +27,8 @@
database
+ None
+
PHP
Slim
diff --git a/doc/namespace-Slim.html b/doc/namespace-Slim.html
index c4ed64f..074b884 100644
--- a/doc/namespace-Slim.html
+++ b/doc/namespace-Slim.html
@@ -6,8 +6,8 @@
Namespace Slim | GeoApi
-
-
+
+
@@ -27,6 +27,8 @@
database
+ None
+
PHP
Slim
diff --git a/doc/namespace-api.html b/doc/namespace-api.html
index 83c28f8..e00cf66 100644
--- a/doc/namespace-api.html
+++ b/doc/namespace-api.html
@@ -6,8 +6,8 @@
Namespace api | GeoApi
-
-
+
+
@@ -27,6 +27,8 @@
database
+ None
+
PHP
Slim
diff --git a/doc/namespace-config.html b/doc/namespace-config.html
index c8aa9e0..f2af14e 100644
--- a/doc/namespace-config.html
+++ b/doc/namespace-config.html
@@ -6,8 +6,8 @@
Namespace config | GeoApi
-
-
+
+
@@ -27,6 +27,8 @@
database
+ None
+
PHP
Slim
diff --git a/doc/namespace-database.html b/doc/namespace-database.html
index 89dfb22..434b80a 100644
--- a/doc/namespace-database.html
+++ b/doc/namespace-database.html
@@ -6,8 +6,8 @@
Namespace database | GeoApi
-
-
+
+
@@ -27,6 +27,8 @@
database
+ None
+
PHP
Slim
diff --git a/doc/namespace-utiliy.html b/doc/namespace-utiliy.html
index 1b90270..eff3358 100644
--- a/doc/namespace-utiliy.html
+++ b/doc/namespace-utiliy.html
@@ -6,8 +6,8 @@
Namespace utiliy | GeoApi
-
-
+
+
@@ -27,6 +27,8 @@
database
+ None
+
PHP
Slim
@@ -50,10 +52,15 @@
Classes
+ Interfaces
+
@@ -103,6 +110,10 @@
ArrayManager |
The ArrayManager provides some array-methods |
+
+ | JsonManager |
+ The XmlManager provides some xml-methods |
+
| StringManager |
The StringManager provides some string-methods |
@@ -113,6 +124,13 @@
+
+Interfaces summary
+
+ | SerialManager |
+ This is an Interface for the serialpation from sql-result to formatted string |
+
+
diff --git a/doc/resources/combined.js b/doc/resources/combined.js
index 9ef1840..604587b 100644
--- a/doc/resources/combined.js
+++ b/doc/resources/combined.js
@@ -1,6 +1,6 @@
var ApiGen = ApiGen || {};
-ApiGen.config = {"require":{"min":"2.8.0"},"resources":{"resources":"resources"},"templates":{"common":{"overview.latte":"index.html","combined.js.latte":"resources\/combined.js","elementlist.js.latte":"elementlist.js","404.latte":"404.html"},"optional":{"sitemap":{"filename":"sitemap.xml","template":"sitemap.xml.latte"},"opensearch":{"filename":"opensearch.xml","template":"opensearch.xml.latte"},"robots":{"filename":"robots.txt","template":"robots.txt.latte"}},"main":{"package":{"filename":"package-%s.html","template":"package.latte"},"namespace":{"filename":"namespace-%s.html","template":"namespace.latte"},"class":{"filename":"class-%s.html","template":"class.latte"},"constant":{"filename":"constant-%s.html","template":"constant.latte"},"function":{"filename":"function-%s.html","template":"function.latte"},"source":{"filename":"source-%s.html","template":"source.latte"},"tree":{"filename":"tree.html","template":"tree.latte"},"deprecated":{"filename":"deprecated.html","template":"deprecated.latte"},"todo":{"filename":"todo.html","template":"todo.latte"}}},"options":{"elementDetailsCollapsed":true,"elementsOrder":"natural"},"config":"C:\\Users\\stubbfel\\Downloads\\ApiGen-2.8.0-standalone\\apigen\\templates\\default\\config.neon"};
+ApiGen.config = {"require":{"min":"2.8.0"},"resources":{"resources":"resources"},"templates":{"common":{"overview.latte":"index.html","combined.js.latte":"resources\/combined.js","elementlist.js.latte":"elementlist.js","404.latte":"404.html"},"optional":{"sitemap":{"filename":"sitemap.xml","template":"sitemap.xml.latte"},"opensearch":{"filename":"opensearch.xml","template":"opensearch.xml.latte"},"robots":{"filename":"robots.txt","template":"robots.txt.latte"}},"main":{"package":{"filename":"package-%s.html","template":"package.latte"},"namespace":{"filename":"namespace-%s.html","template":"namespace.latte"},"class":{"filename":"class-%s.html","template":"class.latte"},"constant":{"filename":"constant-%s.html","template":"constant.latte"},"function":{"filename":"function-%s.html","template":"function.latte"},"source":{"filename":"source-%s.html","template":"source.latte"},"tree":{"filename":"tree.html","template":"tree.latte"},"deprecated":{"filename":"deprecated.html","template":"deprecated.latte"},"todo":{"filename":"todo.html","template":"todo.latte"}}},"options":{"elementDetailsCollapsed":true,"elementsOrder":"natural"},"config":"E:\\Download\\ApiGen-2.8.0-standalone\\apigen\\templates\\default\\config.neon"};
/*! jQuery v1.7 jquery.com | jquery.org/license */
diff --git a/doc/source-class-Slim.Environment.html b/doc/source-class-Slim.Environment.html
index 642daf5..c16ae67 100644
--- a/doc/source-class-Slim.Environment.html
+++ b/doc/source-class-Slim.Environment.html
@@ -7,8 +7,8 @@
File thirdparty/Slim/Environment.php | GeoApi
-
-
+
+
@@ -28,6 +28,8 @@
database
+ None
+
PHP
Slim
diff --git a/doc/source-class-Slim.Exception.Pass.html b/doc/source-class-Slim.Exception.Pass.html
index 5453d1c..269fafe 100644
--- a/doc/source-class-Slim.Exception.Pass.html
+++ b/doc/source-class-Slim.Exception.Pass.html
@@ -7,8 +7,8 @@
File thirdparty/Slim/Exception/Pass.php | GeoApi
-
-
+
+
@@ -28,6 +28,8 @@
database
+ None
+
PHP
Slim
diff --git a/doc/source-class-Slim.Exception.Stop.html b/doc/source-class-Slim.Exception.Stop.html
index 839b2ea..316928a 100644
--- a/doc/source-class-Slim.Exception.Stop.html
+++ b/doc/source-class-Slim.Exception.Stop.html
@@ -7,8 +7,8 @@
File thirdparty/Slim/Exception/Stop.php | GeoApi
-
-
+
+
@@ -28,6 +28,8 @@
database
+ None
+
PHP
Slim
diff --git a/doc/source-class-Slim.Http.Headers.html b/doc/source-class-Slim.Http.Headers.html
index a0025a2..e1358c0 100644
--- a/doc/source-class-Slim.Http.Headers.html
+++ b/doc/source-class-Slim.Http.Headers.html
@@ -7,8 +7,8 @@
File thirdparty/Slim/Http/Headers.php | GeoApi
-
-
+
+
@@ -28,6 +28,8 @@
database
+ None
+
PHP
Slim
diff --git a/doc/source-class-Slim.Http.Request.html b/doc/source-class-Slim.Http.Request.html
index f7a34c1..7967247 100644
--- a/doc/source-class-Slim.Http.Request.html
+++ b/doc/source-class-Slim.Http.Request.html
@@ -7,8 +7,8 @@
File thirdparty/Slim/Http/Request.php | GeoApi
-
-
+
+
@@ -28,6 +28,8 @@
database
+ None
+
PHP
Slim
diff --git a/doc/source-class-Slim.Http.Response.html b/doc/source-class-Slim.Http.Response.html
index 89ed45c..6d368ca 100644
--- a/doc/source-class-Slim.Http.Response.html
+++ b/doc/source-class-Slim.Http.Response.html
@@ -7,8 +7,8 @@
File thirdparty/Slim/Http/Response.php | GeoApi
-
-
+
+
@@ -28,6 +28,8 @@
database
+ None
+
PHP
Slim
diff --git a/doc/source-class-Slim.Http.Util.html b/doc/source-class-Slim.Http.Util.html
index 86ee4f0..7a40d59 100644
--- a/doc/source-class-Slim.Http.Util.html
+++ b/doc/source-class-Slim.Http.Util.html
@@ -7,8 +7,8 @@
File thirdparty/Slim/Http/Util.php | GeoApi
-
-
+
+
@@ -28,6 +28,8 @@
database
+ None
+
PHP
Slim
diff --git a/doc/source-class-Slim.Log.html b/doc/source-class-Slim.Log.html
index a112139..4b2b4cf 100644
--- a/doc/source-class-Slim.Log.html
+++ b/doc/source-class-Slim.Log.html
@@ -7,8 +7,8 @@
File thirdparty/Slim/Log.php | GeoApi
-
-
+
+
@@ -28,6 +28,8 @@
database
+ None
+
PHP
Slim
diff --git a/doc/source-class-Slim.LogWriter.html b/doc/source-class-Slim.LogWriter.html
index a8b40d1..607b2a2 100644
--- a/doc/source-class-Slim.LogWriter.html
+++ b/doc/source-class-Slim.LogWriter.html
@@ -7,8 +7,8 @@
File thirdparty/Slim/LogWriter.php | GeoApi
-
-
+
+
@@ -28,6 +28,8 @@
database
+ None
+
PHP
Slim
diff --git a/doc/source-class-Slim.Middleware.ContentTypes.html b/doc/source-class-Slim.Middleware.ContentTypes.html
index 26429cc..4e63d1d 100644
--- a/doc/source-class-Slim.Middleware.ContentTypes.html
+++ b/doc/source-class-Slim.Middleware.ContentTypes.html
@@ -7,8 +7,8 @@
File thirdparty/Slim/Middleware/ContentTypes.php | GeoApi
-
-
+
+
@@ -28,6 +28,8 @@
database
+ None
+
PHP
Slim
diff --git a/doc/source-class-Slim.Middleware.Flash.html b/doc/source-class-Slim.Middleware.Flash.html
index 345ba69..68f886d 100644
--- a/doc/source-class-Slim.Middleware.Flash.html
+++ b/doc/source-class-Slim.Middleware.Flash.html
@@ -7,8 +7,8 @@
File thirdparty/Slim/Middleware/Flash.php | GeoApi
-
-
+
+
@@ -28,6 +28,8 @@
database
+ None
+
PHP
Slim
diff --git a/doc/source-class-Slim.Middleware.MethodOverride.html b/doc/source-class-Slim.Middleware.MethodOverride.html
index 894c35f..72d4d31 100644
--- a/doc/source-class-Slim.Middleware.MethodOverride.html
+++ b/doc/source-class-Slim.Middleware.MethodOverride.html
@@ -7,8 +7,8 @@
File thirdparty/Slim/Middleware/MethodOverride.php | GeoApi
-
-
+
+
@@ -28,6 +28,8 @@
database
+ None
+
PHP
Slim
diff --git a/doc/source-class-Slim.Middleware.PrettyExceptions.html b/doc/source-class-Slim.Middleware.PrettyExceptions.html
index 5480fa2..b23c0f1 100644
--- a/doc/source-class-Slim.Middleware.PrettyExceptions.html
+++ b/doc/source-class-Slim.Middleware.PrettyExceptions.html
@@ -7,8 +7,8 @@
File thirdparty/Slim/Middleware/PrettyExceptions.php | GeoApi
-
-
+
+
@@ -28,6 +28,8 @@
database
+ None
+
PHP
Slim
diff --git a/doc/source-class-Slim.Middleware.SessionCookie.html b/doc/source-class-Slim.Middleware.SessionCookie.html
index a1303bf..d8f948f 100644
--- a/doc/source-class-Slim.Middleware.SessionCookie.html
+++ b/doc/source-class-Slim.Middleware.SessionCookie.html
@@ -7,8 +7,8 @@
File thirdparty/Slim/Middleware/SessionCookie.php | GeoApi
-
-
+
+
@@ -28,6 +28,8 @@
database
+ None
+
PHP
Slim
diff --git a/doc/source-class-Slim.Middleware.html b/doc/source-class-Slim.Middleware.html
index f63bde7..c9ecc7a 100644
--- a/doc/source-class-Slim.Middleware.html
+++ b/doc/source-class-Slim.Middleware.html
@@ -7,8 +7,8 @@
File thirdparty/Slim/Middleware.php | GeoApi
-
-
+
+
@@ -28,6 +28,8 @@
database
+ None
+
PHP
Slim
diff --git a/doc/source-class-Slim.Route.html b/doc/source-class-Slim.Route.html
index eb20c54..37bece6 100644
--- a/doc/source-class-Slim.Route.html
+++ b/doc/source-class-Slim.Route.html
@@ -7,8 +7,8 @@
File thirdparty/Slim/Route.php | GeoApi
-
-
+
+
@@ -28,6 +28,8 @@
database
+ None
+
PHP
Slim
diff --git a/doc/source-class-Slim.Router.html b/doc/source-class-Slim.Router.html
index 4273295..269e6f2 100644
--- a/doc/source-class-Slim.Router.html
+++ b/doc/source-class-Slim.Router.html
@@ -7,8 +7,8 @@
File thirdparty/Slim/Router.php | GeoApi
-
-
+
+
@@ -28,6 +28,8 @@
database
+ None
+
PHP
Slim
diff --git a/doc/source-class-Slim.Slim.html b/doc/source-class-Slim.Slim.html
index a2651a0..06c97a8 100644
--- a/doc/source-class-Slim.Slim.html
+++ b/doc/source-class-Slim.Slim.html
@@ -7,8 +7,8 @@
File thirdparty/Slim/Slim.php | GeoApi
-
-
+
+
@@ -28,6 +28,8 @@
database
+ None
+
PHP
Slim
diff --git a/doc/source-class-Slim.View.html b/doc/source-class-Slim.View.html
index 1e54fd3..4d36c0a 100644
--- a/doc/source-class-Slim.View.html
+++ b/doc/source-class-Slim.View.html
@@ -7,8 +7,8 @@
File thirdparty/Slim/View.php | GeoApi
-
-
+
+
@@ -28,6 +28,8 @@
database
+ None
+
PHP
Slim
diff --git a/doc/source-class-api.Api.html b/doc/source-class-api.Api.html
index 4e4880c..4cd0351 100644
--- a/doc/source-class-api.Api.html
+++ b/doc/source-class-api.Api.html
@@ -7,8 +7,8 @@
File api/Api.php | GeoApi
-
-
+
+
@@ -28,6 +28,8 @@
database
+ None
+
PHP
Slim
@@ -102,55 +104,95 @@
4:
5: include_once "../../global.inc.php";
6: include_once PATH_DATABASE . "/SQLManager.php";
- 7: require_once PATH_3PARTY . "/Slim/Slim.php";
- 8: \Slim\Slim::registerAutoloader();
- 9:
-10: 11: 12: 13: 14:
-15: abstract class Api extends \Slim\Slim {
-16:
-17: 18: 19: 20:
-21: protected $sqlManager;
-22:
-23: 24: 25:
-26: public function __construct() {
-27: $this->connect();
-28: parent::__construct();
-29:
-30:
-31: $this->contentType("Content-type: application/xml;charset=utf-8");
-32: }
-33:
-34: 35: 36:
-37: public function __destruct() {
-38:
-39:
-40: $this->sqlManager->closeConnection();
-41: unset($this->sqlManager);
-42: $this->sqlManager = null;
-43: }
-44:
-45: 46: 7: include_once PATH_UTILITTY . "/XmlManager.php";
+ 8: include_once PATH_UTILITTY . "/JsonManager.php";
+ 9: require_once PATH_3PARTY . "/Slim/Slim.php";
+10:
+11: \Slim\Slim::registerAutoloader();
+12:
+13: 14: 15: 16: 17:
+18: abstract class Api extends \Slim\Slim {
+19:
+20: 21: 22: 23:
+24: protected $sqlManager;
+25:
+26: 27: 28: 29:
+30: protected $serialManager;
+31:
+32: 33: 34: 35:
+36: protected static $contentypeXML = "application/xml;charset=utf-8";
+37:
+38: 39: 40: 41:
+42: protected static $contentypeJson = "application/json;charset=utf-8";
+43:
+44: 45: 46: 47:
-48: public function connect() {
-49: $this->sqlManager->connect();
-50: }
-51:
-52: }
-53:
-54: ?>
-55:
+48: private static $jsonRegStr = '/json/';
+49:
+50: 51: 52: 53:
+54: private static = "Accept";
+55:
+56: 57: 58: 59:
+60: public function __construct($headers = array()) {
+61: $this->connect();
+62: parent::__construct();
+63:
+64:
+65: if ($headers && array_key_exists(self::$keyReqHeaderAccept, $headers) && preg_match(self::$jsonRegStr, $headers[self::$keyReqHeaderAccept])) {
+66: $this->serialManager = new \utiliy\JsonManager();
+67: $this->contentType(self::$contentypeJson);
+68: } else {
+69: $this->serialManager = new \utiliy\XmlManager();
+70: $this->contentType(self::$contentypeXML);
+71: }
+72: }
+73:
+74: 75: 76:
+77: public function __destruct() {
+78:
+79:
+80: $this->sqlManager->closeConnection();
+81: unset($this->sqlManager);
+82: unset($this->serialManager);
+83: }
+84:
+85: 86: 87:
+88: public function connect() {
+89: $this->sqlManager->connect();
+90: }
+91:
+92: }
+93:
+94: ?>
+95:
- 1: <?php
- 2:
- 3: namespace api;
- 4:
- 5: include_once "../../global.inc.php";
- 6: include_once PATH_DATABASE . "/PisSqlManager.php";
- 7: include_once PATH_UTILITTY . "/XmlManager.php";
- 8: include_once PATH_UTILITTY . "/ArrayManager.php";
- 9: require_once PATH_API . "/Api.php";
-10:
-11: 12: 13: 14: 15:
-16: class PisApi extends Api {
-17:
-18: 19: 20: 21:
-22: public static $routeParameterPids = "/pid/:pid+";
-23:
-24: 25: 26: 27:
-28: private $maxPid = 10;
-29:
-30: 31: 32:
-33: public function __construct() {
-34: $this->sqlManager = new \database\PisSqlManager();
-35: parent::__construct();
-36: }
-37:
-38: 39: 40:
-41: public function __destruct() {
-42: parent::__destruct();
-43: }
-44:
-45: 46: 47: 48: 49:
-50: public function sendPisQuery($queryArgs) {
-51: $pidList = \utiliy\ArrayManager::removeEmptyItmes($queryArgs);
-52: if (count($pidList) < $this->maxPid) {
-53: $result = $this->sqlManager->sendPisQuery($pidList);
-54: return \utiliy\XmlManager::arrayToPisXml($result);
-55: }
-56: return NULL;
-57: }
-58: }
-59:
-60: ?>
-61:
+ 1: <?php
+ 2:
+ 3: namespace api;
+ 4:
+ 5: include_once "../../global.inc.php";
+ 6: include_once PATH_DATABASE . "/PisSqlManager.php";
+ 7: include_once PATH_UTILITTY . "/ArrayManager.php";
+ 8: require_once PATH_API . "/Api.php";
+ 9:
+ 10: 11: 12: 13: 14:
+ 15: class PisApi extends Api {
+ 16:
+ 17: 18: 19: 20:
+ 21: public static $routeParameterPids = "/pid/:pid+";
+ 22:
+ 23: 24: 25: 26:
+ 27: public static $routeParameterParent = "/parent/:parent";
+ 28:
+ 29: 30: 31: 32:
+ 33: public static $routeParameterINames = "/iname/:iname+";
+ 34:
+ 35: 36: 37: 38:
+ 39: public static $routParameterIPatter = "ipatter/:ipatter";
+ 40:
+ 41: 42: 43: 44:
+ 45: public static $keyPidList = "pidList";
+ 46:
+ 47: 48: 49: 50:
+ 51: public static $keyINameList = "iNameList";
+ 52:
+ 53: 54: 55: 56:
+ 57: public static $keyIPatter = "searchPatter";
+ 58:
+ 59: 60: 61: 62:
+ 63: public static $keyParentId = "parendId";
+ 64:
+ 65: 66: 67: 68:
+ 69: private static $maxPid = 50;
+ 70:
+ 71: 72: 73: 74:
+ 75: public function __construct($headers = array()) {
+ 76: $this->sqlManager = new \database\PisSqlManager();
+ 77: parent::__construct($headers);
+ 78: }
+ 79:
+ 80: 81: 82:
+ 83: public function __destruct() {
+ 84: parent::__destruct();
+ 85: }
+ 86:
+ 87: 88: 89: 90: 91:
+ 92: public function sendPisQuery($queryArgs) {
+ 93: $pidList = \utiliy\ArrayManager::removeEmptyItmes($queryArgs[self::$keyPidList]);
+ 94:
+ 95: if (array_key_exists(self::$keyINameList, $queryArgs)) {
+ 96: $iNameList = \utiliy\ArrayManager::removeEmptyItmes($queryArgs[self::$keyINameList]);
+ 97: } else {
+ 98: $iNameList = array();
+ 99: }
+100: if (array_key_exists(self::$keyIPatter, $queryArgs)) {
+101: $iPatter = trim($queryArgs[self::$keyIPatter]);
+102: } else {
+103: $iPatter = "*";
+104: }
+105:
+106: if (array_key_exists(self::$keyParentId, $queryArgs)) {
+107: $parentId = trim($queryArgs[self::$keyParentId]);
+108: } else {
+109: $parentId = "*";
+110: }
+111:
+112: if (count($pidList) < self::$maxPid) {
+113: $result = $this->sqlManager->sendPisQuery($pidList, $parentId, $iNameList, $iPatter);
+114:
+115: return $this->serialManager->arrayToPis($result);
+116: }
+117: return NULL;
+118: }
+119:
+120: }
+121:
+122: ?>
+123:
| | | | | | | | | | | | | | |