diff --git a/doc/404.html b/doc/404.html index b673575..1027422 100644 --- a/doc/404.html +++ b/doc/404.html @@ -7,8 +7,8 @@ Page not found | GeoApi - - + + @@ -28,6 +28,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim @@ -79,6 +81,7 @@
  • Slim\Slim
  • Slim\View
  • utiliy\ArrayManager
  • +
  • utiliy\JsonManager
  • utiliy\StringManager
  • utiliy\XmlManager
  • @@ -92,6 +95,7 @@
  • SeekableIterator
  • Serializable
  • Traversable
  • +
  • utiliy\SerialManager
  • @@ -107,6 +111,13 @@ +

    Functions

    + diff --git a/doc/class-ArrayAccess.html b/doc/class-ArrayAccess.html index 7bc3ae0..9d27d83 100644 --- a/doc/class-ArrayAccess.html +++ b/doc/class-ArrayAccess.html @@ -6,8 +6,8 @@ Interface ArrayAccess | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim diff --git a/doc/class-ArrayIterator.html b/doc/class-ArrayIterator.html index 7a3a16b..0cd9394 100644 --- a/doc/class-ArrayIterator.html +++ b/doc/class-ArrayIterator.html @@ -6,8 +6,8 @@ Class ArrayIterator | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim diff --git a/doc/class-Countable.html b/doc/class-Countable.html index 36de61b..1e71b13 100644 --- a/doc/class-Countable.html +++ b/doc/class-Countable.html @@ -6,8 +6,8 @@ Interface Countable | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim diff --git a/doc/class-ErrorException.html b/doc/class-ErrorException.html index 6cce829..e9dbfad 100644 --- a/doc/class-ErrorException.html +++ b/doc/class-ErrorException.html @@ -6,8 +6,8 @@ Class ErrorException | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim diff --git a/doc/class-Exception.html b/doc/class-Exception.html index 56f1342..bd89d33 100644 --- a/doc/class-Exception.html +++ b/doc/class-Exception.html @@ -6,8 +6,8 @@ Class Exception | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim diff --git a/doc/class-InvalidArgumentException.html b/doc/class-InvalidArgumentException.html index e9ccb9e..29b263d 100644 --- a/doc/class-InvalidArgumentException.html +++ b/doc/class-InvalidArgumentException.html @@ -6,8 +6,8 @@ Class InvalidArgumentException | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim diff --git a/doc/class-Iterator.html b/doc/class-Iterator.html index 66da5a0..b55dd3b 100644 --- a/doc/class-Iterator.html +++ b/doc/class-Iterator.html @@ -6,8 +6,8 @@ Interface Iterator | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim diff --git a/doc/class-IteratorAggregate.html b/doc/class-IteratorAggregate.html index 0bc380a..23c5ab7 100644 --- a/doc/class-IteratorAggregate.html +++ b/doc/class-IteratorAggregate.html @@ -6,8 +6,8 @@ Interface IteratorAggregate | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim diff --git a/doc/class-LogicException.html b/doc/class-LogicException.html index e2612f8..8c2405d 100644 --- a/doc/class-LogicException.html +++ b/doc/class-LogicException.html @@ -6,8 +6,8 @@ Class LogicException | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim diff --git a/doc/class-RuntimeException.html b/doc/class-RuntimeException.html index c0e0f5e..f4802ed 100644 --- a/doc/class-RuntimeException.html +++ b/doc/class-RuntimeException.html @@ -6,8 +6,8 @@ Class RuntimeException | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim diff --git a/doc/class-SeekableIterator.html b/doc/class-SeekableIterator.html index 9a3d911..5906233 100644 --- a/doc/class-SeekableIterator.html +++ b/doc/class-SeekableIterator.html @@ -6,8 +6,8 @@ Interface SeekableIterator | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim diff --git a/doc/class-Serializable.html b/doc/class-Serializable.html index 5b90da2..b2764a1 100644 --- a/doc/class-Serializable.html +++ b/doc/class-Serializable.html @@ -6,8 +6,8 @@ Interface Serializable | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim diff --git a/doc/class-SimpleXMLElement.html b/doc/class-SimpleXMLElement.html index 3377f14..2535965 100644 --- a/doc/class-SimpleXMLElement.html +++ b/doc/class-SimpleXMLElement.html @@ -6,8 +6,8 @@ Class SimpleXMLElement | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim diff --git a/doc/class-Slim.Environment.html b/doc/class-Slim.Environment.html index 521ea23..9a3aa27 100644 --- a/doc/class-Slim.Environment.html +++ b/doc/class-Slim.Environment.html @@ -6,8 +6,8 @@ Class Slim\Environment | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim diff --git a/doc/class-Slim.Exception.Pass.html b/doc/class-Slim.Exception.Pass.html index cc47737..55e9a45 100644 --- a/doc/class-Slim.Exception.Pass.html +++ b/doc/class-Slim.Exception.Pass.html @@ -6,8 +6,8 @@ Class Slim\Exception\Pass | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim diff --git a/doc/class-Slim.Exception.Stop.html b/doc/class-Slim.Exception.Stop.html index 15bf766..c09efc3 100644 --- a/doc/class-Slim.Exception.Stop.html +++ b/doc/class-Slim.Exception.Stop.html @@ -6,8 +6,8 @@ Class Slim\Exception\Stop | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim diff --git a/doc/class-Slim.Http.Headers.html b/doc/class-Slim.Http.Headers.html index cd55e2d..308a9d6 100644 --- a/doc/class-Slim.Http.Headers.html +++ b/doc/class-Slim.Http.Headers.html @@ -6,8 +6,8 @@ Class Slim\Http\Headers | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim diff --git a/doc/class-Slim.Http.Request.html b/doc/class-Slim.Http.Request.html index b969650..eef4b31 100644 --- a/doc/class-Slim.Http.Request.html +++ b/doc/class-Slim.Http.Request.html @@ -6,8 +6,8 @@ Class Slim\Http\Request | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim diff --git a/doc/class-Slim.Http.Response.html b/doc/class-Slim.Http.Response.html index cae4199..2a6d86d 100644 --- a/doc/class-Slim.Http.Response.html +++ b/doc/class-Slim.Http.Response.html @@ -6,8 +6,8 @@ Class Slim\Http\Response | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim diff --git a/doc/class-Slim.Http.Util.html b/doc/class-Slim.Http.Util.html index 01f4377..558b7b4 100644 --- a/doc/class-Slim.Http.Util.html +++ b/doc/class-Slim.Http.Util.html @@ -6,8 +6,8 @@ Class Slim\Http\Util | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim diff --git a/doc/class-Slim.Log.html b/doc/class-Slim.Log.html index 94cf6c6..db47dc1 100644 --- a/doc/class-Slim.Log.html +++ b/doc/class-Slim.Log.html @@ -6,8 +6,8 @@ Class Slim\Log | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim diff --git a/doc/class-Slim.LogWriter.html b/doc/class-Slim.LogWriter.html index 739df52..fc5df87 100644 --- a/doc/class-Slim.LogWriter.html +++ b/doc/class-Slim.LogWriter.html @@ -6,8 +6,8 @@ Class Slim\LogWriter | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim diff --git a/doc/class-Slim.Middleware.ContentTypes.html b/doc/class-Slim.Middleware.ContentTypes.html index aae9b20..10f7dee 100644 --- a/doc/class-Slim.Middleware.ContentTypes.html +++ b/doc/class-Slim.Middleware.ContentTypes.html @@ -6,8 +6,8 @@ Class Slim\Middleware\ContentTypes | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim diff --git a/doc/class-Slim.Middleware.Flash.html b/doc/class-Slim.Middleware.Flash.html index 86566b5..47173ac 100644 --- a/doc/class-Slim.Middleware.Flash.html +++ b/doc/class-Slim.Middleware.Flash.html @@ -6,8 +6,8 @@ Class Slim\Middleware\Flash | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim diff --git a/doc/class-Slim.Middleware.MethodOverride.html b/doc/class-Slim.Middleware.MethodOverride.html index f2ffa38..9cc96d4 100644 --- a/doc/class-Slim.Middleware.MethodOverride.html +++ b/doc/class-Slim.Middleware.MethodOverride.html @@ -6,8 +6,8 @@ Class Slim\Middleware\MethodOverride | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim diff --git a/doc/class-Slim.Middleware.PrettyExceptions.html b/doc/class-Slim.Middleware.PrettyExceptions.html index 661bb9f..9b1c316 100644 --- a/doc/class-Slim.Middleware.PrettyExceptions.html +++ b/doc/class-Slim.Middleware.PrettyExceptions.html @@ -6,8 +6,8 @@ Class Slim\Middleware\PrettyExceptions | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim diff --git a/doc/class-Slim.Middleware.SessionCookie.html b/doc/class-Slim.Middleware.SessionCookie.html index ec6d511..aa9507f 100644 --- a/doc/class-Slim.Middleware.SessionCookie.html +++ b/doc/class-Slim.Middleware.SessionCookie.html @@ -6,8 +6,8 @@ Class Slim\Middleware\SessionCookie | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim diff --git a/doc/class-Slim.Middleware.html b/doc/class-Slim.Middleware.html index 1f19910..c375c07 100644 --- a/doc/class-Slim.Middleware.html +++ b/doc/class-Slim.Middleware.html @@ -6,8 +6,8 @@ Class Slim\Middleware | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim diff --git a/doc/class-Slim.Route.html b/doc/class-Slim.Route.html index 856acfa..b4fce45 100644 --- a/doc/class-Slim.Route.html +++ b/doc/class-Slim.Route.html @@ -6,8 +6,8 @@ Class Slim\Route | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim diff --git a/doc/class-Slim.Router.html b/doc/class-Slim.Router.html index 56af795..d9834dc 100644 --- a/doc/class-Slim.Router.html +++ b/doc/class-Slim.Router.html @@ -6,8 +6,8 @@ Class Slim\Router | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim diff --git a/doc/class-Slim.Slim.html b/doc/class-Slim.Slim.html index 795724e..67b06ff 100644 --- a/doc/class-Slim.Slim.html +++ b/doc/class-Slim.Slim.html @@ -6,8 +6,8 @@ Class Slim\Slim | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim diff --git a/doc/class-Slim.View.html b/doc/class-Slim.View.html index 33efb6d..04952d6 100644 --- a/doc/class-Slim.View.html +++ b/doc/class-Slim.View.html @@ -6,8 +6,8 @@ Class Slim\View | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim diff --git a/doc/class-Traversable.html b/doc/class-Traversable.html index 20ca2d8..9016792 100644 --- a/doc/class-Traversable.html +++ b/doc/class-Traversable.html @@ -6,8 +6,8 @@ Interface Traversable | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim diff --git a/doc/class-api.Api.html b/doc/class-api.Api.html index c0bb3aa..514629f 100644 --- a/doc/class-api.Api.html +++ b/doc/class-api.Api.html @@ -6,8 +6,8 @@ Class api\Api | GeoApi - - + + @@ -27,6 +27,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim @@ -142,7 +144,7 @@ stubbfel
    Since: 20.06.2013
    - Located at api/Api.php
    + Located at api/Api.php
    @@ -160,20 +162,25 @@
    # - __construct( ) + __construct( array[assoc] $headers = array() )
    -

    Default-Constructor

    +

    Constructor

  • 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

  • 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

  • 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

  • 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

    + +
    + + +
    + + + + public static + string + + + + $refpoint + + "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

    + +
    + + +
    + + + + public static + string + + + + $refpoint + + "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
    # - sendSpsCoordinateQuery( array $queryArgs ) + sendSpsCoordinateQuery( array $queryArgs )
    @@ -358,6 +360,33 @@ database\SQLManager

    Fieldname of the parendId

    +
    +
    + + + + public static + string + + + + $refpoint + + "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

    + +
    + + +
    + + + + protected static + string + + + + $closeBracket + + ")" +
    + # + +
    + +

    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

    + +
    + + +
    + + + + + 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 + + + + + + + + +
    + +
    + +
    + + + + 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 + + + + + + + + +
    + +
    + +
    + + + + 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 )
    @@ -227,7 +234,7 @@
    # - validSQLString( string $string ) + validSQLString( string $string )
    @@ -257,6 +264,48 @@ controlls)

    +
    +
    + + + + + public static + boolean + + + + +
    + # + validInt( string $value ) + +
    + +

    Method if the string is in integor

    + +
    + +
    @@ -290,13 +339,40 @@ controlls)

    -

    A Constant vor an emptystring like ""

    +

    A Constant for an emptystring like ""

    +
    + + + + public static + string + + + + $quotes + + "\"" +
    + # + +
    + +

    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

    + +
    + + +
    + + + + + public + string + + + + +
    + # + arrayToPis( array $result ) + +
    + +

    Convert an array from the PIS to a formatted string

    + +
    + + +
    + + + + + public + string + + + + +
    + # + arrayToPss( array $result ) + +
    + +

    Convert an array from the PSS to a formatted string

    + +
    + +
    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 + + + + + + + + +
    + +
    + +
    + + + + 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 + + + + + + + + +
    + +
    + +
    + + + + 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 + + + + + + + + +
    + +
    + +
    + + + + 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 + + + + + + + + +
    + +
    + +
    + + + + 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 + + + + + + + + +
    + +
    + +
    + + + + 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
    SerialManagerThis 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: * This class provides some general API methods -12: * @author stubbfel -13: * @since 20.06.2013 -14: */ -15: abstract class Api extends \Slim\Slim { -16: -17: /** -18: * Variable for the sql manager of the api -19: * @var <T>:SqlManager -20: */ -21: protected $sqlManager; -22: -23: /** -24: * Default-Constructor -25: */ -26: public function __construct() { -27: $this->connect(); -28: parent::__construct(); -29: -30: // set content type td xml -31: $this->contentType("Content-type: application/xml;charset=utf-8"); -32: } -33: -34: /** -35: * Default-DeConstructor -36: */ -37: public function __destruct() { -38: -39: // destroy the sqlManager -40: $this->sqlManager->closeConnection(); -41: unset($this->sqlManager); -42: $this->sqlManager = null; -43: } -44: -45: /** -46: * Method start a connection to the database + 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: * This class provides some general API methods +15: * @author stubbfel +16: * @since 20.06.2013 +17: */ +18: abstract class Api extends \Slim\Slim { +19: +20: /** +21: * Variable for the sql manager of the api +22: * @var <T>:SqlManager +23: */ +24: protected $sqlManager; +25: +26: /** +27: * Variable for the serialazarion manager of the api +28: * @var <T>:SqlManager +29: */ +30: protected $serialManager; +31: +32: /** +33: * Variable for the contentype of XML +34: * @var string +35: */ +36: protected static $contentypeXML = "application/xml;charset=utf-8"; +37: +38: /** +39: * Variable for the contentype of Json +40: * @var string +41: */ +42: protected static $contentypeJson = "application/json;charset=utf-8"; +43: +44: /** +45: * Variable for the regex−string to search json-contenttype +46: * @var string 47: */ -48: public function connect() { -49: $this->sqlManager->connect(); -50: } -51: -52: } -53: -54: ?> -55: +48: private static $jsonRegStr = '/json/'; +49: +50: /** +51: * Keyword for the accept parameter of the requestheader +52: * @var string +53: */ +54: private static $keyReqHeaderAccept = "Accept"; +55: +56: /** +57: * Constructor +58: * @param array[assoc] $headers - RequestHeader +59: */ +60: public function __construct($headers = array()) { +61: $this->connect(); +62: parent::__construct(); +63: +64: // set content type +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: * Default-DeConstructor +76: */ +77: public function __destruct() { +78: +79: // destroy the sqlManager +80: $this->sqlManager->closeConnection(); +81: unset($this->sqlManager); +82: unset($this->serialManager); +83: } +84: +85: /** +86: * Method start a connection to the database +87: */ +88: public function connect() { +89: $this->sqlManager->connect(); +90: } +91: +92: } +93: +94: ?> +95:
  • database
  • +
  • None +
  • PHP
  • Slim @@ -96,67 +98,129 @@ -
     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:  * This class provides some spezial PisAPI methods
    -13:  * @author stubbfel
    -14:  * @since 20.06.2013
    -15:  */
    -16: class PisApi extends Api {
    -17: 
    -18:     /**
    -19:      * Route string for the alias paramter
    -20:      * @var string
    -21:      */
    -22:     public static $routeParameterPids = "/pid/:pid+";
    -23: 
    -24:     /**
    -25:      * max number of pid for each query
    -26:      * @var int
    -27:      */
    -28:     private $maxPid = 10;
    -29: 
    -30:     /**
    -31:      * Default-Constructor
    -32:      */
    -33:     public function __construct() {
    -34:         $this->sqlManager = new \database\PisSqlManager();
    -35:         parent::__construct();
    -36:     }
    -37: 
    -38:     /**
    -39:      * Default-DeConstructor
    -40:      */
    -41:     public function __destruct() {
    -42:         parent::__destruct();
    -43:     }
    -44: 
    -45:     /**
    -46:      * Method start a pis-query
    -47:      * @param array $queryArgs
    -48:      * @return query result as xml
    -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:  * This class provides some spezial PisAPI methods
    + 12:  * @author stubbfel
    + 13:  * @since 20.06.2013
    + 14:  */
    + 15: class PisApi extends Api {
    + 16: 
    + 17:     /**
    + 18:      * Route string for the pids paramter
    + 19:      * @var string
    + 20:      */
    + 21:     public static $routeParameterPids = "/pid/:pid+";
    + 22:     
    + 23:         /**
    + 24:      * Route string for the parent paramter
    + 25:      * @var string
    + 26:      */
    + 27:     public static $routeParameterParent = "/parent/:parent";
    + 28: 
    + 29:     /**
    + 30:      * Route string for the iNames paramter
    + 31:      * @var string
    + 32:      */
    + 33:     public static $routeParameterINames = "/iname/:iname+";
    + 34: 
    + 35:     /**
    + 36:      * public string for the patter string parameter
    + 37:      * @var string
    + 38:      */
    + 39:     public static $routParameterIPatter = "ipatter/:ipatter";
    + 40: 
    + 41:     /**
    + 42:      * Keyword for pidList arguments
    + 43:      * @var string
    + 44:      */
    + 45:     public static $keyPidList = "pidList";
    + 46: 
    + 47:     /**
    + 48:      * Keyword for iNameList arguments
    + 49:      * @var string
    + 50:      */
    + 51:     public static $keyINameList = "iNameList";
    + 52: 
    + 53:     /**
    + 54:      * Keyword for iNameList arguments
    + 55:      * @var string
    + 56:      */
    + 57:     public static $keyIPatter = "searchPatter";
    + 58: 
    + 59:     /**
    + 60:      * Keyword for parendId arguments
    + 61:      * @var string
    + 62:      */
    + 63:     public static $keyParentId = "parendId";
    + 64: 
    + 65:     /**
    + 66:      * max number of pid for each query
    + 67:      * @var int
    + 68:      */
    + 69:     private static $maxPid = 50;
    + 70: 
    + 71:     /**
    + 72:      * Constructor
    + 73:      * @param array[assoc] $headers - RequestHeader
    + 74:      */
    + 75:     public function __construct($headers = array()) {
    + 76:         $this->sqlManager = new \database\PisSqlManager();
    + 77:         parent::__construct($headers);
    + 78:     }
    + 79: 
    + 80:     /**
    + 81:      * Default-DeConstructor
    + 82:      */
    + 83:     public function __destruct() {
    + 84:         parent::__destruct();
    + 85:     }
    + 86: 
    + 87:     /**
    + 88:      * Method start a pis-query
    + 89:      * @param array $queryArgs
    + 90:      * @return query result as xml
    + 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: 
  • database
  • +
  • None +
  • PHP
  • Slim @@ -118,47 +120,73 @@ 20: * @var string 21: */ 22: public static $routeParameterPids = "/pid/:pid+"; -23: -24: /** -25: * max number of pid for each query -26: * @var int +23: +24: /** +25: * Route string for the iNames paramter +26: * @var string 27: */ -28: private $maxPid = 10; -29: -30: /** -31: * Default-Constructor -32: */ -33: public function __construct() { -34: $this->sqlManager = new \database\PssSqlManager(); -35: parent::__construct(); -36: } -37: -38: /** -39: * Default-DeConstructor -40: */ -41: public function __destruct() { -42: parent::__destruct(); -43: } -44: -45: /** -46: * Method start a pis-query -47: * @param array $queryArgs -48: * @return query result as xml -49: */ -50: public function sendPssQuery($queryArgs) { -51: $pidList = \utiliy\ArrayManager::removeEmptyItmes($queryArgs); -52: -53: if (count($pidList) < $this->maxPid) { -54: $result = $this->sqlManager->sendPssQuery($pidList); -55: return \utiliy\XmlManager::arrayToPssXml($result); -56: } -57: return NULL; -58: } -59: -60: } -61: -62: ?> -63: +28: public static $routeParameterSNames = "/sname/:sname+"; +29: +30: /** +31: * Keyword for pidList arguments +32: * @var string +33: */ +34: public static $keyPidList = "pidList"; +35: +36: /** +37: * Keyword for iNameList arguments +38: * @var string +39: */ +40: public static $keySNameList = "sNameList"; +41: +42: /** +43: * max number of pid for each query +44: * @var int +45: */ +46: private static $maxPid = 50; +47: +48: /** +49: * Constructor +50: * @param array[assoc] $headers - RequestHeader +51: */ +52: public function __construct($headers = array()) { +53: $this->sqlManager = new \database\PssSqlManager(); +54: parent::__construct($headers); +55: } +56: +57: /** +58: * Default-DeConstructor +59: */ +60: public function __destruct() { +61: parent::__destruct(); +62: } +63: +64: /** +65: * Method start a pis-query +66: * @param array $queryArgs +67: * @return query result as xml +68: */ +69: public function sendPssQuery($queryArgs) { +70: $pidList = \utiliy\ArrayManager::removeEmptyItmes($queryArgs[self::$keyPidList]); +71: +72: if (array_key_exists(self::$keySNameList, $queryArgs)) { +73: $sNameList = \utiliy\ArrayManager::removeEmptyItmes($queryArgs[self::$keySNameList]); +74: } else { +75: $sNameList = array(); +76: } +77: +78: if (count($pidList) < self::$maxPid) { +79: $result = $this->sqlManager->sendPssQuery($pidList, $sNameList); +80: +81: return $this->serialManager->arrayToPss($result); +82: } +83: return NULL; +84: } +85: +86: } +87: +88: ?> +89:
  • database
  • +
  • None +
  • PHP
  • Slim @@ -102,214 +104,246 @@ 4: 5: include_once "../../global.inc.php"; 6: include_once PATH_DATABASE . "/SpsSqlManager.php"; - 7: include_once PATH_UTILITTY . "/XmlManager.php"; - 8: require_once PATH_API . "/Api.php"; - 9: - 10: /** - 11: * This class provides some spezial SpsAPI methods - 12: * @author stubbfel - 13: * @since 20.06.2013 - 14: */ - 15: class SpsApi extends Api { - 16: - 17: /** - 18: * Route string for the alias paramter - 19: * @var string - 20: */ - 21: public static $routeParameterAlias = "/alias/:alias"; - 22: - 23: /** - 24: * Route string for the domain paramter - 25: * @var string - 26: */ - 27: public static $routeParameterDomain = "/domain/:domain"; - 28: - 29: /** - 30: * Route string for the Longitude paramter - 31: * @var string - 32: */ - 33: public static $routeParameterLongitude = "/longitude/:longitude"; - 34: - 35: /** - 36: * Route string for the latitude paramter - 37: * @var string - 38: */ - 39: public static $routeParameterLatitude = "/latitude/:latitude"; - 40: - 41: /** - 42: * Keyword for alias arguments - 43: * @var string - 44: */ - 45: public static $keyAlias = "alias"; - 46: - 47: /** - 48: * Keyword for domain arguments - 49: * @var string - 50: */ - 51: public static $keyDomain = "domain"; - 52: - 53: /** - 54: * Keyword for polygon arguments - 55: * @var string - 56: */ - 57: public static $keyPoly = "poly"; - 58: - 59: /** - 60: * Keyword for longitude arguments - 61: * @var string - 62: */ - 63: public static $keyLong = "longitude"; - 64: - 65: /** - 66: * Keyword for latitude arguments - 67: * @var string - 68: */ - 69: public static $keyLat = "latitude"; - 70: - 71: /* - 72: * Varible for the range of the searchpolygon - 73: * @var float - 74: */ - 75: private $range = 1; - 76: - 77: /* - 78: * Varible for the fist chars of the string for a Polygon - 79: * @var string - 80: */ - 81: private $polyStartStr = "GeomFromText('Polygon(("; - 82: - 83: /* - 84: * Varible for the last chars of the string for a Polygon - 85: * @var string - 86: */ - 87: private $polyEndStr = "))'"; - 88: - 89: /** - 90: * maximum value of latitude - 91: * @var float - 92: */ - 93: private $maxLat = 180; - 94: - 95: /** - 96: * minimum value of latitude - 97: * @var float - 98: */ - 99: private $minLat = -180; -100: -101: /** -102: * maximum value of longitude -103: * @var float -104: */ -105: private $maxLong = 180; -106: -107: /** -108: * minimum value of longitude -109: * @var float -110: */ -111: private $minLong = -180; -112: -113: /** -114: * Default-Constructor -115: */ -116: public function __construct() { -117: $this->sqlManager = new \database\SpsSqlManager(); -118: parent::__construct(); -119: } -120: -121: /** -122: * Default-DeConstructor -123: */ -124: public function __destruct() { -125: parent::__destruct(); -126: } -127: -128: /** -129: * Method start a sps-query(alias) -130: * @param array $queryArgs -131: * @return querry result as xml -132: */ -133: public function sendSpsAliasQuery($queryArgs) { -134: $result = $this->sqlManager->sendSpsAliasQuery($queryArgs); -135: return \utiliy\XmlManager::arrayToSpsXml($result); -136: } -137: -138: /** -139: * Method start a sps-query(Coordinates) -140: * @param array $queryArgs -141: * @return querry result as xml -142: */ -143: public function sendSpsCoordinateQuery($queryArgs) { -144: -145: // check arguments of the query -146: if (!array_key_exists(SpsApi::$keyLong, $queryArgs) || !array_key_exists(SpsApi::$keyLat, $queryArgs)) { -147: return null; -148: } -149: $latitude = $queryArgs[SpsApi::$keyLat]; -150: $longitude = $queryArgs[SpsApi::$keyLong]; -151: -152: if (!$this->validLatitude($latitude) || !$this->validLongitude($longitude)) { -153: return null; -154: } + 7: require_once PATH_API . "/Api.php"; + 8: + 9: /** + 10: * This class provides some spezial SpsAPI methods + 11: * @author stubbfel + 12: * @since 20.06.2013 + 13: */ + 14: class SpsApi extends Api { + 15: + 16: /** + 17: * Route string for the alias paramter + 18: * @var string + 19: */ + 20: public static $routeParameterAlias = "/alias/:alias"; + 21: + 22: /** + 23: * Route string for the domain paramter + 24: * @var string + 25: */ + 26: public static $routeParameterDomain = "(/domain/:domain)"; + 27: /** + 28: * Route string for the range paramter + 29: * @var string + 30: */ + 31: public static $routeParameterRange = "(/range/:range)"; + 32: + 33: /** + 34: * Route string for the Longitude paramter + 35: * @var string + 36: */ + 37: public static $routeParameterLongitude = "/longitude/:longitude"; + 38: + 39: /** + 40: * Route string for the latitude paramter + 41: * @var string + 42: */ + 43: public static $routeParameterLatitude = "/latitude/:latitude"; + 44: + 45: /** + 46: * Keyword for alias arguments + 47: * @var string + 48: */ + 49: public static $keyAlias = "alias"; + 50: + 51: /** + 52: * Keyword for domain arguments + 53: * @var string + 54: */ + 55: public static $keyDomain = "domain"; + 56: + 57: /** + 58: * Keyword for polygon arguments + 59: * @var string + 60: */ + 61: public static $keyPoly = "poly"; + 62: + 63: /** + 64: * Keyword for longitude arguments + 65: * @var string + 66: */ + 67: public static $keyLong = "longitude"; + 68: + 69: /** + 70: * Keyword for latitude arguments + 71: * @var string + 72: */ + 73: public static $keyLat = "latitude"; + 74: + 75: /** + 76: * Keyword for range arguments + 77: * @var string + 78: */ + 79: public static $keyRange = "range"; + 80: + 81: /* + 82: * Varible for the range of the searchpolygon + 83: * @var float + 84: */ + 85: private static $range = 0.001; + 86: + 87: /* + 88: * Varible for the fist chars of the string for a Polygon + 89: * @var string + 90: */ + 91: private static $polyStartStr = "GeomFromText('Polygon(("; + 92: + 93: /* + 94: * Varible for the last chars of the string for a Polygon + 95: * @var string + 96: */ + 97: private static $polyEndStr = "))'"; + 98: + 99: /** +100: * maximum value of latitude +101: * @var float +102: */ +103: private static $maxLat = 180; +104: +105: /** +106: * minimum value of latitude +107: * @var float +108: */ +109: private static $minLat = -180; +110: +111: /** +112: * maximum value of longitude +113: * @var float +114: */ +115: private static $maxLong = 180; +116: +117: /** +118: * minimum value of longitude +119: * @var float +120: */ +121: private static $minLong = -180; +122: +123: /** +124: * Constructor +125: * @param array[assoc] $headers - RequestHeader +126: */ +127: public function __construct($headers = array()) { +128: $this->sqlManager = new \database\SpsSqlManager(); +129: parent::__construct($headers); +130: } +131: +132: /** +133: * Default-DeConstructor +134: */ +135: public function __destruct() { +136: parent::__destruct(); +137: } +138: +139: /** +140: * Method start a sps-query(alias) +141: * @param array $queryArgs +142: * @return querry result as xml +143: */ +144: public function sendSpsAliasQuery($queryArgs) { +145: $result = $this->sqlManager->sendSpsAliasQuery($queryArgs); +146: return $this->serialManager->arrayToSps($result); +147: } +148: +149: /** +150: * Method start a sps-query(Coordinates) +151: * @param array $queryArgs +152: * @return querry result as xml +153: */ +154: public function sendSpsCoordinateQuery($queryArgs) { 155: -156: // build a request polygon -157: $queryArgs[SpsApi::$keyPoly] = $this->createPolygon($latitude, $longitude, $this->range); -158: -159: // send querry -160: $result = $this->sqlManager->sendSpsCoordinateQuery($queryArgs); -161: return \utiliy\XmlManager::arrayToSpsXml($result); -162: } -163: -164: /** -165: * Method check if a string is a valid Longitude -166: * @param string $string -167: * @return bool -168: */ -169: private function validLongitude($string) { -170: $digitLessPoint = str_replace(".", "", $string); -171: $digit = str_replace("-", "", $digitLessPoint); -172: if (ctype_digit($digit)) { -173: if ($string <= $this->maxLong && $string >= $this->minLong) { -174: return TRUE; -175: } -176: }; -177: return FALSE; -178: } -179: -180: /** -181: * Method check if a string is a valid Latitude -182: * @param strinf $string -183: * @return bool -184: */ -185: private function validLatitude($string) { -186: $digitLessPoint = str_replace(".", "", $string); -187: $digit = str_replace("-", "", $digitLessPoint); -188: if (ctype_digit($digit)) { -189: if ($string <= $this->maxLat && $string >= $this->minLat) { -190: return TRUE; -191: } +156: // check arguments of the query +157: if (!array_key_exists(self::$keyLong, $queryArgs) || !array_key_exists(self::$keyLat, $queryArgs)) { +158: return null; +159: } +160: $latitude = $queryArgs[self::$keyLat]; +161: $longitude = $queryArgs[self::$keyLong]; +162: +163: if (!$this->validLatitude($latitude) || !$this->validLongitude($longitude)) { +164: return null; +165: } +166: +167: // build a request polygon +168: if (array_key_exists(self::$keyRange, $queryArgs)) { +169: $newRange = $queryArgs[self::$keyRange]; +170: if ($this->validRange($newRange)) { +171: self::$range = $newRange; +172: } else { +173: return; +174: } +175: } +176: $queryArgs[self::$keyPoly] = $this->createPolygon($latitude, $longitude, self::$range); +177: +178: // send querry +179: $result = $this->sqlManager->sendSpsCoordinateQuery($queryArgs); +180: return $this->serialManager->arrayToSps($result); +181: } +182: +183: /** +184: * Method check if a string is a valid Longitude +185: * @param string $string +186: * @return bool +187: */ +188: private function validRange($string) { +189: $digit = str_replace(".", "", $string); +190: if (ctype_digit($digit)) { +191: return TRUE; 192: }; 193: return FALSE; 194: } 195: 196: /** -197: * Method create a Polygon -198: * @param float $latitude -199: * @param float $longitude -200: * @param float $range -201: * @return string -202: */ -203: private function createPolygon($latitude, $longitude, $range) { -204: $minLat = $latitude - $range; -205: $minLong = $longitude - $range; -206: $maxLat = $latitude + $range; -207: $maxLong = $longitude + $range; -208: return $this->polyStartStr . "$minLat $minLong,$minLat $maxLong,$maxLat $maxLong,$maxLat $minLong,$minLat $minLong" . $this->polyEndStr; -209: } -210: -211: } -212: -213: ?> -214: +197: * Method check if a string is a valid Longitude +198: * @param string $string +199: * @return bool +200: */ +201: private function validLongitude($string) { +202: $digitLessPoint = str_replace(".", "", $string); +203: $digit = str_replace("-", "", $digitLessPoint); +204: if (ctype_digit($digit)) { +205: if ($string <= self::$maxLong && $string >= self::$minLong) { +206: return TRUE; +207: } +208: }; +209: return FALSE; +210: } +211: +212: /** +213: * Method check if a string is a valid Latitude +214: * @param strinf $string +215: * @return bool +216: */ +217: private function validLatitude($string) { +218: $digitLessPoint = str_replace(".", "", $string); +219: $digit = str_replace("-", "", $digitLessPoint); +220: if (ctype_digit($digit)) { +221: if ($string <= self::$maxLat && $string >= self::$minLat) { +222: return TRUE; +223: } +224: }; +225: return FALSE; +226: } +227: +228: /** +229: * Method create a Polygon +230: * @param float $latitude +231: * @param float $longitude +232: * @param float $range +233: * @return string +234: */ +235: private function createPolygon($latitude, $longitude, $range) { +236: $minLat = $latitude - $range; +237: $minLong = $longitude - $range; +238: $maxLat = $latitude + $range; +239: $maxLong = $longitude + $range; +240: return self::$polyStartStr . "$minLong $minLat,$minLong $maxLat,$maxLong $maxLat,$maxLong $minLat,$minLong $minLat" . self::$polyEndStr; +241: } +242: +243: } +244: +245: ?> +246:
  • database
  • +
  • None +
  • PHP
  • Slim @@ -115,7 +117,7 @@ 20: * name of the database 21: * @var string 22: */ -23: public static $sqlDBName = "geoDB"; +23: public static $sqlDBName = "geodb"; 24: 25: /** 26: * user of the database diff --git a/doc/source-class-database.PisSqlManager.html b/doc/source-class-database.PisSqlManager.html index 5f3a37a..3321c6f 100644 --- a/doc/source-class-database.PisSqlManager.html +++ b/doc/source-class-database.PisSqlManager.html @@ -7,8 +7,8 @@ File database/PisSqlManager.php | GeoApi - - + + @@ -28,6 +28,8 @@
  • database
  • +
  • None +
  • PHP
  • Slim @@ -96,94 +98,180 @@ -
     1: <?php
    - 2: 
    - 3: namespace database;
    - 4: 
    - 5: include_once "../../global.inc.php";
    - 6: include_once PATH_UTILITTY . "/StringManager.php";
    - 7: require_once PATH_DATABASE . "/SqlManager.php";
    - 8: 
    - 9: /**
    -10:  * Description of PisSqlManager
    -11:  * 
    -12:  * @author stubbfel
    -13:  * @since 20.06.2013
    -14:  */
    -15: class PisSqlManager extends SQLManager {
    -16: 
    -17:     /**
    -18:      * Fieldname of the placeID
    -19:      * @var string
    -20:      */
    -21:     public static $placeId = "pid";
    -22: 
    -23:     /**
    -24:      * Fieldname of the name of the information
    -25:      * @var string
    -26:      */
    -27:     public static $infName = "iName";
    -28: 
    -29:     /**
    -30:      * Fieldname of the value of the information
    -31:      * @var string
    -32:      */
    -33:     public static $infValue = "iValue";
    -34: 
    -35:     /**
    -36:      * String for the select part of the query
    -37:      * @var string
    -38:      */
    -39:     private $selectTerm = "SELECT pid, iName, iValue FROM pis WHERE ";
    -40: 
    -41:     /**
    -42:      * String for the orderby part of the query
    -43:      * @var string
    -44:      */
    -45:     private $orderByTerm = " ORDER BY pid, iName";
    -46: 
    -47:     /**
    -48:      * String for the pid part of the query
    -49:      * @var string
    -50:      */
    -51:     private $pidTerm = "pid = ";
    -52: 
    -53:     /**
    -54:      * Default-Constructor
    -55:      */
    -56:     public function __construct() {
    -57:         parent::__construct();
    -58:     }
    -59: 
    -60:     /**
    -61:      * Default-DeConstructor
    -62:      */
    -63:     public function __destruct() {
    -64:         parent::__destruct();
    -65:     }
    -66: 
    -67:     /**
    -68:      * Methods send an query for the pis-service
    -69:      * @param array $queryArgs
    -70:      * @return array [num][assoc]
    -71:      */
    -72:     public function sendPisQuery($queryArgs) {
    -73: 
    -74:         // build query string
    -75:         $query = $this->selectTerm;
    -76:         if (\utiliy\ArrayManager::validIntList($queryArgs)) {
    -77:             $query .= \utiliy\ArrayManager::toSqlWhereString($queryArgs,  $this->orTerm, $this->pidTerm) . $this->orderByTerm;
    -78:         } else {
    -79:             return null;
    -80:         }
    -81:         
    -82:         // send query
    -83:         return $this->query($query);
    -84:     }
    -85: }
    -86: 
    -87: ?>
    -88: 
    +
      1: <?php
    +  2: 
    +  3: namespace database;
    +  4: 
    +  5: include_once "../../global.inc.php";
    +  6: include_once PATH_UTILITTY . "/ArrayManager.php";
    +  7: require_once PATH_DATABASE . "/SqlManager.php";
    +  8: 
    +  9: /**
    + 10:  * Description of PisSqlManager
    + 11:  * 
    + 12:  * @author stubbfel
    + 13:  * @since 20.06.2013
    + 14:  */
    + 15: class PisSqlManager extends SQLManager {
    + 16: 
    + 17:     /**
    + 18:      * Fieldname of the placeID
    + 19:      * @var string
    + 20:      */
    + 21:     public static $placeId = "pid";
    + 22: 
    + 23:     /**
    + 24:      * Fieldname of the name of the information
    + 25:      * @var string
    + 26:      */
    + 27:     public static $infName = "iName";
    + 28: 
    + 29:     /**
    + 30:      * Fieldname of the value of the information
    + 31:      * @var string
    + 32:      */
    + 33:     public static $infValue = "iValue";
    + 34: 
    + 35:     /**
    + 36:      * Fieldname of the parendId
    + 37:      * @var string
    + 38:      */
    + 39:     public static $parentId = "parent";
    + 40: 
    + 41:     /**
    + 42:      * Fieldname of the refpoint
    + 43:      * @var string
    + 44:      */
    + 45:     public static $refpoint = "refpoint";
    + 46: 
    + 47:     /**
    + 48:      * String for the select part of the query
    + 49:      * @var string
    + 50:      */
    + 51:     private static $selectTerm = "SELECT pid, parent, refpoint, iName, iValue FROM pis WHERE ";
    + 52: 
    + 53:     /**
    + 54:      * String for the select all part of the query
    + 55:      * @var string
    + 56:      */
    + 57:     private static $selectAllTerm = "SELECT pid, parent, refpoint, iName, iValue FROM pis ";
    + 58: 
    + 59:     /**
    + 60:      * String for the orderby part of the query
    + 61:      * @var string
    + 62:      */
    + 63:     private static $orderByTerm = " ORDER BY pid, iName";
    + 64: 
    + 65:     /**
    + 66:      * String for like-Statement fo iValue field
    + 67:      * @var string 
    + 68:      */
    + 69:     private static $iValueLikeTerm = "iValue LIKE ";
    + 70: 
    + 71:     /**
    + 72:      * String for the pid part of the query
    + 73:      * @var string
    + 74:      */
    + 75:     private static $pidTerm = "pid = ";
    + 76: 
    + 77:     /**
    + 78:      * String for the parent part of the query
    + 79:      * @var string
    + 80:      */
    + 81:     private static $parentTerm = "parent = ";
    + 82: 
    + 83:     /**
    + 84:      * String for the iName part of the query
    + 85:      * @var string
    + 86:      */
    + 87:     private static $iNameTerm = "iName = ";
    + 88: 
    + 89:     /**
    + 90:      * Variable for the max lenght of an valid pattern string
    + 91:      * @var int
    + 92:      */
    + 93:     private static $patterMaxLenght = 30;
    + 94: 
    + 95:     /**
    + 96:      * Default-Constructor
    + 97:      */
    + 98:     public function __construct() {
    + 99:         parent::__construct();
    +100:     }
    +101: 
    +102:     /**
    +103:      * Default-DeConstructor
    +104:      */
    +105:     public function __destruct() {
    +106:         parent::__destruct();
    +107:     }
    +108: 
    +109:     /**
    +110:      * Methods send an query for the pis-service
    +111:      * @param array $queryArgs
    +112:      * @return array [num][assoc]
    +113:      */
    +114:     public function sendPisQuery($pidList, $parentId, $iNameList, $iPatter = "*") {
    +115: 
    +116:         // build query string
    +117:         $query = self::$selectTerm;
    +118:         if (\utiliy\ArrayManager::validIntList($pidList)) {
    +119:             $query .= self::$openBracket;
    +120:             $query .= \utiliy\ArrayManager::toSqlWhereString($pidList, self::$orTerm, self::$pidTerm);
    +121:             $query .= self::$closeBracket;
    +122:         } else if ($pidList[0] != "*") {
    +123:             return null;
    +124:         }
    +125: 
    +126:         if ($parentId != "*" && \utiliy\StringManager::validInt($parentId)) {
    +127:             if ($query != self::$selectTerm) {
    +128:                 $query .= self::$andTerm;
    +129:             }
    +130:             $query .= self::$parentTerm . "$parentId";
    +131:         }
    +132: 
    +133:         if (count($iNameList) > 0 && \utiliy\ArrayManager::validAlphaNumList($iNameList)) {
    +134:             if ($query != self::$selectTerm) {
    +135:                 $query .= self::$andTerm;
    +136:             }
    +137:             $query .= self::$openBracket;
    +138:             $query .= \utiliy\ArrayManager::toSqlWhereString($iNameList, self::$orTerm, self::$iNameTerm);
    +139:             $query .= self::$closeBracket;
    +140:         }
    +141: 
    +142:         if ($iPatter != "*" && $this->validIPatter($iPatter)) {
    +143:             if ($query != self::$selectTerm) {
    +144:                 $query .= self::$andTerm;
    +145:             }
    +146:             $query .= self::$iValueLikeTerm . "'%$iPatter%'";
    +147:         }
    +148: 
    +149:         if ($query == self::$selectTerm) {
    +150:             $query = self::$selectAllTerm;
    +151:         }
    +152: 
    +153:         $query .= self::$orderByTerm;
    +154: 
    +155:         // send query
    +156:         return $this->query($query);
    +157:     }
    +158: 
    +159:     /**
    +160:      * Method check if the input value for pattern string is valid
    +161:      * @param string $domain
    +162:      * @return boolean
    +163:      */
    +164:     private function validIPatter($iPatter) {
    +165:         if (\utiliy\StringManager::validSQLString($iPatter) && ctype_alnum($iPatter) && strlen($iPatter) <= self::$patterMaxLenght) {
    +166:             return TRUE;
    +167:         }
    +168:         return FALSE;
    +169:     }
    +170: 
    +171: }
    +172: 
    +173: ?>
    +174: 
  • database
  • +
  • None +
  • PHP
  • Slim @@ -96,102 +98,142 @@ -
     1: <?php
    - 2: 
    - 3: namespace database;
    - 4: 
    - 5: include_once "../../global.inc.php";
    - 6: include_once PATH_UTILITTY . "/ArrayManager.php";
    - 7: require_once PATH_DATABASE . "/SqlManager.php";
    - 8: 
    - 9: /**
    -10:  * Description of PssSqlManager
    -11:  * 
    -12:  * @author stubbfel
    -13:  * @since 20.06.2013
    -14:  */
    -15: class PssSqlManager extends SQLManager {
    -16: 
    -17:     /**
    -18:      * Fieldname of the placeID
    -19:      * @var string
    -20:      */
    -21:     public static $placeId = "pid";
    -22: 
    -23:     /**
    -24:      * Fieldname of the name of the service
    -25:      * @var string
    -26:      */
    -27:     public static $srvName = "sName";
    -28: 
    -29:     /**
    -30:      * Fieldname of the value of the information
    -31:      * @var string
    -32:      */
    -33:     public static $srvSap = "sap";
    -34: 
    -35:     /**
    -36:      * Fieldname of the value of the information
    -37:      * @var string
    -38:      */
    -39:     public static $srvRequest = "request";
    -40: 
    -41:     /**
    -42:      * String for the select part of the query
    -43:      * @var string
    -44:      */
    -45:     private $selectTerm = "SELECT pid, sName, sap, request FROM pss WHERE ";
    -46: 
    -47:     /**
    -48:      * String for the orderby part of the query
    -49:      * @var string
    -50:      */
    -51:     private $orderByTerm = " ORDER BY pid, sName";
    -52: 
    -53:     /**
    -54:      * String for the pid part of the query
    -55:      * @var string
    -56:      */
    -57:     private $pidTerm = "pid = ";
    -58: 
    -59:     /**
    -60:      * Default-Constructor
    -61:      */
    -62:     public function __construct() {
    -63:         parent::__construct();
    -64:     }
    -65: 
    -66:     /**
    -67:      * Default-DeConstructor
    -68:      */
    -69:     public function __destruct() {
    -70:         parent::__destruct();
    -71:     }
    -72: 
    -73:     /**
    -74:      * Methods send an query for the pis-service
    -75:      * @param array $queryArgs
    -76:      * @return array [num][assoc]
    -77:      */
    -78:     public function sendPssQuery($queryArgs) {
    -79: 
    -80:         // build query string
    -81:         $query = $this->selectTerm;
    -82: 
    -83:         if (\utiliy\ArrayManager::validIntList($queryArgs)) {
    -84:             $query .= \utiliy\ArrayManager::toSqlWhereString($queryArgs,  $this->orTerm, $this->pidTerm) . $this->orderByTerm;
    -85:         } else {
    -86:             return null;
    -87:         };
    -88: 
    -89:         // send query
    -90:         return $this->query($query);
    -91:     }
    -92: 
    -93: }
    -94: 
    -95: ?>
    -96: 
    +
      1: <?php
    +  2: 
    +  3: namespace database;
    +  4: 
    +  5: include_once "../../global.inc.php";
    +  6: include_once PATH_UTILITTY . "/ArrayManager.php";
    +  7: require_once PATH_DATABASE . "/SqlManager.php";
    +  8: 
    +  9: /**
    + 10:  * Description of PssSqlManager
    + 11:  * 
    + 12:  * @author stubbfel
    + 13:  * @since 20.06.2013
    + 14:  */
    + 15: class PssSqlManager extends SQLManager {
    + 16: 
    + 17:     /**
    + 18:      * Fieldname of the placeID
    + 19:      * @var string
    + 20:      */
    + 21:     public static $placeId = "pid";
    + 22: 
    + 23:     /**
    + 24:      * Fieldname of the name of the service
    + 25:      * @var string
    + 26:      */
    + 27:     public static $srvName = "sName";
    + 28: 
    + 29:     /**
    + 30:      * Fieldname of the value of the information
    + 31:      * @var string
    + 32:      */
    + 33:     public static $srvSap = "sap";
    + 34: 
    + 35:     /**
    + 36:      * Fieldname of the value of the information
    + 37:      * @var string
    + 38:      */
    + 39:     public static $srvRequest = "request";
    + 40: 
    + 41:     /**
    + 42:      * Fieldname of the parendId
    + 43:      * @var string
    + 44:      */
    + 45:     public static $parentId = "parent";
    + 46: 
    + 47:     /**
    + 48:      * Fieldname of the refpoint
    + 49:      * @var string
    + 50:      */
    + 51:     public static $refpoint = "refpoint";
    + 52: 
    + 53:     /**
    + 54:      * String for the select part of the query
    + 55:      * @var string
    + 56:      */
    + 57:     private static $selectTerm = "SELECT pid, parent, refpoint, sName, sap, request FROM pss WHERE ";
    + 58: 
    + 59:     /**
    + 60:      * String for the select all part of the query
    + 61:      * @var string
    + 62:      */
    + 63:     private static $selectAllTerm = "SELECT pid, parent, refpoint, sName, sap, request FROM pss ";
    + 64: 
    + 65:     /**
    + 66:      * String for the orderby part of the query
    + 67:      * @var string
    + 68:      */
    + 69:     private static $orderByTerm = " ORDER BY pid, sName";
    + 70: 
    + 71:     /**
    + 72:      * String for the pid part of the query
    + 73:      * @var string
    + 74:      */
    + 75:     private static $pidTerm = "pid = ";
    + 76: 
    + 77:     /**
    + 78:      * String for the iName part of the query
    + 79:      * @var string
    + 80:      */
    + 81:     private static $sNameTerm = "sName = ";
    + 82: 
    + 83:     /**
    + 84:      * Default-Constructor
    + 85:      */
    + 86:     public function __construct() {
    + 87:         parent::__construct();
    + 88:     }
    + 89: 
    + 90:     /**
    + 91:      * Default-DeConstructor
    + 92:      */
    + 93:     public function __destruct() {
    + 94:         parent::__destruct();
    + 95:     }
    + 96: 
    + 97:     /**
    + 98:      * Methods send an query for the pis-service
    + 99:      * @param array $queryArgs
    +100:      * @return array [num][assoc]
    +101:      */
    +102:     public function sendPssQuery($pidList, $sNameList) {
    +103: 
    +104:         // build query string
    +105:         $query = self::$selectTerm;
    +106:         if (\utiliy\ArrayManager::validIntList($pidList)) {
    +107:             $query .= self::$openBracket;
    +108:             $query .= \utiliy\ArrayManager::toSqlWhereString($pidList, self::$orTerm, self::$pidTerm);
    +109:             $query .= self::$closeBracket;
    +110:         } else if ($pidList[0] != "*") {
    +111:             return null;
    +112:         }
    +113: 
    +114:         if (count($sNameList) > 0 && \utiliy\ArrayManager::validAlphaNumList($sNameList)) {
    +115:             if ($query != self::$selectTerm) {
    +116:                 $query .= self::$andTerm;
    +117:             }
    +118:             $query .= self::$openBracket;
    +119:             $query .= \utiliy\ArrayManager::toSqlWhereString($sNameList, self::$orTerm, self::$sNameTerm);
    +120:             $query .= self::$closeBracket;
    +121:         }
    +122: 
    +123:         if ($query == self::$selectTerm) {
    +124:             $query = self::$selectAllTerm;
    +125:         }
    +126: 
    +127:         $query .= self::$orderByTerm;
    +128: 
    +129:         // send query
    +130:         return $this->query($query);
    +131:     }
    +132: 
    +133: }
    +134: 
    +135: ?>
    +136: 
  • database
  • +
  • None +
  • PHP
  • Slim @@ -125,208 +127,213 @@ 27: public static $parentId = "parent"; 28: 29: /** - 30: * String for the select part of the query + 30: * Fieldname of the refpoint 31: * @var string 32: */ - 33: private $selectTerm = "SELECT DISTINCT id, parent FROM sps WHERE "; + 33: public static $refpoint = "refpoint"; 34: 35: /** - 36: * String for the alias part of the query + 36: * String for the select part of the query 37: * @var string 38: */ - 39: private $aliasTerm = "alias = "; + 39: private static $selectTerm = "SELECT DISTINCT id, parent, refpoint FROM sps WHERE "; 40: 41: /** - 42: * String for the did part of the query + 42: * String for the alias part of the query 43: * @var string 44: */ - 45: private $domainTerm = "did = "; + 45: private static $aliasTerm = "alias = "; 46: 47: /** - 48: * String for the dNamet part of the query + 48: * String for the did part of the query 49: * @var string 50: */ - 51: private $domainNameTerm = "dName = "; + 51: private static $domainTerm = "did = "; 52: 53: /** - 54: * first part of intersect-function + 54: * String for the dNamet part of the query 55: * @var string 56: */ - 57: private $interSectTermStart = "Intersects("; + 57: private static $domainNameTerm = "dName = "; 58: 59: /** - 60: * last part of intersect-function + 60: * first part of intersect-function 61: * @var string 62: */ - 63: private $interSectTermEnd = "),plan)"; + 63: private static $interSectTermStart = "Intersects("; 64: 65: /** - 66: * first part of GeomFromText('Polygon-function + 66: * last part of intersect-function 67: * @var string 68: */ - 69: private $polyStartStr = "GeomFromText('Polygon(("; + 69: private static $interSectTermEnd = "),plan)"; 70: 71: /** - 72: * last part of GeomFromText('Polygon-function + 72: * first part of GeomFromText('Polygon-function 73: * @var string 74: */ - 75: private $polyEndStr = "))'"; + 75: private static $polyStartStr = "GeomFromText('Polygon(("; 76: 77: /** - 78: * maximium length of the value-string for an aliasname - 79: * @var int + 78: * last part of GeomFromText('Polygon-function + 79: * @var string 80: */ - 81: private $aliasMaxLenght = 32; + 81: private static $polyEndStr = "))'"; 82: 83: /** - 84: * maximium length of the value-string for a domainname + 84: * maximium length of the value-string for an aliasname 85: * @var int 86: */ - 87: private $domainMaxLenght = 32; + 87: private static $aliasMaxLenght = 32; 88: 89: /** - 90: * Default-Constructor - 91: */ - 92: public function __construct() { - 93: parent::__construct(); - 94: } - 95: - 96: /** - 97: * Default-DEConstructor - 98: */ - 99: public function __destruct() { -100: parent::__destruct(); -101: } -102: -103: /** -104: * Methods send an query for the sps-service depends of alias -105: * @param array $queryArgs -106: * @return array [num][assoc] -107: */ -108: public function sendSpsAliasQuery($queryArgs) { -109: -110: // check arguments of the query -111: if (array_key_exists(\api\SpsApi::$keyAlias, $queryArgs)) { -112: $alias = $queryArgs[\api\SpsApi::$keyAlias]; -113: } else { -114: return null; -115: } -116: -117: $domain = null; -118: if (array_key_exists(\api\SpsApi::$keyDomain, $queryArgs)) { -119: $domain = $queryArgs[\api\SpsApi::$keyDomain]; -120: } -121: -122: // build query string -123: $query = $this->selectTerm; -124: if ($this->validAliasString($alias)) { -125: $query .= $this->aliasTerm . $this->quoteTerm . $alias . $this->quoteTerm . $this->addDomainTerm($domain); -126: } else { -127: return null; -128: } -129: -130: // send query -131: return $this->query($query); -132: } -133: -134: /** -135: * Methods send an query for the sps-service depends of coordinates -136: * @param array $queryArgs -137: * @return array [num][assoc] -138: */ -139: public function sendSpsCoordinateQuery($queryArgs) { -140: -141: // check arguments of the query -142: if (array_key_exists(\api\SpsApi::$keyPoly, $queryArgs)) { -143: $poly = $queryArgs[\api\SpsApi::$keyPoly]; -144: } else { -145: return null; -146: } -147: -148: $domain = null; -149: if (array_key_exists(\api\SpsApi::$keyDomain, $queryArgs)) { -150: $domain = $queryArgs[\api\SpsApi::$keyDomain]; -151: } -152: -153: // build query string -154: if ($this->validPolyString($poly)) { -155: $query = $this->selectTerm . $this->interSectTermStart . $poly . $this->interSectTermEnd . $this->addDomainTerm($domain); -156: } else { -157: return null; -158: } -159: -160: // send query -161: return $this->query($query); -162: } -163: -164: /** -165: * Method create the correct domain part depends of $domain. If it is a number => did -166: * otherwise => dName -167: * @param string $domain -168: * @return string -169: */ -170: private function addDomainTerm($domain) { -171: $result = null; -172: if ($domain != null && $this->validDomainString($domain)) { -173: if ($this->isDid($domain)) { -174: $result .= $this->andTerm . $this->domainTerm . $this->quoteTerm . $domain . $this->quoteTerm; -175: } else { -176: $result .= $this->andTerm . $this->domainNameTerm . $this->quoteTerm . $domain . $this->quoteTerm; -177: } -178: } -179: return $result; -180: } -181: -182: /** -183: * Method check if the input value for the alias is valid -184: * @param string $alias -185: * @return boolean -186: */ -187: private function validAliasString($alias) { -188: if (\utiliy\StringManager::validSQLString($alias) && ctype_alnum($alias) && strlen($alias) <= $this->aliasMaxLenght) { -189: return TRUE; -190: } -191: return FALSE; -192: } -193: -194: /** -195: * Method check if the input value for the alias is valid -196: * @param string $domain -197: * @return boolean -198: */ -199: private function validDomainString($domain) { -200: if (\utiliy\StringManager::validSQLString($domain) && ctype_alnum($domain) && strlen($domain) <= $this->domainMaxLenght) { -201: return TRUE; -202: } -203: return FALSE; -204: } -205: -206: /** -207: * Method check if the input value for the polygon is valid -208: * @param string $poly -209: * @return boolean -210: */ -211: private function validPolyString($poly) { -212: if (\utiliy\StringManager::validSQLString($poly) && \utiliy\StringManager::startsWith($poly, $this->polyStartStr) -213: && \utiliy\StringManager::endsWith($poly, $this->polyEndStr)) { -214: return TRUE; -215: } -216: return FALSE; -217: } -218: -219: /** -220: * Method check if the ntring is a did -221: * @param string $string -222: * @return boolean -223: */ -224: private function isDid($string) { -225: return ctype_digit($string); -226: } -227: -228: } -229: -230: ?> -231: + 90: * maximium length of the value-string for a domainname + 91: * @var int + 92: */ + 93: private static $domainMaxLenght = 32; + 94: + 95: /** + 96: * Default-Constructor + 97: */ + 98: public function __construct() { + 99: parent::__construct(); +100: } +101: +102: /** +103: * Default-DEConstructor +104: */ +105: public function __destruct() { +106: parent::__destruct(); +107: } +108: +109: /** +110: * Methods send an query for the sps-service depends of alias +111: * @param array $queryArgs +112: * @return array [num][assoc] +113: */ +114: public function sendSpsAliasQuery($queryArgs) { +115: +116: // check arguments of the query +117: if (array_key_exists(\api\SpsApi::$keyAlias, $queryArgs)) { +118: $alias = $queryArgs[\api\SpsApi::$keyAlias]; +119: } else { +120: return null; +121: } +122: +123: $domain = null; +124: if (array_key_exists(\api\SpsApi::$keyDomain, $queryArgs)) { +125: $domain = $queryArgs[\api\SpsApi::$keyDomain]; +126: } +127: +128: // build query string +129: $query = self::$selectTerm; +130: if ($this->validAliasString($alias)) { +131: $query .= self::$aliasTerm . self::$quoteTerm . $alias . self::$quoteTerm . $this->addDomainTerm($domain); +132: } else { +133: return null; +134: } +135: +136: // send query +137: return $this->query($query); +138: } +139: +140: /** +141: * Methods send an query for the sps-service depends of coordinates +142: * @param array $queryArgs +143: * @return array [num][assoc] +144: */ +145: public function sendSpsCoordinateQuery($queryArgs) { +146: +147: // check arguments of the query +148: if (array_key_exists(\api\SpsApi::$keyPoly, $queryArgs)) { +149: $poly = $queryArgs[\api\SpsApi::$keyPoly]; +150: } else { +151: return null; +152: } +153: +154: $domain = null; +155: if (array_key_exists(\api\SpsApi::$keyDomain, $queryArgs)) { +156: $domain = $queryArgs[\api\SpsApi::$keyDomain]; +157: } +158: +159: // build query string +160: if ($this->validPolyString($poly)) { +161: $query = self::$selectTerm . self::$interSectTermStart . $poly . self::$interSectTermEnd . $this->addDomainTerm($domain); +162: } else { +163: return null; +164: } +165: +166: // send query +167: return $this->query($query); +168: } +169: +170: /** +171: * Method create the correct domain part depends of $domain. If it is a number => did +172: * otherwise => dName +173: * @param string $domain +174: * @return string +175: */ +176: private function addDomainTerm($domain) { +177: $result = null; +178: if ($domain != null && $this->validDomainString($domain)) { +179: if ($this->isDid($domain)) { +180: $result .= self::$andTerm . self::$domainTerm . self::$quoteTerm . $domain . self::$quoteTerm; +181: } else { +182: $result .= self::$andTerm . self::$domainNameTerm . self::$quoteTerm . $domain . self::$quoteTerm; +183: } +184: } +185: return $result; +186: } +187: +188: /** +189: * Method check if the input value for the alias is valid +190: * @param string $alias +191: * @return boolean +192: */ +193: private function validAliasString($alias) { +194: if (\utiliy\StringManager::validSQLString($alias) && ctype_alnum($alias) && strlen($alias) <= self::$aliasMaxLenght) { +195: return TRUE; +196: } +197: return FALSE; +198: } +199: +200: /** +201: * Method check if the input value for the alias is valid +202: * @param string $domain +203: * @return boolean +204: */ +205: private function validDomainString($domain) { +206: if (\utiliy\StringManager::validSQLString($domain) && ctype_alnum($domain) && strlen($domain) <= self::$domainMaxLenght) { +207: return TRUE; +208: } +209: return FALSE; +210: } +211: +212: /** +213: * Method check if the input value for the polygon is valid +214: * @param string $poly +215: * @return boolean +216: */ +217: private function validPolyString($poly) { +218: if (\utiliy\StringManager::validSQLString($poly) && \utiliy\StringManager::startsWith($poly, self::$polyStartStr) && \utiliy\StringManager::endsWith($poly, self::$polyEndStr)) { +219: return TRUE; +220: } +221: return FALSE; +222: } +223: +224: /** +225: * Method check if the ntring is a did +226: * @param string $string +227: * @return boolean +228: */ +229: private function isDid($string) { +230: return ctype_digit($string); +231: } +232: +233: } +234: +235: ?> +236:
  • database
  • +
  • None +
  • PHP
  • Slim @@ -144,100 +146,121 @@ 46: * String for an and-operrator 47: * @var string 48: */ - 49: protected $andTerm = " and "; + 49: protected static $andTerm = " and "; 50: 51: /** 52: * String for an or-operrator 53: * @var string 54: */ - 55: protected $orTerm = " or "; + 55: protected static $orTerm = " or "; 56: 57: /** 58: * String for quotes in a query 59: * @var string 60: */ - 61: protected $quoteTerm = "\""; + 61: protected static $quoteTerm = "\""; 62: 63: /** - 64: * Default-Constructor - 65: */ - 66: public function __construct() { - 67: $this->serverAddress = \config\DBConfig::$sqlServer; - 68: $this->dbName = \config\DBConfig::$sqlDBName; - 69: $this->userName = \config\DBConfig::$sqlDBUser; - 70: $this->userPw = \config\DBConfig::$sqlDBUserPW; - 71: } - 72: - 73: /** - 74: * Default-DEConstructor - 75: */ - 76: public function __destruct() { - 77: - 78: // close connection - 79: $this->closeConnection(); - 80: - 81: // delete connection parameter - 82: unset($this->serverAddress); - 83: unset($this->dbName); - 84: unset($this->userName); - 85: unset($this->userPW); - 86: } - 87: - 88: /** - 89: * Method setup the connection to the Database - 90: */ - 91: public function connect() { - 92: $this->link = mysql_connect($this->serverAddress, $this->userName, $this->userPw); - 93: if (!$this->link) { - 94: exit("No Connection: " . mysql_error()); - 95: } - 96: $selected = mysql_select_db($this->dbName, $this->link); - 97: if (!$selected) { - 98: exit("No DB: " . mysql_error()); - 99: } -100: } -101: -102: /** -103: * Method close the connection -104: */ -105: public function closeConnection() { -106: if ($this->link) { -107: mysql_close($this->link); -108: unset($this->link); -109: $this->link = null; -110: } -111: } -112: -113: /** -114: * Method send a query to the Datebase and return the result -115: * @param string $query -116: * @return result[num][assoc] -117: */ -118: protected function query($query) { -119: -120: // send error -121: $mysqlResult = mysql_query($query, $this->link); -122: if (!$mysqlResult) { -123: exit("Query error: " . mysql_error()); -124: } -125: -126: // fetch result -127: $rowNums = mysql_num_rows($mysqlResult); -128: $result = array(); -129: for ($i = 0; $i < $rowNums; $i++) { -130: $row = mysql_fetch_assoc($mysqlResult); -131: $result[$i] = $row; -132: } -133: -134: // call gc -135: mysql_free_result($mysqlResult); -136: -137: return $result; -138: } -139: } -140: -141: ?> -142: + 64: * String for open Bracket in a query + 65: * @var string + 66: */ + 67: protected static $openBracket = "("; + 68: + 69: /** + 70: * String for close Bracket in a query + 71: * @var string + 72: */ + 73: protected static $closeBracket = ")"; + 74: + 75: /** + 76: * Default-Constructor + 77: */ + 78: public function __construct() { + 79: $this->serverAddress = \config\DBConfig::$sqlServer; + 80: $this->dbName = \config\DBConfig::$sqlDBName; + 81: $this->userName = \config\DBConfig::$sqlDBUser; + 82: $this->userPw = \config\DBConfig::$sqlDBUserPW + 83: + 84: ; + 85: } + 86: + 87: /** + 88: * Default-DEConstructor + 89: */ + 90: public function __destruct() { + 91: + 92: // close connection + 93: $this->closeConnection(); + 94: + 95: // delete connection parameter + 96: unset($this->serverAddress); + 97: unset($this->dbName); + 98: unset($this->userName); + 99: unset($this->userPW +100: +101: ); +102: } +103: +104: /** +105: * Method setup the connection to the Database +106: */ +107: public function connect() { +108: $this->link = mysql_connect($this->serverAddress , $this->userName , $this->userPw); +109: if (!$this->link) { +110: exit("No Connection: " . mysql_error()); +111: } +112: $selected = mysql_select_db($this->dbName , $this->link); +113: if (!$selected) { +114: exit("No DB: " . mysql_error()); +115: } +116: } +117: +118: /** +119: * Method close the connection +120: */ +121: public function closeConnection() { +122: if ( +123: +124: $this->link) { +125: mysql_close($this->link); +126: unset($this->link); +127: $this->link = null; +128: } +129: } +130: +131: /** +132: * Method send a query to the Datebase and return the result +133: * @param string $query +134: +135: +136: * @return result[num][assoc] +137: */ +138: protected function query($query) { +139: +140: // send error +141: $mysqlResult = mysql_query($query, $this->link ); +142: if (!$mysqlResult) { +143: // echo $query; +144: exit("Query error: " . mysql_error()); +145: } +146: +147: // fetch result +148: $rowNums = mysql_num_rows($mysqlResult); +149: $result = array(); +150: for ($i = 0; $i < $rowNums; $i++) { +151: $row = mysql_fetch_assoc($mysqlResult); +152: $result[$i] = $row; +153: } +154: +155: // call gc +156: mysql_free_result($mysqlResult); +157: +158: return $result; +159: } +160: } +161: +162: ?> +163:
  • database
  • +
  • None +
  • PHP
  • Slim @@ -51,10 +53,15 @@

    Classes

    +

    Interfaces

    + @@ -131,7 +138,7 @@ 34: public static function toSqlWhereString($array, $operator = "", $fieldname = "") { 35: $arrayStr = StringManager::$emptyString; 36: foreach ($array as $value) { -37: $arrayStr .= $fieldname . $value . $operator; +37: $arrayStr .= $fieldname . StringManager::$quotes . $value . StringManager::$quotes . $operator; 38: } 39: $result = substr($arrayStr, 0, strlen($arrayStr) - strlen($operator)); 40: return $result; @@ -144,18 +151,32 @@ 47: */ 48: public static function validIntList($list) { 49: foreach ($list as $value) { -50: -51: if (!ctype_digit($value) || PHP_INT_MAX < $value) { -52: return FALSE; -53: } -54: } -55: return TRUE; -56: } -57: -58: } -59: -60: ?> -61: +50: if (!StringManager::validInt($value)) { +51: return FALSE; +52: } +53: } +54: return TRUE; +55: } +56: +57: /** +58: * Method check if all items of the array are only digits and < PHP_INT_MAX +59: * @param array $poly +60: * @return boolean +61: */ +62: public static function validAlphaNumList($list) { +63: foreach ($list as $value) { +64: +65: if (!ctype_alnum($value) || !\utiliy\StringManager::validSQLString($value)) { +66: return FALSE; +67: } +68: } +69: return TRUE; +70: } +71: +72: } +73: +74: ?> +75:
  • database
  • +
  • None +
  • PHP
  • Slim @@ -51,10 +53,15 @@

    Classes

    +

    Interfaces

    + @@ -109,47 +116,65 @@ 12: class StringManager { 13: 14: /** -15: * A Constant vor an emptystring like "" +15: * A Constant for an emptystring like "" 16: * @var string 17: */ 18: public static $emptyString = ""; -19: -20: /** -21: * Method check if a certain string start with a certain substring -22: * @param string $haystack -23: * @param string $needle -24: * @return boolean -25: */ -26: public static function startsWith($haystack, $needle) { -27: return !strncmp($haystack, $needle, strlen($needle)); -28: } -29: -30: /** -31: * Method check if a certain string end with a certain substring -32: * @param string $haystack -33: * @param string $needle -34: * @return boolean -35: */ -36: public static function endsWith($haystack, $needle) { -37: return (substr($haystack, -strlen($needle)) === $needle); -38: } -39: -40: /** -41: * Method if the string is not a empty String (not only spaces and controlls) -42: * @param string $string -43: * @return boolean -44: */ -45: public static function validSQLString($string) { -46: if (!ctype_space($string) && !ctype_cntrl($string)) { -47: return TRUE; -48: } -49: return FALSE; -50: } -51: -52: } -53: -54: ?> -55: +19: +20: /** +21: * A Constant for an quotechars like " +22: * @var string +23: */ +24: public static $quotes = "\""; +25: +26: /** +27: * Method check if a certain string start with a certain substring +28: * @param string $haystack +29: * @param string $needle +30: * @return boolean +31: */ +32: public static function startsWith($haystack, $needle) { +33: return !strncmp($haystack, $needle, strlen($needle)); +34: } +35: +36: /** +37: * Method check if a certain string end with a certain substring +38: * @param string $haystack +39: * @param string $needle +40: * @return boolean +41: */ +42: public static function endsWith($haystack, $needle) { +43: return (substr($haystack, -strlen($needle)) === $needle); +44: } +45: +46: /** +47: * Method if the string is not a empty String (not only spaces and controlls) +48: * @param string $string +49: * @return boolean +50: */ +51: public static function validSQLString($string) { +52: if (!ctype_space($string) && !ctype_cntrl($string)) { +53: return TRUE; +54: } +55: return FALSE; +56: } +57: +58: /** +59: * Method if the string is in integor +60: * @param string $value +61: * @return boolean +62: */ +63: public static function validInt($value) { +64: if (!ctype_digit($value) || PHP_INT_MAX < $value) { +65: return FALSE; +66: } +67: return TRUE; +68: } +69: +70: } +71: +72: ?> +73:
  • database
  • +
  • None +
  • PHP
  • Slim @@ -51,10 +53,15 @@

    Classes

    +

    Interfaces

    + @@ -100,165 +107,189 @@ 3: namespace utiliy; 4: 5: include_once "../../global.inc.php"; - 6: - 7: /** - 8: * The XmlManager provides some xml-methods - 9: * @author stubbfel - 10: * @since 25.06.2013 - 11: */ - 12: class XmlManager { - 13: - 14: /** - 15: * a default xml document - 16: * @var xml-string - 17: */ - 18: private static $defaultXmlDoc = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><root></root>"; - 19: - 20: /** - 21: * Name for the place element - 22: * @var string - 23: */ - 24: private static $placeElementName = "place"; - 25: - 26: /** - 27: * Name for the placeinformation element - 28: * @var string - 29: */ - 30: private static $placeInfoElementName = "placeInformation"; - 31: - 32: /** - 33: * Name for the placeserviceelement - 34: * @var string - 35: */ - 36: private static $placeServiceElementName = "placeService"; - 37: - 38: /** - 39: * Name for the ssap element - 40: * @var string - 41: */ - 42: private static $placeSapElementName = "sap"; - 43: - 44: /** - 45: * Name for the request element - 46: * @var string - 47: */ - 48: private static $placeRequestElementName = "request"; - 49: - 50: /** - 51: * Name for the placeInfoName attribute - 52: * @var string - 53: */ - 54: private static $placeInfoAttrName = "placeInformationName"; - 55: - 56: /** - 57: * Name for the placeServiceName attribute - 58: * @var string - 59: */ - 60: private static $placeServiceAttrName = "placeServiceName"; - 61: - 62: /** - 63: * Name for the placeid attribute - 64: * @var string - 65: */ - 66: private static $placeIdAttrName = "id"; - 67: - 68: /** - 69: * Name for the parent attribute - 70: * @var string - 71: */ - 72: private static $parentIdAttrName = "parentId"; - 73: - 74: /** - 75: * Method convert an array to a response xml for the sps service - 76: * <place id ="4711" parentID=%0815"/> - 77: * - 78: * @param array[num][assoc] $result - 79: * @return xml-string - 80: */ - 81: public static function arrayToSpsXml($result) { - 82: $xml = new \SimpleXMLElement(XmlManager::$defaultXmlDoc); - 83: - 84: foreach ($result as $row) { - 85: $place = $xml->addChild(XmlManager::$placeElementName); - 86: $place->addAttribute(XmlManager::$placeIdAttrName, $row[\database\SpsSqlManager::$placeId]); - 87: $place->addAttribute(XmlManager::$parentIdAttrName, $row[\database\SpsSqlManager::$parentId]); - 88: } - 89: return $xml->asXML(); - 90: } - 91: - 92: /** - 93: * Method convert an array to a response xml for the pis service like - 94: * <place id ="4711"> - 95: * <placeInformation placeInformationName = "key">Value</placeinformation> - 96: * </place> - 97: * - 98: * @param array[num][assoc] $result - 99: * @return xml-string -100: */ -101: public static function arrayToPisXml($result) { -102: $xml = new \SimpleXMLElement(XmlManager::$defaultXmlDoc); -103: $actPlace = 0; -104: -105: foreach ($result as $row) { -106: -107: // fetch the place id of the row -108: $placeId = $row[\database\PisSqlManager::$placeId]; -109: -110: // if the id is new -> add new place element -111: if ($actPlace != $placeId) { -112: $actPlace = $placeId; -113: $place = $xml->addChild(XmlManager::$placeElementName); -114: $place->addAttribute(XmlManager::$placeIdAttrName, $placeId); -115: } -116: -117: // add placeinformation elment -118: $placeInfo = $place->addChild(XmlManager::$placeInfoElementName, utf8_encode($row[\database\PisSqlManager::$infValue])); -119: $placeInfo->addAttribute(XmlManager::$placeInfoAttrName, $row[\database\PisSqlManager::$infName]); -120: } -121: return $xml->asXML(); -122: } -123: -124: /** -125: * Method convert an array to a response xml for the pss service -126: * <place id ="4711"> -127: * <placeService placeServiceName = "key"> -128: * <sap>sapValue</sap> -129: * <request>reqVaule</request> -130: * </placeService> -131: * </place> -132: * -133: * @param array[num][assoc] $result -134: * @return xml-string -135: */ -136: public static function arrayToPssXml($result) { -137: $xml = new \SimpleXMLElement(XmlManager::$defaultXmlDoc); -138: $actPlace = 0; -139: -140: foreach ($result as $row) { -141: -142: // fetch the place id of the row -143: $placeId = $row[\database\PssSqlManager::$placeId]; -144: -145: // if the id is new -> add new place element -146: if ($actPlace != $placeId) { -147: $actPlace = $placeId; -148: $place = $xml->addChild(XmlManager::$placeElementName); -149: $place->addAttribute(XmlManager::$placeIdAttrName, $placeId); -150: } + 6: require_once PATH_UTILITTY . "/SerialManager.php"; + 7: + 8: /** + 9: * The XmlManager provides some xml-methods + 10: * @author stubbfel + 11: * @since 25.06.2013 + 12: */ + 13: class XmlManager implements SerialManager { + 14: + 15: /** + 16: * a default xml document + 17: * @var xml-string + 18: */ + 19: private static $defaultXmlDoc = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><root></root>"; + 20: + 21: /** + 22: * Name for the place element + 23: * @var string + 24: */ + 25: private static $placeElementName = "place"; + 26: + 27: /** + 28: * Name for the placeinformation element + 29: * @var string + 30: */ + 31: private static $placeInfoElementName = "placeInformation"; + 32: + 33: /** + 34: * Name for the placeserviceelement + 35: * @var string + 36: */ + 37: private static $placeServiceElementName = "placeService"; + 38: + 39: /** + 40: * Name for the ssap element + 41: * @var string + 42: */ + 43: private static $placeSapElementName = "sap"; + 44: + 45: /** + 46: * Name for the request element + 47: * @var string + 48: */ + 49: private static $placeRequestElementName = "request"; + 50: + 51: /** + 52: * Name for the placeInfoName attribute + 53: * @var string + 54: */ + 55: private static $placeInfoAttrName = "placeInformationName"; + 56: + 57: /** + 58: * Name for the placeServiceName attribute + 59: * @var string + 60: */ + 61: private static $placeServiceAttrName = "placeServiceName"; + 62: + 63: /** + 64: * Name for the placeid attribute + 65: * @var string + 66: */ + 67: private static $placeIdAttrName = "id"; + 68: + 69: /** + 70: * Name for the parent attribute + 71: * @var string + 72: */ + 73: private static $parentIdAttrName = "parentId"; + 74: + 75: /** + 76: * Name for the refpoint attribute + 77: * @var string + 78: */ + 79: private static $refpointAttrName = "refpoint"; + 80: + 81: /** + 82: * Method convert an array to a response xml for the sps service + 83: * <place id ="4711" parentID=%0815"/> + 84: * + 85: * @param array[num][assoc] $result + 86: * @return xml-string + 87: */ + 88: public static function arrayToSpsXml($result) { + 89: $xml = new \SimpleXMLElement(self::$defaultXmlDoc); + 90: + 91: foreach ($result as $row) { + 92: $place = $xml->addChild(self::$placeElementName); + 93: $place->addAttribute(self::$placeIdAttrName, $row[\database\SpsSqlManager::$placeId]); + 94: $place->addAttribute(self::$parentIdAttrName, $row[\database\SpsSqlManager::$parentId]); + 95: $place->addAttribute(self::$refpointAttrName, $row[\database\SpsSqlManager::$refpoint]); + 96: } + 97: return $xml->asXML(); + 98: } + 99: +100: /** +101: * Method convert an array to a response xml for the pis service like +102: * <place id ="4711"> +103: * <placeInformation placeInformationName = "key">Value</placeinformation> +104: * </place> +105: * +106: * @param array[num][assoc] $result +107: * @return xml-string +108: */ +109: public static function arrayToPisXml($result) { +110: $xml = new \SimpleXMLElement(self::$defaultXmlDoc); +111: $actPlace = 0; +112: +113: foreach ($result as $row) { +114: +115: // fetch the place id of the row +116: $placeId = $row[\database\PisSqlManager::$placeId]; +117: +118: // if the id is new -> add new place element +119: if ($actPlace != $placeId) { +120: $actPlace = $placeId; +121: $place = $xml->addChild(self::$placeElementName); +122: $place->addAttribute(self::$placeIdAttrName, $placeId); +123: $place->addAttribute(self::$parentIdAttrName, $row[\database\PisSqlManager::$parentId]); +124: $place->addAttribute(self::$refpointAttrName, $row[\database\PisSqlManager::$refpoint]); +125: } +126: +127: // add placeinformation elment +128: $placeInfo = $place->addChild(self::$placeInfoElementName, utf8_encode($row[\database\PisSqlManager::$infValue])); +129: $placeInfo->addAttribute(self::$placeInfoAttrName, $row[\database\PisSqlManager::$infName]); +130: } +131: return $xml->asXML(); +132: } +133: +134: /** +135: * Method convert an array to a response xml for the pss service +136: * <place id ="4711"> +137: * <placeService placeServiceName = "key"> +138: * <sap>sapValue</sap> +139: * <request>reqVaule</request> +140: * </placeService> +141: * </place> +142: * +143: * @param array[num][assoc] $result +144: * @return xml-string +145: */ +146: public static function arrayToPssXml($result) { +147: $xml = new \SimpleXMLElement(self::$defaultXmlDoc); +148: $actPlace = 0; +149: +150: foreach ($result as $row) { 151: -152: // add placeservice elment -153: $placeSrv = $place->addChild(XmlManager::$placeServiceElementName); -154: $placeSrv->addAttribute(XmlManager::$placeServiceAttrName, $row[\database\PssSqlManager::$srvName]); -155: $placeSrv->addChild(XmlManager::$placeSapElementName, $row[\database\PssSqlManager::$srvSap]); -156: $placeSrv->addChild(XmlManager::$placeRequestElementName, $row[\database\PssSqlManager::$srvRequest]); -157: } -158: return $xml->asXML(); -159: } -160: -161: } -162: -163: ?> -164: +152: // fetch the place id of the row +153: $placeId = $row[\database\PssSqlManager::$placeId]; +154: +155: // if the id is new -> add new place element +156: if ($actPlace != $placeId) { +157: $actPlace = $placeId; +158: $place = $xml->addChild(self::$placeElementName); +159: $place->addAttribute(self::$placeIdAttrName, $placeId); +160: $place->addAttribute(self::$parentIdAttrName, $row[\database\PssSqlManager::$parentId]); +161: $place->addAttribute(self::$refpointAttrName, $row[\database\PssSqlManager::$refpoint]); +162: } +163: +164: // add placeservice elment +165: $placeSrv = $place->addChild(self::$placeServiceElementName); +166: $placeSrv->addAttribute(self::$placeServiceAttrName, $row[\database\PssSqlManager::$srvName]); +167: $placeSrv->addChild(self::$placeSapElementName, $row[\database\PssSqlManager::$srvSap]); +168: $placeSrv->addChild(self::$placeRequestElementName, $row[\database\PssSqlManager::$srvRequest]); +169: } +170: return $xml->asXML(); +171: } +172: +173: public function arrayToSps($result) { +174: return self::arrayToSpsXml($result); +175: } +176: +177: public function arrayToPis($result) { +178: return self::arrayToPisXml($result); +179: } +180: +181: public function arrayToPss($result) { +182: return self::arrayToPssXml($result); +183: } +184: +185: } +186: +187: ?> +188:
  • database
  • +
  • None +
  • PHP
  • Slim @@ -78,6 +80,7 @@
  • Slim\Slim
  • Slim\View
  • utiliy\ArrayManager
  • +
  • utiliy\JsonManager
  • utiliy\StringManager
  • utiliy\XmlManager
  • @@ -91,6 +94,7 @@
  • SeekableIterator
  • Serializable
  • Traversable
  • +
  • utiliy\SerialManager
  • @@ -106,6 +110,13 @@ +

    Functions

    + @@ -385,6 +396,15 @@
  • utiliy\ArrayManager +
    + +
  • + +
  • utiliy\JsonManager + implements + utiliy\SerialManager + +
  • @@ -397,6 +417,8 @@
  • utiliy\XmlManager + implements + utiliy\SerialManager
    @@ -460,7 +482,14 @@
  • -
  • Traversable +
  • Traversable + + +
    + +
  • + +
  • utiliy\SerialManager