46 Commits

Author SHA1 Message Date
stubbfel
725f0c437d Merge branch 'hotfix/#105' 2013-07-11 12:53:49 +02:00
stubbfel
78b0ce05cc finish #105 2013-07-11 12:53:40 +02:00
stubbfel
08de501894 Merge branch 'release/udb' 2013-07-10 13:59:38 +02:00
stubbfel
9265ebb2e0 update db 2013-07-10 13:59:09 +02:00
stubbfel
3d2dffc334 Merge branch 'release/r#53#102#70#69' 2013-07-10 13:51:07 +02:00
stubbfel
d00187bdc2 finish #53 2013-07-10 13:50:09 +02:00
stubbfel
a9d5edde37 finish #102 2013-07-10 13:24:07 +02:00
stubbfel
2d9523c80e finish #70 2013-07-10 12:48:18 +02:00
stubbfel
fe6e6eaaf4 finish #69 2013-07-10 11:34:07 +02:00
stubbfel
5c11441ef5 update db 2013-07-10 10:31:07 +02:00
stubbfel
b8a27cbb43 Merge branch 'release/r#97' 2013-07-09 15:10:42 +02:00
stubbfel
32859bd568 finish #97 2013-07-09 15:10:21 +02:00
stubbfel
8a8c667719 Merge branch 'hotfix/#99' 2013-07-09 14:28:53 +02:00
stubbfel
6c250735c7 Merge branch 'hotfix/#99' into devel 2013-07-09 14:28:53 +02:00
stubbfel
53d265d28c change range to 0.001 2013-07-09 14:28:42 +02:00
stubbfel
b4b8cc5a79 Merge branch 'release/r#98' 2013-07-09 14:00:55 +02:00
stubbfel
416012c3e6 Merge branch 'feature/#98' into devel 2013-07-09 13:58:56 +02:00
stubbfel
7b7fc87f00 inserts map in db 2013-07-09 13:58:46 +02:00
stubbfel
54c3ae2be2 aadd maps 2013-07-09 13:27:01 +02:00
stubbfel
bfcc61e364 add maps 2013-07-09 13:26:44 +02:00
stubbfel
068b48c334 Merge branch 'release/r#66' 2013-07-01 18:55:45 +02:00
stubbfel
7047266b7d Merge branch 'feature/#66' into devel 2013-07-01 18:55:20 +02:00
stubbfel
7851ee7e3b finish #66 2013-07-01 18:54:59 +02:00
stubbfel
aa03fdcd1b add seiralmanager #66 2013-07-01 17:47:45 +02:00
stubbfel
5f9610d347 add new exampl inserts 2013-07-01 16:42:11 +02:00
stubbfel
5d82b9d6fe Merge branch 'release/r#63' 2013-07-01 16:38:08 +02:00
stubbfel
802b561187 Merge branch 'feature/#63' into devel 2013-07-01 16:37:42 +02:00
stubbfel
fef8c76392 finish #63 2013-07-01 16:37:32 +02:00
stubbfel
fb67a164e7 add loudcvs.php 2013-07-01 16:36:09 +02:00
stubbfel
4b994d453f Merge branch 'release/r#65' 2013-06-27 14:21:22 +02:00
stubbfel
a0738d023e add JsonManager #65 2013-06-27 14:19:35 +02:00
stubbfel
1d413fd851 Merge branch 'release/r' 2013-06-27 11:55:54 +02:00
stubbfel
cd1ae98842 add doku 2013-06-27 11:55:25 +02:00
stubbfel
07245c1e42 add doku 2013-06-27 11:54:59 +02:00
stubbfel
83f9961c86 Merge branch 'release/r#64' 2013-06-27 10:56:32 +02:00
stubbfel
98b83dbfe3 finish #64 2013-06-27 10:55:07 +02:00
stubbfel
c03db748bc allow null array to xmlmanager 2013-06-26 14:16:32 +02:00
stubbfel
ee277b5dfe Merge branch 'release/r#62' 2013-06-26 14:05:25 +02:00
stubbfel
34c0549ac8 add pss #62 2013-06-26 14:00:16 +02:00
stubbfel
a8e6ff9490 Merge branch 'release/r#61' 2013-06-26 12:16:10 +02:00
stubbfel
27604f0c3f Merge branch 'feature/#61' into devel 2013-06-26 12:15:37 +02:00
stubbfel
186657be6a finish $61 2013-06-26 12:14:43 +02:00
stubbfel
1678b94dd5 add sps service 2013-06-26 12:12:10 +02:00
stubbfel
658987ba53 add filestructur for pis 2013-06-25 14:41:01 +02:00
stubbfel
e82d413565 Merge branch 'release/r' 2013-06-25 13:40:18 +02:00
stubbfel
b6dd38d69f update sql 2013-06-25 13:39:32 +02:00
173 changed files with 10018 additions and 477 deletions

1
.gitignore vendored
View File

@@ -1 +1,2 @@
/geoapi/nbproject/private/
/geoapi/insert/campustest.csv

View File

@@ -8,7 +8,7 @@
<title>Page not found | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -39,6 +39,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>
@@ -49,9 +51,13 @@
<h3>Classes</h3>
<ul>
<li><a href="class-api.Api.html">api\Api</a></li>
<li><a href="class-api.PisApi.html">api\PisApi</a></li>
<li><a href="class-api.PssApi.html">api\PssApi</a></li>
<li><a href="class-api.SpsApi.html">api\SpsApi</a></li>
<li><a href="class-ArrayIterator.html">ArrayIterator</a></li>
<li><a href="class-config.DBConfig.html">config\DBConfig</a></li>
<li><a href="class-database.PisSqlManager.html">database\PisSqlManager</a></li>
<li><a href="class-database.PssSqlManager.html">database\PssSqlManager</a></li>
<li><a href="class-database.SpsSqlManager.html">database\SpsSqlManager</a></li>
<li><a href="class-database.SqlManager.html">database\SqlManager</a></li>
<li><a href="class-SimpleXMLElement.html">SimpleXMLElement</a></li>
@@ -72,6 +78,9 @@
<li><a href="class-Slim.Router.html">Slim\Router</a></li>
<li><a href="class-Slim.Slim.html">Slim\Slim</a></li>
<li><a href="class-Slim.View.html">Slim\View</a></li>
<li><a href="class-utiliy.ArrayManager.html">utiliy\ArrayManager</a></li>
<li><a href="class-utiliy.StringManager.html">utiliy\StringManager</a></li>
<li><a href="class-utiliy.XmlManager.html">utiliy\XmlManager</a></li>
</ul>
<h3>Interfaces</h3>

View File

@@ -7,7 +7,7 @@
<title>Interface ArrayAccess | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Class ArrayIterator | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Interface Countable | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Class ErrorException | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Class Exception | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Class InvalidArgumentException | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Interface Iterator | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Interface IteratorAggregate | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Class LogicException | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Class RuntimeException | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Interface SeekableIterator | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Interface Serializable | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Class SimpleXMLElement | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Class Slim\Environment | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Class Slim\Exception\Pass | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Class Slim\Exception\Stop | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Class Slim\Http\Headers | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Class Slim\Http\Request | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Class Slim\Http\Response | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Class Slim\Http\Util | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Class Slim\Log | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Class Slim\LogWriter | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Class Slim\Middleware\ContentTypes | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li class="active"><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Class Slim\Middleware\Flash | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li class="active"><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Class Slim\Middleware\MethodOverride | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li class="active"><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Class Slim\Middleware\PrettyExceptions | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li class="active"><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Class Slim\Middleware\SessionCookie | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li class="active"><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Class Slim\Middleware | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Class Slim\Route | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Class Slim\Router | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Class Slim\Slim | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>
@@ -115,6 +117,8 @@
<div>
<h4>Indirect known subclasses</h4>
<a href="class-api.PisApi.html">api\PisApi</a>,
<a href="class-api.PssApi.html">api\PssApi</a>,
<a href="class-api.SpsApi.html">api\SpsApi</a>
</div>

View File

@@ -7,7 +7,7 @@
<title>Class Slim\View | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Interface Traversable | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Class api\Api | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>
@@ -48,6 +50,8 @@
<h3>Classes</h3>
<ul>
<li class="active"><a href="class-api.Api.html">Api</a></li>
<li><a href="class-api.PisApi.html">PisApi</a></li>
<li><a href="class-api.PssApi.html">PssApi</a></li>
<li><a href="class-api.SpsApi.html">SpsApi</a></li>
</ul>
@@ -118,6 +122,8 @@
<div>
<h4>Direct known subclasses</h4>
<a href="class-api.PisApi.html">api\PisApi</a>,
<a href="class-api.PssApi.html">api\PssApi</a>,
<a href="class-api.SpsApi.html">api\SpsApi</a>
</div>
@@ -136,7 +142,7 @@
stubbfel<br />
<b>Since:</b>
20.06.2013<br />
<b>Located at</b> <a href="source-class-api.Api.html#10-48" title="Go to source code">api/Api.php</a><br />
<b>Located at</b> <a href="source-class-api.Api.html#10-52" title="Go to source code">api/Api.php</a><br />
</div>
@@ -189,7 +195,7 @@
<td class="name"><div>
<a class="anchor" href="#___destruct">#</a>
<code><a href="source-class-api.Api.html#34-39" title="Go to source code">__destruct</a>( )</code>
<code><a href="source-class-api.Api.html#34-43" title="Go to source code">__destruct</a>( )</code>
<div class="description short">
@@ -222,7 +228,7 @@
<td class="name"><div>
<a class="anchor" href="#_connect">#</a>
<code><a href="source-class-api.Api.html#41-46" title="Go to source code">connect</a>( )</code>
<code><a href="source-class-api.Api.html#45-50" title="Go to source code">connect</a>( )</code>
<div class="description short">

430
doc/class-api.PisApi.html Normal file
View File

@@ -0,0 +1,430 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class api\PisApi | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-api.html">api</a>
</li>
<li><a href="namespace-config.html">config</a>
</li>
<li><a href="namespace-database.html">database</a>
</li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
<li><a href="namespace-Slim.html">Slim<span></span></a>
<ul>
<li><a href="namespace-Slim.Exception.html">Exception</a>
</li>
<li><a href="namespace-Slim.Http.html">Http</a>
</li>
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-api.Api.html">Api</a></li>
<li class="active"><a href="class-api.PisApi.html">PisApi</a></li>
<li><a href="class-api.PssApi.html">PssApi</a></li>
<li><a href="class-api.SpsApi.html">SpsApi</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-api.html" title="Summary of api"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="class">
<h1>Class PisApi</h1>
<div class="description">
<p>This class provides some spezial PisAPI methods</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-Slim.Slim.html"><span>Slim\Slim</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<a href="class-api.Api.html"><span>api\Api</span></a>
</dd>
<dd style="padding-left:60px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>api\PisApi</span></b>
</dd>
</dl>
<div class="info">
<b>Namespace:</b> <a href="namespace-api.html">api</a><br />
<b>Author:</b>
stubbfel<br />
<b>Since:</b>
20.06.2013<br />
<b>Located at</b> <a href="source-class-api.PisApi.html#11-58" title="Go to source code">api/PisApi.php</a><br />
</div>
<table class="summary" id="methods">
<caption>Methods summary</caption>
<tr data-order="__construct" id="___construct">
<td class="attributes"><code>
public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#___construct">#</a>
<code><a href="source-class-api.PisApi.html#30-36" title="Go to source code">__construct</a>( )</code>
<div class="description short">
<p>Default-Constructor</p>
</div>
<div class="description detailed hidden">
<p>Default-Constructor</p>
<h4>Overrides</h4>
<div class="list"><code><a href="class-api.Api.html#___construct">api\Api::__construct()</a></code></div>
</div>
</div></td>
</tr>
<tr data-order="__destruct" id="___destruct">
<td class="attributes"><code>
public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#___destruct">#</a>
<code><a href="source-class-api.PisApi.html#38-43" title="Go to source code">__destruct</a>( )</code>
<div class="description short">
<p>Default-DeConstructor</p>
</div>
<div class="description detailed hidden">
<p>Default-DeConstructor</p>
<h4>Overrides</h4>
<div class="list"><code><a href="class-api.Api.html#___destruct">api\Api::__destruct()</a></code></div>
</div>
</div></td>
</tr>
<tr data-order="sendPisQuery" id="_sendPisQuery">
<td class="attributes"><code>
public
query
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_sendPisQuery">#</a>
<code><a href="source-class-api.PisApi.html#45-57" title="Go to source code">sendPisQuery</a>( <span>array <var>$queryArgs</var></span> )</code>
<div class="description short">
<p>Method start a pis-query</p>
</div>
<div class="description detailed hidden">
<p>Method start a pis-query</p>
<h4>Parameters</h4>
<div class="list"><dl>
<dt><var>$queryArgs</var></dt>
<dd><code>array</code><br>$queryArgs</dd>
</dl></div>
<h4>Returns</h4>
<div class="list">
<code>query</code><br>result as xml<br />
</div>
</div>
</div></td>
</tr>
</table>
<table class="summary inherited">
<caption>Methods inherited from <a href="class-api.Api.html#methods">api\Api</a></caption>
<tr>
<td><code>
<a href="class-api.Api.html#_connect">connect()</a>
</code></td>
</tr>
</table>
<table class="summary inherited">
<caption>Methods inherited from <a href="class-Slim.Slim.html#methods">Slim\Slim</a></caption>
<tr>
<td><code>
<a href="class-Slim.Slim.html#_add">add()</a>,
<a href="class-Slim.Slim.html#_applyHook">applyHook()</a>,
<a href="class-Slim.Slim.html#_autoload">autoload()</a>,
<a href="class-Slim.Slim.html#_call">call()</a>,
<a href="class-Slim.Slim.html#_callErrorHandler">callErrorHandler()</a>,
<a href="class-Slim.Slim.html#_cleanBuffer">cleanBuffer()</a>,
<a href="class-Slim.Slim.html#_clearHooks">clearHooks()</a>,
<a href="class-Slim.Slim.html#_config">config()</a>,
<a href="class-Slim.Slim.html#_configureMode">configureMode()</a>,
<a href="class-Slim.Slim.html#_contentType">contentType()</a>,
<a href="class-Slim.Slim.html#_defaultError">defaultError()</a>,
<a href="class-Slim.Slim.html#_defaultNotFound">defaultNotFound()</a>,
<a href="class-Slim.Slim.html#_delete">delete()</a>,
<a href="class-Slim.Slim.html#_deleteCookie">deleteCookie()</a>,
<a href="class-Slim.Slim.html#_environment">environment()</a>,
<a href="class-Slim.Slim.html#_error">error()</a>,
<a href="class-Slim.Slim.html#_etag">etag()</a>,
<a href="class-Slim.Slim.html#_expires">expires()</a>,
<a href="class-Slim.Slim.html#_flash">flash()</a>,
<a href="class-Slim.Slim.html#_flashKeep">flashKeep()</a>,
<a href="class-Slim.Slim.html#_flashNow">flashNow()</a>,
<a href="class-Slim.Slim.html#_generateTemplateMarkup">generateTemplateMarkup()</a>,
<a href="class-Slim.Slim.html#_get">get()</a>,
<a href="class-Slim.Slim.html#_getCookie">getCookie()</a>,
<a href="class-Slim.Slim.html#_getDefaultSettings">getDefaultSettings()</a>,
<a href="class-Slim.Slim.html#_getEncryptedCookie">getEncryptedCookie()</a>,
<a href="class-Slim.Slim.html#_getHooks">getHooks()</a>,
<a href="class-Slim.Slim.html#_getInstance">getInstance()</a>,
<a href="class-Slim.Slim.html#_getLog">getLog()</a>,
<a href="class-Slim.Slim.html#_getMode">getMode()</a>,
<a href="class-Slim.Slim.html#_getName">getName()</a>,
<a href="class-Slim.Slim.html#_halt">halt()</a>,
<a href="class-Slim.Slim.html#_handleErrors">handleErrors()</a>,
<a href="class-Slim.Slim.html#_hook">hook()</a>,
<a href="class-Slim.Slim.html#_lastModified">lastModified()</a>,
<a href="class-Slim.Slim.html#_map">map()</a>,
<a href="class-Slim.Slim.html#_mapRoute">mapRoute()</a>,
<a href="class-Slim.Slim.html#_notFound">notFound()</a>,
<a href="class-Slim.Slim.html#_options">options()</a>,
<a href="class-Slim.Slim.html#_pass">pass()</a>,
<a href="class-Slim.Slim.html#_post">post()</a>,
<a href="class-Slim.Slim.html#_put">put()</a>,
<a href="class-Slim.Slim.html#_redirect">redirect()</a>,
<a href="class-Slim.Slim.html#_registerAutoloader">registerAutoloader()</a>,
<a href="class-Slim.Slim.html#_render">render()</a>,
<a href="class-Slim.Slim.html#_request">request()</a>,
<a href="class-Slim.Slim.html#_response">response()</a>,
<a href="class-Slim.Slim.html#_root">root()</a>,
<a href="class-Slim.Slim.html#_router">router()</a>,
<a href="class-Slim.Slim.html#_run">run()</a>,
<a href="class-Slim.Slim.html#_setCookie">setCookie()</a>,
<a href="class-Slim.Slim.html#_setEncryptedCookie">setEncryptedCookie()</a>,
<a href="class-Slim.Slim.html#_setName">setName()</a>,
<a href="class-Slim.Slim.html#_status">status()</a>,
<a href="class-Slim.Slim.html#_stop">stop()</a>,
<a href="class-Slim.Slim.html#_urlFor">urlFor()</a>,
<a href="class-Slim.Slim.html#_view">view()</a>
</code></td>
</tr>
</table>
<table class="summary inherited">
<caption>Constants inherited from <a href="class-Slim.Slim.html#constants">Slim\Slim</a></caption>
<tr>
<td><code>
<a href="class-Slim.Slim.html#VERSION"><b>VERSION</b></a>
</code></td>
</tr>
</table>
<table class="summary" id="properties">
<caption>Properties summary</caption>
<tr data-order="routeParameterPids" id="$routeParameterPids">
<td class="attributes"><code>
public static
string
</code></td>
<td class="name">
<a href="source-class-api.PisApi.html#18-22" title="Go to source code"><var>$routeParameterPids</var></a>
</td>
<td class="value"><code><span class="php-quote">&quot;/pid/:pid+&quot;</span></code></td>
<td class="description"><div>
<a href="#$routeParameterPids" class="anchor">#</a>
<div class="description short">
<p>Route string for the alias paramter</p>
</div>
<div class="description detailed hidden">
<p>Route string for the alias paramter</p>
</div>
</div></td>
</tr>
</table>
<table class="summary inherited">
<caption>Properties inherited from <a href="class-api.Api.html#properties">api\Api</a></caption>
<tr>
<td><code>
<a href="class-api.Api.html#$sqlManager"><var>$sqlManager</var></a>
</code></td>
</tr>
</table>
<table class="summary inherited">
<caption>Properties inherited from <a href="class-Slim.Slim.html#properties">Slim\Slim</a></caption>
<tr>
<td><code>
<a href="class-Slim.Slim.html#$apps"><var>$apps</var></a>,
<a href="class-Slim.Slim.html#$environment"><var>$environment</var></a>,
<a href="class-Slim.Slim.html#$error"><var>$error</var></a>,
<a href="class-Slim.Slim.html#$hooks"><var>$hooks</var></a>,
<a href="class-Slim.Slim.html#$middleware"><var>$middleware</var></a>,
<a href="class-Slim.Slim.html#$mode"><var>$mode</var></a>,
<a href="class-Slim.Slim.html#$name"><var>$name</var></a>,
<a href="class-Slim.Slim.html#$notFound"><var>$notFound</var></a>,
<a href="class-Slim.Slim.html#$request"><var>$request</var></a>,
<a href="class-Slim.Slim.html#$response"><var>$response</var></a>,
<a href="class-Slim.Slim.html#$router"><var>$router</var></a>,
<a href="class-Slim.Slim.html#$settings"><var>$settings</var></a>,
<a href="class-Slim.Slim.html#$view"><var>$view</var></a>
</code></td>
</tr>
</table>
</div>
<div id="footer">
GeoApi API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

430
doc/class-api.PssApi.html Normal file
View File

@@ -0,0 +1,430 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class api\PssApi | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-api.html">api</a>
</li>
<li><a href="namespace-config.html">config</a>
</li>
<li><a href="namespace-database.html">database</a>
</li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
<li><a href="namespace-Slim.html">Slim<span></span></a>
<ul>
<li><a href="namespace-Slim.Exception.html">Exception</a>
</li>
<li><a href="namespace-Slim.Http.html">Http</a>
</li>
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-api.Api.html">Api</a></li>
<li><a href="class-api.PisApi.html">PisApi</a></li>
<li class="active"><a href="class-api.PssApi.html">PssApi</a></li>
<li><a href="class-api.SpsApi.html">SpsApi</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-api.html" title="Summary of api"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="class">
<h1>Class PssApi</h1>
<div class="description">
<p>This class provides some spezial PssAPI methods</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-Slim.Slim.html"><span>Slim\Slim</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<a href="class-api.Api.html"><span>api\Api</span></a>
</dd>
<dd style="padding-left:60px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>api\PssApi</span></b>
</dd>
</dl>
<div class="info">
<b>Namespace:</b> <a href="namespace-api.html">api</a><br />
<b>Author:</b>
stubbfel<br />
<b>Since:</b>
20.06.2013<br />
<b>Located at</b> <a href="source-class-api.PssApi.html#11-60" title="Go to source code">api/PssApi.php</a><br />
</div>
<table class="summary" id="methods">
<caption>Methods summary</caption>
<tr data-order="__construct" id="___construct">
<td class="attributes"><code>
public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#___construct">#</a>
<code><a href="source-class-api.PssApi.html#30-36" title="Go to source code">__construct</a>( )</code>
<div class="description short">
<p>Default-Constructor</p>
</div>
<div class="description detailed hidden">
<p>Default-Constructor</p>
<h4>Overrides</h4>
<div class="list"><code><a href="class-api.Api.html#___construct">api\Api::__construct()</a></code></div>
</div>
</div></td>
</tr>
<tr data-order="__destruct" id="___destruct">
<td class="attributes"><code>
public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#___destruct">#</a>
<code><a href="source-class-api.PssApi.html#38-43" title="Go to source code">__destruct</a>( )</code>
<div class="description short">
<p>Default-DeConstructor</p>
</div>
<div class="description detailed hidden">
<p>Default-DeConstructor</p>
<h4>Overrides</h4>
<div class="list"><code><a href="class-api.Api.html#___destruct">api\Api::__destruct()</a></code></div>
</div>
</div></td>
</tr>
<tr data-order="sendPssQuery" id="_sendPssQuery">
<td class="attributes"><code>
public
query
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_sendPssQuery">#</a>
<code><a href="source-class-api.PssApi.html#45-58" title="Go to source code">sendPssQuery</a>( <span>array <var>$queryArgs</var></span> )</code>
<div class="description short">
<p>Method start a pis-query</p>
</div>
<div class="description detailed hidden">
<p>Method start a pis-query</p>
<h4>Parameters</h4>
<div class="list"><dl>
<dt><var>$queryArgs</var></dt>
<dd><code>array</code><br>$queryArgs</dd>
</dl></div>
<h4>Returns</h4>
<div class="list">
<code>query</code><br>result as xml<br />
</div>
</div>
</div></td>
</tr>
</table>
<table class="summary inherited">
<caption>Methods inherited from <a href="class-api.Api.html#methods">api\Api</a></caption>
<tr>
<td><code>
<a href="class-api.Api.html#_connect">connect()</a>
</code></td>
</tr>
</table>
<table class="summary inherited">
<caption>Methods inherited from <a href="class-Slim.Slim.html#methods">Slim\Slim</a></caption>
<tr>
<td><code>
<a href="class-Slim.Slim.html#_add">add()</a>,
<a href="class-Slim.Slim.html#_applyHook">applyHook()</a>,
<a href="class-Slim.Slim.html#_autoload">autoload()</a>,
<a href="class-Slim.Slim.html#_call">call()</a>,
<a href="class-Slim.Slim.html#_callErrorHandler">callErrorHandler()</a>,
<a href="class-Slim.Slim.html#_cleanBuffer">cleanBuffer()</a>,
<a href="class-Slim.Slim.html#_clearHooks">clearHooks()</a>,
<a href="class-Slim.Slim.html#_config">config()</a>,
<a href="class-Slim.Slim.html#_configureMode">configureMode()</a>,
<a href="class-Slim.Slim.html#_contentType">contentType()</a>,
<a href="class-Slim.Slim.html#_defaultError">defaultError()</a>,
<a href="class-Slim.Slim.html#_defaultNotFound">defaultNotFound()</a>,
<a href="class-Slim.Slim.html#_delete">delete()</a>,
<a href="class-Slim.Slim.html#_deleteCookie">deleteCookie()</a>,
<a href="class-Slim.Slim.html#_environment">environment()</a>,
<a href="class-Slim.Slim.html#_error">error()</a>,
<a href="class-Slim.Slim.html#_etag">etag()</a>,
<a href="class-Slim.Slim.html#_expires">expires()</a>,
<a href="class-Slim.Slim.html#_flash">flash()</a>,
<a href="class-Slim.Slim.html#_flashKeep">flashKeep()</a>,
<a href="class-Slim.Slim.html#_flashNow">flashNow()</a>,
<a href="class-Slim.Slim.html#_generateTemplateMarkup">generateTemplateMarkup()</a>,
<a href="class-Slim.Slim.html#_get">get()</a>,
<a href="class-Slim.Slim.html#_getCookie">getCookie()</a>,
<a href="class-Slim.Slim.html#_getDefaultSettings">getDefaultSettings()</a>,
<a href="class-Slim.Slim.html#_getEncryptedCookie">getEncryptedCookie()</a>,
<a href="class-Slim.Slim.html#_getHooks">getHooks()</a>,
<a href="class-Slim.Slim.html#_getInstance">getInstance()</a>,
<a href="class-Slim.Slim.html#_getLog">getLog()</a>,
<a href="class-Slim.Slim.html#_getMode">getMode()</a>,
<a href="class-Slim.Slim.html#_getName">getName()</a>,
<a href="class-Slim.Slim.html#_halt">halt()</a>,
<a href="class-Slim.Slim.html#_handleErrors">handleErrors()</a>,
<a href="class-Slim.Slim.html#_hook">hook()</a>,
<a href="class-Slim.Slim.html#_lastModified">lastModified()</a>,
<a href="class-Slim.Slim.html#_map">map()</a>,
<a href="class-Slim.Slim.html#_mapRoute">mapRoute()</a>,
<a href="class-Slim.Slim.html#_notFound">notFound()</a>,
<a href="class-Slim.Slim.html#_options">options()</a>,
<a href="class-Slim.Slim.html#_pass">pass()</a>,
<a href="class-Slim.Slim.html#_post">post()</a>,
<a href="class-Slim.Slim.html#_put">put()</a>,
<a href="class-Slim.Slim.html#_redirect">redirect()</a>,
<a href="class-Slim.Slim.html#_registerAutoloader">registerAutoloader()</a>,
<a href="class-Slim.Slim.html#_render">render()</a>,
<a href="class-Slim.Slim.html#_request">request()</a>,
<a href="class-Slim.Slim.html#_response">response()</a>,
<a href="class-Slim.Slim.html#_root">root()</a>,
<a href="class-Slim.Slim.html#_router">router()</a>,
<a href="class-Slim.Slim.html#_run">run()</a>,
<a href="class-Slim.Slim.html#_setCookie">setCookie()</a>,
<a href="class-Slim.Slim.html#_setEncryptedCookie">setEncryptedCookie()</a>,
<a href="class-Slim.Slim.html#_setName">setName()</a>,
<a href="class-Slim.Slim.html#_status">status()</a>,
<a href="class-Slim.Slim.html#_stop">stop()</a>,
<a href="class-Slim.Slim.html#_urlFor">urlFor()</a>,
<a href="class-Slim.Slim.html#_view">view()</a>
</code></td>
</tr>
</table>
<table class="summary inherited">
<caption>Constants inherited from <a href="class-Slim.Slim.html#constants">Slim\Slim</a></caption>
<tr>
<td><code>
<a href="class-Slim.Slim.html#VERSION"><b>VERSION</b></a>
</code></td>
</tr>
</table>
<table class="summary" id="properties">
<caption>Properties summary</caption>
<tr data-order="routeParameterPids" id="$routeParameterPids">
<td class="attributes"><code>
public static
string
</code></td>
<td class="name">
<a href="source-class-api.PssApi.html#18-22" title="Go to source code"><var>$routeParameterPids</var></a>
</td>
<td class="value"><code><span class="php-quote">&quot;/pid/:pid+&quot;</span></code></td>
<td class="description"><div>
<a href="#$routeParameterPids" class="anchor">#</a>
<div class="description short">
<p>Route string for the alias paramter</p>
</div>
<div class="description detailed hidden">
<p>Route string for the alias paramter</p>
</div>
</div></td>
</tr>
</table>
<table class="summary inherited">
<caption>Properties inherited from <a href="class-api.Api.html#properties">api\Api</a></caption>
<tr>
<td><code>
<a href="class-api.Api.html#$sqlManager"><var>$sqlManager</var></a>
</code></td>
</tr>
</table>
<table class="summary inherited">
<caption>Properties inherited from <a href="class-Slim.Slim.html#properties">Slim\Slim</a></caption>
<tr>
<td><code>
<a href="class-Slim.Slim.html#$apps"><var>$apps</var></a>,
<a href="class-Slim.Slim.html#$environment"><var>$environment</var></a>,
<a href="class-Slim.Slim.html#$error"><var>$error</var></a>,
<a href="class-Slim.Slim.html#$hooks"><var>$hooks</var></a>,
<a href="class-Slim.Slim.html#$middleware"><var>$middleware</var></a>,
<a href="class-Slim.Slim.html#$mode"><var>$mode</var></a>,
<a href="class-Slim.Slim.html#$name"><var>$name</var></a>,
<a href="class-Slim.Slim.html#$notFound"><var>$notFound</var></a>,
<a href="class-Slim.Slim.html#$request"><var>$request</var></a>,
<a href="class-Slim.Slim.html#$response"><var>$response</var></a>,
<a href="class-Slim.Slim.html#$router"><var>$router</var></a>,
<a href="class-Slim.Slim.html#$settings"><var>$settings</var></a>,
<a href="class-Slim.Slim.html#$view"><var>$view</var></a>
</code></td>
</tr>
</table>
</div>
<div id="footer">
GeoApi API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@@ -7,7 +7,7 @@
<title>Class api\SpsApi | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>
@@ -48,6 +50,8 @@
<h3>Classes</h3>
<ul>
<li><a href="class-api.Api.html">Api</a></li>
<li><a href="class-api.PisApi.html">PisApi</a></li>
<li><a href="class-api.PssApi.html">PssApi</a></li>
<li class="active"><a href="class-api.SpsApi.html">SpsApi</a></li>
</ul>
@@ -139,7 +143,7 @@
stubbfel<br />
<b>Since:</b>
20.06.2013<br />
<b>Located at</b> <a href="source-class-api.SpsApi.html#9-40" title="Go to source code">api/SpsApi.php</a><br />
<b>Located at</b> <a href="source-class-api.SpsApi.html#10-211" title="Go to source code">api/SpsApi.php</a><br />
</div>
@@ -157,7 +161,7 @@
<td class="name"><div>
<a class="anchor" href="#___construct">#</a>
<code><a href="source-class-api.SpsApi.html#16-22" title="Go to source code">__construct</a>( )</code>
<code><a href="source-class-api.SpsApi.html#113-119" title="Go to source code">__construct</a>( )</code>
<div class="description short">
@@ -192,7 +196,7 @@
<td class="name"><div>
<a class="anchor" href="#___destruct">#</a>
<code><a href="source-class-api.SpsApi.html#24-29" title="Go to source code">__destruct</a>( )</code>
<code><a href="source-class-api.SpsApi.html#121-126" title="Go to source code">__destruct</a>( )</code>
<div class="description short">
@@ -216,28 +220,28 @@
</div>
</div></td>
</tr>
<tr data-order="sendSpsQuery" id="_sendSpsQuery">
<tr data-order="sendSpsAliasQuery" id="_sendSpsAliasQuery">
<td class="attributes"><code>
public
array[num]
querry
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_sendSpsQuery">#</a>
<code><a href="source-class-api.SpsApi.html#31-38" title="Go to source code">sendSpsQuery</a>( <span>array <var>$queryArgs</var> = <span class="php-keyword1">array</span>()</span> )</code>
<a class="anchor" href="#_sendSpsAliasQuery">#</a>
<code><a href="source-class-api.SpsApi.html#128-136" title="Go to source code">sendSpsAliasQuery</a>( <span>array <var>$queryArgs</var></span> )</code>
<div class="description short">
<p>Method stert a sps-query</p>
<p>Method start a sps-query(alias)</p>
</div>
<div class="description detailed hidden">
<p>Method stert a sps-query</p>
<p>Method start a sps-query(alias)</p>
@@ -249,7 +253,49 @@
<h4>Returns</h4>
<div class="list">
<code>array[num]</code><br>[assoc]<br />
<code>querry</code><br>result as xml<br />
</div>
</div>
</div></td>
</tr>
<tr data-order="sendSpsCoordinateQuery" id="_sendSpsCoordinateQuery">
<td class="attributes"><code>
public
querry
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_sendSpsCoordinateQuery">#</a>
<code><a href="source-class-api.SpsApi.html#138-162" title="Go to source code">sendSpsCoordinateQuery</a>( <span>array <var>$queryArgs</var></span> )</code>
<div class="description short">
<p>Method start a sps-query(Coordinates)</p>
</div>
<div class="description detailed hidden">
<p>Method start a sps-query(Coordinates)</p>
<h4>Parameters</h4>
<div class="list"><dl>
<dt><var>$queryArgs</var></dt>
<dd><code>array</code><br>$queryArgs</dd>
</dl></div>
<h4>Returns</h4>
<div class="list">
<code>querry</code><br>result as xml<br />
</div>
@@ -351,6 +397,252 @@
<table class="summary" id="properties">
<caption>Properties summary</caption>
<tr data-order="routeParameterAlias" id="$routeParameterAlias">
<td class="attributes"><code>
public static
string
</code></td>
<td class="name">
<a href="source-class-api.SpsApi.html#17-21" title="Go to source code"><var>$routeParameterAlias</var></a>
</td>
<td class="value"><code><span class="php-quote">&quot;/alias/:alias&quot;</span></code></td>
<td class="description"><div>
<a href="#$routeParameterAlias" class="anchor">#</a>
<div class="description short">
<p>Route string for the alias paramter</p>
</div>
<div class="description detailed hidden">
<p>Route string for the alias paramter</p>
</div>
</div></td>
</tr>
<tr data-order="routeParameterDomain" id="$routeParameterDomain">
<td class="attributes"><code>
public static
string
</code></td>
<td class="name">
<a href="source-class-api.SpsApi.html#23-27" title="Go to source code"><var>$routeParameterDomain</var></a>
</td>
<td class="value"><code><span class="php-quote">&quot;/domain/:domain&quot;</span></code></td>
<td class="description"><div>
<a href="#$routeParameterDomain" class="anchor">#</a>
<div class="description short">
<p>Route string for the domain paramter</p>
</div>
<div class="description detailed hidden">
<p>Route string for the domain paramter</p>
</div>
</div></td>
</tr>
<tr data-order="routeParameterLongitude" id="$routeParameterLongitude">
<td class="attributes"><code>
public static
string
</code></td>
<td class="name">
<a href="source-class-api.SpsApi.html#29-33" title="Go to source code"><var>$routeParameterLongitude</var></a>
</td>
<td class="value"><code><span class="php-quote">&quot;/longitude/:longitude&quot;</span></code></td>
<td class="description"><div>
<a href="#$routeParameterLongitude" class="anchor">#</a>
<div class="description short">
<p>Route string for the Longitude paramter</p>
</div>
<div class="description detailed hidden">
<p>Route string for the Longitude paramter</p>
</div>
</div></td>
</tr>
<tr data-order="routeParameterLatitude" id="$routeParameterLatitude">
<td class="attributes"><code>
public static
string
</code></td>
<td class="name">
<a href="source-class-api.SpsApi.html#35-39" title="Go to source code"><var>$routeParameterLatitude</var></a>
</td>
<td class="value"><code><span class="php-quote">&quot;/latitude/:latitude&quot;</span></code></td>
<td class="description"><div>
<a href="#$routeParameterLatitude" class="anchor">#</a>
<div class="description short">
<p>Route string for the latitude paramter</p>
</div>
<div class="description detailed hidden">
<p>Route string for the latitude paramter</p>
</div>
</div></td>
</tr>
<tr data-order="keyAlias" id="$keyAlias">
<td class="attributes"><code>
public static
string
</code></td>
<td class="name">
<a href="source-class-api.SpsApi.html#41-45" title="Go to source code"><var>$keyAlias</var></a>
</td>
<td class="value"><code><span class="php-quote">&quot;alias&quot;</span></code></td>
<td class="description"><div>
<a href="#$keyAlias" class="anchor">#</a>
<div class="description short">
<p>Keyword for alias arguments</p>
</div>
<div class="description detailed hidden">
<p>Keyword for alias arguments</p>
</div>
</div></td>
</tr>
<tr data-order="keyDomain" id="$keyDomain">
<td class="attributes"><code>
public static
string
</code></td>
<td class="name">
<a href="source-class-api.SpsApi.html#47-51" title="Go to source code"><var>$keyDomain</var></a>
</td>
<td class="value"><code><span class="php-quote">&quot;domain&quot;</span></code></td>
<td class="description"><div>
<a href="#$keyDomain" class="anchor">#</a>
<div class="description short">
<p>Keyword for domain arguments</p>
</div>
<div class="description detailed hidden">
<p>Keyword for domain arguments</p>
</div>
</div></td>
</tr>
<tr data-order="keyPoly" id="$keyPoly">
<td class="attributes"><code>
public static
string
</code></td>
<td class="name">
<a href="source-class-api.SpsApi.html#53-57" title="Go to source code"><var>$keyPoly</var></a>
</td>
<td class="value"><code><span class="php-quote">&quot;poly&quot;</span></code></td>
<td class="description"><div>
<a href="#$keyPoly" class="anchor">#</a>
<div class="description short">
<p>Keyword for polygon arguments</p>
</div>
<div class="description detailed hidden">
<p>Keyword for polygon arguments</p>
</div>
</div></td>
</tr>
<tr data-order="keyLong" id="$keyLong">
<td class="attributes"><code>
public static
string
</code></td>
<td class="name">
<a href="source-class-api.SpsApi.html#59-63" title="Go to source code"><var>$keyLong</var></a>
</td>
<td class="value"><code><span class="php-quote">&quot;longitude&quot;</span></code></td>
<td class="description"><div>
<a href="#$keyLong" class="anchor">#</a>
<div class="description short">
<p>Keyword for longitude arguments</p>
</div>
<div class="description detailed hidden">
<p>Keyword for longitude arguments</p>
</div>
</div></td>
</tr>
<tr data-order="keyLat" id="$keyLat">
<td class="attributes"><code>
public static
string
</code></td>
<td class="name">
<a href="source-class-api.SpsApi.html#65-69" title="Go to source code"><var>$keyLat</var></a>
</td>
<td class="value"><code><span class="php-quote">&quot;latitude&quot;</span></code></td>
<td class="description"><div>
<a href="#$keyLat" class="anchor">#</a>
<div class="description short">
<p>Keyword for latitude arguments</p>
</div>
<div class="description detailed hidden">
<p>Keyword for latitude arguments</p>
</div>
</div></td>
</tr>
</table>
<table class="summary inherited">
<caption>Properties inherited from <a href="class-api.Api.html#properties">api\Api</a></caption>

View File

@@ -7,7 +7,7 @@
<title>Class config\DBConfig | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>
@@ -113,7 +115,11 @@
<b>Namespace:</b> <a href="namespace-config.html">config</a><br />
<b>Located at</b> <a href="source-class-config.DBConfig.html#5-30" title="Go to source code">config/config.db.php</a><br />
<b>Author:</b>
stubbfel<br />
<b>Since:</b>
20.06.2013<br />
<b>Located at</b> <a href="source-class-config.DBConfig.html#5-37" title="Go to source code">config/config.db.php</a><br />
</div>
@@ -139,7 +145,7 @@
</code></td>
<td class="name">
<a href="source-class-config.DBConfig.html#10-13" title="Go to source code"><var>$sqlServer</var></a>
<a href="source-class-config.DBConfig.html#13-17" title="Go to source code"><var>$sqlServer</var></a>
</td>
<td class="value"><code><span class="php-quote">&quot;localhost&quot;</span></code></td>
<td class="description"><div>
@@ -166,7 +172,7 @@
</code></td>
<td class="name">
<a href="source-class-config.DBConfig.html#15-18" title="Go to source code"><var>$sqlDBName</var></a>
<a href="source-class-config.DBConfig.html#19-23" title="Go to source code"><var>$sqlDBName</var></a>
</td>
<td class="value"><code><span class="php-quote">&quot;geoDB&quot;</span></code></td>
<td class="description"><div>
@@ -193,7 +199,7 @@
</code></td>
<td class="name">
<a href="source-class-config.DBConfig.html#20-23" title="Go to source code"><var>$sqlDBUser</var></a>
<a href="source-class-config.DBConfig.html#25-29" title="Go to source code"><var>$sqlDBUser</var></a>
</td>
<td class="value"><code><span class="php-quote">&quot;geoDB&quot;</span></code></td>
<td class="description"><div>
@@ -220,7 +226,7 @@
</code></td>
<td class="name">
<a href="source-class-config.DBConfig.html#25-28" title="Go to source code"><var>$sqlDBUserPW</var></a>
<a href="source-class-config.DBConfig.html#31-35" title="Go to source code"><var>$sqlDBUserPW</var></a>
</td>
<td class="value"><code><span class="php-quote">&quot;VZrSAYvmcrntQ97b&quot;</span></code></td>
<td class="description"><div>

View File

@@ -0,0 +1,364 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class database\PisSqlManager | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li><a href="namespace-api.html">api</a>
</li>
<li><a href="namespace-config.html">config</a>
</li>
<li class="active"><a href="namespace-database.html">database</a>
</li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
<li><a href="namespace-Slim.html">Slim<span></span></a>
<ul>
<li><a href="namespace-Slim.Exception.html">Exception</a>
</li>
<li><a href="namespace-Slim.Http.html">Http</a>
</li>
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li class="active"><a href="class-database.PisSqlManager.html">PisSqlManager</a></li>
<li><a href="class-database.PssSqlManager.html">PssSqlManager</a></li>
<li><a href="class-database.SpsSqlManager.html">SpsSqlManager</a></li>
<li><a href="class-database.SqlManager.html">SqlManager</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-database.html" title="Summary of database"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="class">
<h1>Class PisSqlManager</h1>
<div class="description">
<p>Description of PisSqlManager</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
database\SQLManager
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>database\PisSqlManager</span></b>
</dd>
</dl>
<div class="info">
<b>Namespace:</b> <a href="namespace-database.html">database</a><br />
<b>Author:</b>
stubbfel<br />
<b>Since:</b>
20.06.2013<br />
<b>Located at</b> <a href="source-class-database.PisSqlManager.html#9-85" title="Go to source code">database/PisSqlManager.php</a><br />
</div>
<table class="summary" id="methods">
<caption>Methods summary</caption>
<tr data-order="__construct" id="___construct">
<td class="attributes"><code>
public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#___construct">#</a>
<code><a href="source-class-database.PisSqlManager.html#53-58" title="Go to source code">__construct</a>( )</code>
<div class="description short">
<p>Default-Constructor</p>
</div>
<div class="description detailed hidden">
<p>Default-Constructor</p>
</div>
</div></td>
</tr>
<tr data-order="__destruct" id="___destruct">
<td class="attributes"><code>
public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#___destruct">#</a>
<code><a href="source-class-database.PisSqlManager.html#60-65" title="Go to source code">__destruct</a>( )</code>
<div class="description short">
<p>Default-DeConstructor</p>
</div>
<div class="description detailed hidden">
<p>Default-DeConstructor</p>
</div>
</div></td>
</tr>
<tr data-order="sendPisQuery" id="_sendPisQuery">
<td class="attributes"><code>
public
array
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_sendPisQuery">#</a>
<code><a href="source-class-database.PisSqlManager.html#67-84" title="Go to source code">sendPisQuery</a>( <span>array <var>$queryArgs</var></span> )</code>
<div class="description short">
<p>Methods send an query for the pis-service</p>
</div>
<div class="description detailed hidden">
<p>Methods send an query for the pis-service</p>
<h4>Parameters</h4>
<div class="list"><dl>
<dt><var>$queryArgs</var></dt>
<dd><code>array</code><br>$queryArgs</dd>
</dl></div>
<h4>Returns</h4>
<div class="list">
<code>array</code><br>[num][assoc]<br />
</div>
</div>
</div></td>
</tr>
</table>
<table class="summary" id="properties">
<caption>Properties summary</caption>
<tr data-order="placeId" id="$placeId">
<td class="attributes"><code>
public static
string
</code></td>
<td class="name">
<a href="source-class-database.PisSqlManager.html#17-21" title="Go to source code"><var>$placeId</var></a>
</td>
<td class="value"><code><span class="php-quote">&quot;pid&quot;</span></code></td>
<td class="description"><div>
<a href="#$placeId" class="anchor">#</a>
<div class="description short">
<p>Fieldname of the placeID</p>
</div>
<div class="description detailed hidden">
<p>Fieldname of the placeID</p>
</div>
</div></td>
</tr>
<tr data-order="infName" id="$infName">
<td class="attributes"><code>
public static
string
</code></td>
<td class="name">
<a href="source-class-database.PisSqlManager.html#23-27" title="Go to source code"><var>$infName</var></a>
</td>
<td class="value"><code><span class="php-quote">&quot;iName&quot;</span></code></td>
<td class="description"><div>
<a href="#$infName" class="anchor">#</a>
<div class="description short">
<p>Fieldname of the name of the information</p>
</div>
<div class="description detailed hidden">
<p>Fieldname of the name of the information</p>
</div>
</div></td>
</tr>
<tr data-order="infValue" id="$infValue">
<td class="attributes"><code>
public static
string
</code></td>
<td class="name">
<a href="source-class-database.PisSqlManager.html#29-33" title="Go to source code"><var>$infValue</var></a>
</td>
<td class="value"><code><span class="php-quote">&quot;iValue&quot;</span></code></td>
<td class="description"><div>
<a href="#$infValue" class="anchor">#</a>
<div class="description short">
<p>Fieldname of the value of the information</p>
</div>
<div class="description detailed hidden">
<p>Fieldname of the value of the information</p>
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
GeoApi API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,391 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class database\PssSqlManager | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li><a href="namespace-api.html">api</a>
</li>
<li><a href="namespace-config.html">config</a>
</li>
<li class="active"><a href="namespace-database.html">database</a>
</li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
<li><a href="namespace-Slim.html">Slim<span></span></a>
<ul>
<li><a href="namespace-Slim.Exception.html">Exception</a>
</li>
<li><a href="namespace-Slim.Http.html">Http</a>
</li>
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-database.PisSqlManager.html">PisSqlManager</a></li>
<li class="active"><a href="class-database.PssSqlManager.html">PssSqlManager</a></li>
<li><a href="class-database.SpsSqlManager.html">SpsSqlManager</a></li>
<li><a href="class-database.SqlManager.html">SqlManager</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-database.html" title="Summary of database"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="class">
<h1>Class PssSqlManager</h1>
<div class="description">
<p>Description of PssSqlManager</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
database\SQLManager
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>database\PssSqlManager</span></b>
</dd>
</dl>
<div class="info">
<b>Namespace:</b> <a href="namespace-database.html">database</a><br />
<b>Author:</b>
stubbfel<br />
<b>Since:</b>
20.06.2013<br />
<b>Located at</b> <a href="source-class-database.PssSqlManager.html#9-93" title="Go to source code">database/PssSqlManager.php</a><br />
</div>
<table class="summary" id="methods">
<caption>Methods summary</caption>
<tr data-order="__construct" id="___construct">
<td class="attributes"><code>
public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#___construct">#</a>
<code><a href="source-class-database.PssSqlManager.html#59-64" title="Go to source code">__construct</a>( )</code>
<div class="description short">
<p>Default-Constructor</p>
</div>
<div class="description detailed hidden">
<p>Default-Constructor</p>
</div>
</div></td>
</tr>
<tr data-order="__destruct" id="___destruct">
<td class="attributes"><code>
public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#___destruct">#</a>
<code><a href="source-class-database.PssSqlManager.html#66-71" title="Go to source code">__destruct</a>( )</code>
<div class="description short">
<p>Default-DeConstructor</p>
</div>
<div class="description detailed hidden">
<p>Default-DeConstructor</p>
</div>
</div></td>
</tr>
<tr data-order="sendPssQuery" id="_sendPssQuery">
<td class="attributes"><code>
public
array
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_sendPssQuery">#</a>
<code><a href="source-class-database.PssSqlManager.html#73-91" title="Go to source code">sendPssQuery</a>( <span>array <var>$queryArgs</var></span> )</code>
<div class="description short">
<p>Methods send an query for the pis-service</p>
</div>
<div class="description detailed hidden">
<p>Methods send an query for the pis-service</p>
<h4>Parameters</h4>
<div class="list"><dl>
<dt><var>$queryArgs</var></dt>
<dd><code>array</code><br>$queryArgs</dd>
</dl></div>
<h4>Returns</h4>
<div class="list">
<code>array</code><br>[num][assoc]<br />
</div>
</div>
</div></td>
</tr>
</table>
<table class="summary" id="properties">
<caption>Properties summary</caption>
<tr data-order="placeId" id="$placeId">
<td class="attributes"><code>
public static
string
</code></td>
<td class="name">
<a href="source-class-database.PssSqlManager.html#17-21" title="Go to source code"><var>$placeId</var></a>
</td>
<td class="value"><code><span class="php-quote">&quot;pid&quot;</span></code></td>
<td class="description"><div>
<a href="#$placeId" class="anchor">#</a>
<div class="description short">
<p>Fieldname of the placeID</p>
</div>
<div class="description detailed hidden">
<p>Fieldname of the placeID</p>
</div>
</div></td>
</tr>
<tr data-order="srvName" id="$srvName">
<td class="attributes"><code>
public static
string
</code></td>
<td class="name">
<a href="source-class-database.PssSqlManager.html#23-27" title="Go to source code"><var>$srvName</var></a>
</td>
<td class="value"><code><span class="php-quote">&quot;sName&quot;</span></code></td>
<td class="description"><div>
<a href="#$srvName" class="anchor">#</a>
<div class="description short">
<p>Fieldname of the name of the service</p>
</div>
<div class="description detailed hidden">
<p>Fieldname of the name of the service</p>
</div>
</div></td>
</tr>
<tr data-order="srvSap" id="$srvSap">
<td class="attributes"><code>
public static
string
</code></td>
<td class="name">
<a href="source-class-database.PssSqlManager.html#29-33" title="Go to source code"><var>$srvSap</var></a>
</td>
<td class="value"><code><span class="php-quote">&quot;sap&quot;</span></code></td>
<td class="description"><div>
<a href="#$srvSap" class="anchor">#</a>
<div class="description short">
<p>Fieldname of the value of the information</p>
</div>
<div class="description detailed hidden">
<p>Fieldname of the value of the information</p>
</div>
</div></td>
</tr>
<tr data-order="srvRequest" id="$srvRequest">
<td class="attributes"><code>
public static
string
</code></td>
<td class="name">
<a href="source-class-database.PssSqlManager.html#35-39" title="Go to source code"><var>$srvRequest</var></a>
</td>
<td class="value"><code><span class="php-quote">&quot;request&quot;</span></code></td>
<td class="description"><div>
<a href="#$srvRequest" class="anchor">#</a>
<div class="description short">
<p>Fieldname of the value of the information</p>
</div>
<div class="description detailed hidden">
<p>Fieldname of the value of the information</p>
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
GeoApi API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@@ -7,7 +7,7 @@
<title>Class database\SpsSqlManager | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>
@@ -47,6 +49,8 @@
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-database.PisSqlManager.html">PisSqlManager</a></li>
<li><a href="class-database.PssSqlManager.html">PssSqlManager</a></li>
<li class="active"><a href="class-database.SpsSqlManager.html">SpsSqlManager</a></li>
<li><a href="class-database.SqlManager.html">SqlManager</a></li>
</ul>
@@ -131,7 +135,7 @@ database\SQLManager
stubbfel<br />
<b>Since:</b>
20.06.2013<br />
<b>Located at</b> <a href="source-class-database.SpsSqlManager.html#9-42" title="Go to source code">database/SpsSqlManager.php</a><br />
<b>Located at</b> <a href="source-class-database.SpsSqlManager.html#9-228" title="Go to source code">database/SpsSqlManager.php</a><br />
</div>
@@ -149,7 +153,7 @@ database\SQLManager
<td class="name"><div>
<a class="anchor" href="#___construct">#</a>
<code><a href="source-class-database.SpsSqlManager.html#17-22" title="Go to source code">__construct</a>( )</code>
<code><a href="source-class-database.SpsSqlManager.html#89-94" title="Go to source code">__construct</a>( )</code>
<div class="description short">
@@ -182,7 +186,7 @@ database\SQLManager
<td class="name"><div>
<a class="anchor" href="#___destruct">#</a>
<code><a href="source-class-database.SpsSqlManager.html#24-29" title="Go to source code">__destruct</a>( )</code>
<code><a href="source-class-database.SpsSqlManager.html#96-101" title="Go to source code">__destruct</a>( )</code>
<div class="description short">
@@ -204,7 +208,7 @@ database\SQLManager
</div>
</div></td>
</tr>
<tr data-order="sendSpsQuery" id="_sendSpsQuery">
<tr data-order="sendSpsAliasQuery" id="_sendSpsAliasQuery">
<td class="attributes"><code>
public
@@ -214,18 +218,60 @@ database\SQLManager
</td>
<td class="name"><div>
<a class="anchor" href="#_sendSpsQuery">#</a>
<code><a href="source-class-database.SpsSqlManager.html#31-40" title="Go to source code">sendSpsQuery</a>( <span>array <var>$queryArgs</var> = <span class="php-keyword1">array</span>()</span> )</code>
<a class="anchor" href="#_sendSpsAliasQuery">#</a>
<code><a href="source-class-database.SpsSqlManager.html#103-132" title="Go to source code">sendSpsAliasQuery</a>( <span>array <var>$queryArgs</var></span> )</code>
<div class="description short">
<p>Methods send an query for the sps-service</p>
<p>Methods send an query for the sps-service depends of alias</p>
</div>
<div class="description detailed hidden">
<p>Methods send an query for the sps-service</p>
<p>Methods send an query for the sps-service depends of alias</p>
<h4>Parameters</h4>
<div class="list"><dl>
<dt><var>$queryArgs</var></dt>
<dd><code>array</code><br>$queryArgs</dd>
</dl></div>
<h4>Returns</h4>
<div class="list">
<code>array</code><br>[num][assoc]<br />
</div>
</div>
</div></td>
</tr>
<tr data-order="sendSpsCoordinateQuery" id="_sendSpsCoordinateQuery">
<td class="attributes"><code>
public
array
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_sendSpsCoordinateQuery">#</a>
<code><a href="source-class-database.SpsSqlManager.html#134-162" title="Go to source code">sendSpsCoordinateQuery</a>( <span>array <var>$queryArgs</var></span> )</code>
<div class="description short">
<p>Methods send an query for the sps-service depends of coordinates</p>
</div>
<div class="description detailed hidden">
<p>Methods send an query for the sps-service depends of coordinates</p>
@@ -259,6 +305,63 @@ database\SQLManager
<table class="summary" id="properties">
<caption>Properties summary</caption>
<tr data-order="placeId" id="$placeId">
<td class="attributes"><code>
public static
string
</code></td>
<td class="name">
<a href="source-class-database.SpsSqlManager.html#17-21" title="Go to source code"><var>$placeId</var></a>
</td>
<td class="value"><code><span class="php-quote">&quot;id&quot;</span></code></td>
<td class="description"><div>
<a href="#$placeId" class="anchor">#</a>
<div class="description short">
<p>Fieldname of the placeID</p>
</div>
<div class="description detailed hidden">
<p>Fieldname of the placeID</p>
</div>
</div></td>
</tr>
<tr data-order="parentId" id="$parentId">
<td class="attributes"><code>
public static
string
</code></td>
<td class="name">
<a href="source-class-database.SpsSqlManager.html#23-27" title="Go to source code"><var>$parentId</var></a>
</td>
<td class="value"><code><span class="php-quote">&quot;parent&quot;</span></code></td>
<td class="description"><div>
<a href="#$parentId" class="anchor">#</a>
<div class="description short">
<p>Fieldname of the parendId</p>
</div>
<div class="description detailed hidden">
<p>Fieldname of the parendId</p>
</div>
</div></td>
</tr>
</table>

View File

@@ -7,7 +7,7 @@
<title>Class database\SqlManager | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>
@@ -47,6 +49,8 @@
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-database.PisSqlManager.html">PisSqlManager</a></li>
<li><a href="class-database.PssSqlManager.html">PssSqlManager</a></li>
<li><a href="class-database.SpsSqlManager.html">SpsSqlManager</a></li>
<li class="active"><a href="class-database.SqlManager.html">SqlManager</a></li>
</ul>
@@ -118,7 +122,7 @@
stubbfel<br />
<b>Since:</b>
20.06.2013<br />
<b>Located at</b> <a href="source-class-database.SqlManager.html#8-111" title="Go to source code">database/SqlManager.php</a><br />
<b>Located at</b> <a href="source-class-database.SqlManager.html#8-139" title="Go to source code">database/SqlManager.php</a><br />
</div>
@@ -136,7 +140,7 @@
<td class="name"><div>
<a class="anchor" href="#___construct">#</a>
<code><a href="source-class-database.SqlManager.html#45-54" title="Go to source code">__construct</a>( )</code>
<code><a href="source-class-database.SqlManager.html#63-71" title="Go to source code">__construct</a>( )</code>
<div class="description short">
@@ -169,7 +173,7 @@
<td class="name"><div>
<a class="anchor" href="#___destruct">#</a>
<code><a href="source-class-database.SqlManager.html#56-65" title="Go to source code">__destruct</a>( )</code>
<code><a href="source-class-database.SqlManager.html#73-86" title="Go to source code">__destruct</a>( )</code>
<div class="description short">
@@ -202,7 +206,7 @@
<td class="name"><div>
<a class="anchor" href="#_connect">#</a>
<code><a href="source-class-database.SqlManager.html#67-79" title="Go to source code">connect</a>( )</code>
<code><a href="source-class-database.SqlManager.html#88-100" title="Go to source code">connect</a>( )</code>
<div class="description short">
@@ -235,7 +239,7 @@
<td class="name"><div>
<a class="anchor" href="#_closeConnection">#</a>
<code><a href="source-class-database.SqlManager.html#81-89" title="Go to source code">closeConnection</a>( )</code>
<code><a href="source-class-database.SqlManager.html#102-111" title="Go to source code">closeConnection</a>( )</code>
<div class="description short">
@@ -268,7 +272,7 @@
<td class="name"><div>
<a class="anchor" href="#_query">#</a>
<code><a href="source-class-database.SqlManager.html#91-109" title="Go to source code">query</a>( <span>string <var>$query</var></span> )</code>
<code><a href="source-class-database.SqlManager.html#113-138" title="Go to source code">query</a>( <span>string <var>$query</var></span> )</code>
<div class="description short">
@@ -312,6 +316,90 @@
<table class="summary" id="properties">
<caption>Properties summary</caption>
<tr data-order="andTerm" id="$andTerm">
<td class="attributes"><code>
protected
string
</code></td>
<td class="name">
<a href="source-class-database.SqlManager.html#45-49" title="Go to source code"><var>$andTerm</var></a>
</td>
<td class="value"><code><span class="php-quote">&quot; and &quot;</span></code></td>
<td class="description"><div>
<a href="#$andTerm" class="anchor">#</a>
<div class="description short">
<p>String for an and-operrator</p>
</div>
<div class="description detailed hidden">
<p>String for an and-operrator</p>
</div>
</div></td>
</tr>
<tr data-order="orTerm" id="$orTerm">
<td class="attributes"><code>
protected
string
</code></td>
<td class="name">
<a href="source-class-database.SqlManager.html#51-55" title="Go to source code"><var>$orTerm</var></a>
</td>
<td class="value"><code><span class="php-quote">&quot; or &quot;</span></code></td>
<td class="description"><div>
<a href="#$orTerm" class="anchor">#</a>
<div class="description short">
<p>String for an or-operrator</p>
</div>
<div class="description detailed hidden">
<p>String for an or-operrator</p>
</div>
</div></td>
</tr>
<tr data-order="quoteTerm" id="$quoteTerm">
<td class="attributes"><code>
protected
string
</code></td>
<td class="name">
<a href="source-class-database.SqlManager.html#57-61" title="Go to source code"><var>$quoteTerm</var></a>
</td>
<td class="value"><code><span class="php-quote">&quot;\&quot;&quot;</span></code></td>
<td class="description"><div>
<a href="#$quoteTerm" class="anchor">#</a>
<div class="description short">
<p>String for quotes in a query</p>
</div>
<div class="description detailed hidden">
<p>String for quotes in a query</p>
</div>
</div></td>
</tr>
</table>

View File

@@ -0,0 +1,292 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class utiliy\ArrayManager | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li><a href="namespace-api.html">api</a>
</li>
<li><a href="namespace-config.html">config</a>
</li>
<li><a href="namespace-database.html">database</a>
</li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
<li><a href="namespace-Slim.html">Slim<span></span></a>
<ul>
<li><a href="namespace-Slim.Exception.html">Exception</a>
</li>
<li><a href="namespace-Slim.Http.html">Http</a>
</li>
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li class="active"><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li class="active"><a href="class-utiliy.ArrayManager.html">ArrayManager</a></li>
<li><a href="class-utiliy.StringManager.html">StringManager</a></li>
<li><a href="class-utiliy.XmlManager.html">XmlManager</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-utiliy.html" title="Summary of utiliy"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="class">
<h1>Class ArrayManager</h1>
<div class="description">
<p>The ArrayManager provides some array-methods</p>
</div>
<div class="info">
<b>Namespace:</b> <a href="namespace-utiliy.html">utiliy</a><br />
<b>Author:</b>
stubbfel<br />
<b>Since:</b>
26.06.2013<br />
<b>Located at</b> <a href="source-class-utiliy.ArrayManager.html#8-58" title="Go to source code">utility/ArrayManager.php</a><br />
</div>
<table class="summary" id="methods">
<caption>Methods summary</caption>
<tr data-order="removeEmptyItmes" id="_removeEmptyItmes">
<td class="attributes"><code>
public static
array
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_removeEmptyItmes">#</a>
<code><a href="source-class-utiliy.ArrayManager.html#15-27" title="Go to source code">removeEmptyItmes</a>( <span>array <var>$array</var></span> )</code>
<div class="description short">
<p>Method remove all empty itmes of an array</p>
</div>
<div class="description detailed hidden">
<p>Method remove all empty itmes of an array</p>
<h4>Parameters</h4>
<div class="list"><dl>
<dt><var>$array</var></dt>
<dd><code>array</code><br>$queryArgs</dd>
</dl></div>
<h4>Returns</h4>
<div class="list">
<code>array</code><br />
</div>
</div>
</div></td>
</tr>
<tr data-order="toSqlWhereString" id="_toSqlWhereString">
<td class="attributes"><code>
public static
string
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_toSqlWhereString">#</a>
<code><a href="source-class-utiliy.ArrayManager.html#29-41" title="Go to source code">toSqlWhereString</a>( <span>array <var>$array</var></span>, <span>mixed <var>$operator</var> = <span class="php-quote">&quot;&quot;</span></span>, <span>mixed <var>$fieldname</var> = <span class="php-quote">&quot;&quot;</span></span> )</code>
<div class="description short">
<p>Method convert an array to a where-string like $fieldname = $array[i]
$operator</p>
</div>
<div class="description detailed hidden">
<p>Method convert an array to a where-string like $fieldname = $array[i]
$operator</p>
<h4>Parameters</h4>
<div class="list"><dl>
<dt><var>$array</var></dt>
<dd><code>array</code><br>$pidList</dd>
<dt><var>$operator</var></dt>
<dd></dd>
<dt><var>$fieldname</var></dt>
<dd></dd>
</dl></div>
<h4>Returns</h4>
<div class="list">
<code>string</code><br />
</div>
</div>
</div></td>
</tr>
<tr data-order="validIntList" id="_validIntList">
<td class="attributes"><code>
public static
boolean
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_validIntList">#</a>
<code><a href="source-class-utiliy.ArrayManager.html#43-56" title="Go to source code">validIntList</a>( <span>array <var>$list</var></span> )</code>
<div class="description short">
<p>Method check if all items of the array are only digits and &lt;
PHP_INT_MAX</p>
</div>
<div class="description detailed hidden">
<p>Method check if all items of the array are only digits and &lt;
PHP_INT_MAX</p>
<h4>Parameters</h4>
<div class="list"><dl>
<dt><var>$list</var></dt>
<dd><code>array</code><br>$poly</dd>
</dl></div>
<h4>Returns</h4>
<div class="list">
<code>boolean</code><br />
</div>
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
GeoApi API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,320 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class utiliy\StringManager | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li><a href="namespace-api.html">api</a>
</li>
<li><a href="namespace-config.html">config</a>
</li>
<li><a href="namespace-database.html">database</a>
</li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
<li><a href="namespace-Slim.html">Slim<span></span></a>
<ul>
<li><a href="namespace-Slim.Exception.html">Exception</a>
</li>
<li><a href="namespace-Slim.Http.html">Http</a>
</li>
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li class="active"><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-utiliy.ArrayManager.html">ArrayManager</a></li>
<li class="active"><a href="class-utiliy.StringManager.html">StringManager</a></li>
<li><a href="class-utiliy.XmlManager.html">XmlManager</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-utiliy.html" title="Summary of utiliy"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="class">
<h1>Class StringManager</h1>
<div class="description">
<p>The StringManager provides some string-methods</p>
</div>
<div class="info">
<b>Namespace:</b> <a href="namespace-utiliy.html">utiliy</a><br />
<b>Author:</b>
stubbfel<br />
<b>Since:</b>
25.06.2013<br />
<b>Located at</b> <a href="source-class-utiliy.StringManager.html#7-52" title="Go to source code">utility/StringManager.php</a><br />
</div>
<table class="summary" id="methods">
<caption>Methods summary</caption>
<tr data-order="startsWith" id="_startsWith">
<td class="attributes"><code>
public static
boolean
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_startsWith">#</a>
<code><a href="source-class-utiliy.StringManager.html#20-28" title="Go to source code">startsWith</a>( <span>string <var>$haystack</var></span>, <span>string <var>$needle</var></span> )</code>
<div class="description short">
<p>Method check if a certain string start with a certain substring</p>
</div>
<div class="description detailed hidden">
<p>Method check if a certain string start with a certain substring</p>
<h4>Parameters</h4>
<div class="list"><dl>
<dt><var>$haystack</var></dt>
<dd><code>string</code><br>$haystack</dd>
<dt><var>$needle</var></dt>
<dd><code>string</code><br>$needle</dd>
</dl></div>
<h4>Returns</h4>
<div class="list">
<code>boolean</code><br />
</div>
</div>
</div></td>
</tr>
<tr data-order="endsWith" id="_endsWith">
<td class="attributes"><code>
public static
boolean
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_endsWith">#</a>
<code><a href="source-class-utiliy.StringManager.html#30-38" title="Go to source code">endsWith</a>( <span>string <var>$haystack</var></span>, <span>string <var>$needle</var></span> )</code>
<div class="description short">
<p>Method check if a certain string end with a certain substring</p>
</div>
<div class="description detailed hidden">
<p>Method check if a certain string end with a certain substring</p>
<h4>Parameters</h4>
<div class="list"><dl>
<dt><var>$haystack</var></dt>
<dd><code>string</code><br>$haystack</dd>
<dt><var>$needle</var></dt>
<dd><code>string</code><br>$needle</dd>
</dl></div>
<h4>Returns</h4>
<div class="list">
<code>boolean</code><br />
</div>
</div>
</div></td>
</tr>
<tr data-order="validSQLString" id="_validSQLString">
<td class="attributes"><code>
public static
boolean
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_validSQLString">#</a>
<code><a href="source-class-utiliy.StringManager.html#40-50" title="Go to source code">validSQLString</a>( <span>string <var>$string</var></span> )</code>
<div class="description short">
<p>Method if the string is not a empty String (not only spaces and
controlls)</p>
</div>
<div class="description detailed hidden">
<p>Method if the string is not a empty String (not only spaces and
controlls)</p>
<h4>Parameters</h4>
<div class="list"><dl>
<dt><var>$string</var></dt>
<dd><code>string</code><br>$string</dd>
</dl></div>
<h4>Returns</h4>
<div class="list">
<code>boolean</code><br />
</div>
</div>
</div></td>
</tr>
</table>
<table class="summary" id="properties">
<caption>Properties summary</caption>
<tr data-order="emptyString" id="$emptyString">
<td class="attributes"><code>
public static
string
</code></td>
<td class="name">
<a href="source-class-utiliy.StringManager.html#14-18" title="Go to source code"><var>$emptyString</var></a>
</td>
<td class="value"><code><span class="php-quote">&quot;&quot;</span></code></td>
<td class="description"><div>
<a href="#$emptyString" class="anchor">#</a>
<div class="description short">
<p>A Constant vor an emptystring like ""</p>
</div>
<div class="description detailed hidden">
<p>A Constant vor an emptystring like ""</p>
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
GeoApi API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,296 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class utiliy\XmlManager | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li><a href="namespace-api.html">api</a>
</li>
<li><a href="namespace-config.html">config</a>
</li>
<li><a href="namespace-database.html">database</a>
</li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
<li><a href="namespace-Slim.html">Slim<span></span></a>
<ul>
<li><a href="namespace-Slim.Exception.html">Exception</a>
</li>
<li><a href="namespace-Slim.Http.html">Http</a>
</li>
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li class="active"><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-utiliy.ArrayManager.html">ArrayManager</a></li>
<li><a href="class-utiliy.StringManager.html">StringManager</a></li>
<li class="active"><a href="class-utiliy.XmlManager.html">XmlManager</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-utiliy.html" title="Summary of utiliy"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="class">
<h1>Class XmlManager</h1>
<div class="description">
<p>The XmlManager provides some xml-methods</p>
</div>
<div class="info">
<b>Namespace:</b> <a href="namespace-utiliy.html">utiliy</a><br />
<b>Author:</b>
stubbfel<br />
<b>Since:</b>
25.06.2013<br />
<b>Located at</b> <a href="source-class-utiliy.XmlManager.html#7-161" title="Go to source code">utility/XmlManager.php</a><br />
</div>
<table class="summary" id="methods">
<caption>Methods summary</caption>
<tr data-order="arrayToSpsXml" id="_arrayToSpsXml">
<td class="attributes"><code>
public static
xml-string
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_arrayToSpsXml">#</a>
<code><a href="source-class-utiliy.XmlManager.html#74-90" title="Go to source code">arrayToSpsXml</a>( <span>array[num][assoc] <var>$result</var></span> )</code>
<div class="description short">
<p>Method convert an array to a response xml for the sps service &lt;place id
="4711" parentID=%0815"/&gt;</p>
</div>
<div class="description detailed hidden">
<p>Method convert an array to a response xml for the sps service &lt;place id
="4711" parentID=%0815"/&gt;</p>
<h4>Parameters</h4>
<div class="list"><dl>
<dt><var>$result</var></dt>
<dd><code>array[num][assoc]</code><br>$result</dd>
</dl></div>
<h4>Returns</h4>
<div class="list">
<code>xml-string</code><br />
</div>
</div>
</div></td>
</tr>
<tr data-order="arrayToPisXml" id="_arrayToPisXml">
<td class="attributes"><code>
public static
xml-string
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_arrayToPisXml">#</a>
<code><a href="source-class-utiliy.XmlManager.html#92-122" title="Go to source code">arrayToPisXml</a>( <span>array[num][assoc] <var>$result</var></span> )</code>
<div class="description short">
<p>Method convert an array to a response xml for the pis service like &lt;place
id ="4711"&gt; &lt;placeInformation placeInformationName =
"key"&gt;Value&lt;/placeinformation&gt; &lt;/place&gt;</p>
</div>
<div class="description detailed hidden">
<p>Method convert an array to a response xml for the pis service like &lt;place
id ="4711"&gt; &lt;placeInformation placeInformationName =
"key"&gt;Value&lt;/placeinformation&gt; &lt;/place&gt;</p>
<h4>Parameters</h4>
<div class="list"><dl>
<dt><var>$result</var></dt>
<dd><code>array[num][assoc]</code><br>$result</dd>
</dl></div>
<h4>Returns</h4>
<div class="list">
<code>xml-string</code><br />
</div>
</div>
</div></td>
</tr>
<tr data-order="arrayToPssXml" id="_arrayToPssXml">
<td class="attributes"><code>
public static
xml-string
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_arrayToPssXml">#</a>
<code><a href="source-class-utiliy.XmlManager.html#124-159" title="Go to source code">arrayToPssXml</a>( <span>array[num][assoc] <var>$result</var></span> )</code>
<div class="description short">
<p>Method convert an array to a response xml for the pss service &lt;place id
="4711"&gt; &lt;placeService placeServiceName = "key"&gt;
&lt;sap&gt;sapValue&lt;/sap&gt; &lt;request&gt;reqVaule&lt;/request&gt;
&lt;/placeService&gt; &lt;/place&gt;</p>
</div>
<div class="description detailed hidden">
<p>Method convert an array to a response xml for the pss service &lt;place id
="4711"&gt; &lt;placeService placeServiceName = "key"&gt;
&lt;sap&gt;sapValue&lt;/sap&gt; &lt;request&gt;reqVaule&lt;/request&gt;
&lt;/placeService&gt; &lt;/place&gt;</p>
<h4>Parameters</h4>
<div class="list"><dl>
<dt><var>$result</var></dt>
<dd><code>array[num][assoc]</code><br>$result</dd>
</dl></div>
<h4>Returns</h4>
<div class="list">
<code>xml-string</code><br />
</div>
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
GeoApi API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@@ -1,3 +1,3 @@
var ApiGen = ApiGen || {};
ApiGen.elements = [["c","api\\Api"],["c","api\\SpsApi"],["c","ArrayAccess"],["c","ArrayIterator"],["c","config\\DBConfig"],["c","Countable"],["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"]];
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"]];

View File

@@ -37,6 +37,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>
@@ -47,9 +49,13 @@
<h3>Classes</h3>
<ul>
<li><a href="class-api.Api.html">api\Api</a></li>
<li><a href="class-api.PisApi.html">api\PisApi</a></li>
<li><a href="class-api.PssApi.html">api\PssApi</a></li>
<li><a href="class-api.SpsApi.html">api\SpsApi</a></li>
<li><a href="class-ArrayIterator.html">ArrayIterator</a></li>
<li><a href="class-config.DBConfig.html">config\DBConfig</a></li>
<li><a href="class-database.PisSqlManager.html">database\PisSqlManager</a></li>
<li><a href="class-database.PssSqlManager.html">database\PssSqlManager</a></li>
<li><a href="class-database.SpsSqlManager.html">database\SpsSqlManager</a></li>
<li><a href="class-database.SqlManager.html">database\SqlManager</a></li>
<li><a href="class-SimpleXMLElement.html">SimpleXMLElement</a></li>
@@ -70,6 +76,9 @@
<li><a href="class-Slim.Router.html">Slim\Router</a></li>
<li><a href="class-Slim.Slim.html">Slim\Slim</a></li>
<li><a href="class-Slim.View.html">Slim\View</a></li>
<li><a href="class-utiliy.ArrayManager.html">utiliy\ArrayManager</a></li>
<li><a href="class-utiliy.StringManager.html">utiliy\StringManager</a></li>
<li><a href="class-utiliy.XmlManager.html">utiliy\XmlManager</a></li>
</ul>
<h3>Interfaces</h3>
@@ -159,6 +168,9 @@
<tr>
<td class="name"><a href="namespace-Slim.Middleware.html">Slim\Middleware</a></td>
</tr>
<tr>
<td class="name"><a href="namespace-utiliy.html">utiliy</a></td>
</tr>
</table>

View File

@@ -7,7 +7,7 @@
<title>Namespace PHP | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Namespace Slim\Exception | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Namespace Slim\Http | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Namespace Slim\Middleware | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li class="active"><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Namespace Slim | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Namespace api | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>
@@ -48,6 +50,8 @@
<h3>Classes</h3>
<ul>
<li><a href="class-api.Api.html">Api</a></li>
<li><a href="class-api.PisApi.html">PisApi</a></li>
<li><a href="class-api.PssApi.html">PssApi</a></li>
<li><a href="class-api.SpsApi.html">SpsApi</a></li>
</ul>
@@ -101,6 +105,14 @@
<td>This class provides some general API methods
<!-- by Texy2! --></td>
</tr>
<tr>
<td class="name"><a href="class-api.PisApi.html">PisApi</a></td>
<td>This class provides some spezial PisAPI methods</td>
</tr>
<tr>
<td class="name"><a href="class-api.PssApi.html">PssApi</a></td>
<td>This class provides some spezial PssAPI methods</td>
</tr>
<tr>
<td class="name"><a href="class-api.SpsApi.html">SpsApi</a></td>
<td>This class provides some spezial SpsAPI methods</td>

View File

@@ -7,7 +7,7 @@
<title>Namespace config | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -7,7 +7,7 @@
<title>Namespace database | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>
@@ -47,6 +49,8 @@
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-database.PisSqlManager.html">PisSqlManager</a></li>
<li><a href="class-database.PssSqlManager.html">PssSqlManager</a></li>
<li><a href="class-database.SpsSqlManager.html">SpsSqlManager</a></li>
<li><a href="class-database.SqlManager.html">SqlManager</a></li>
</ul>
@@ -96,6 +100,14 @@
<table class="summary" id="classes">
<caption>Classes summary</caption>
<tr>
<td class="name"><a href="class-database.PisSqlManager.html">PisSqlManager</a></td>
<td>Description of PisSqlManager</td>
</tr>
<tr>
<td class="name"><a href="class-database.PssSqlManager.html">PssSqlManager</a></td>
<td>Description of PssSqlManager</td>
</tr>
<tr>
<td class="name"><a href="class-database.SpsSqlManager.html">SpsSqlManager</a></td>
<td>Description of SpsSqlManager</td>

128
doc/namespace-utiliy.html Normal file
View File

@@ -0,0 +1,128 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Namespace utiliy | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li><a href="namespace-api.html">api</a>
</li>
<li><a href="namespace-config.html">config</a>
</li>
<li><a href="namespace-database.html">database</a>
</li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
<li><a href="namespace-Slim.html">Slim<span></span></a>
<ul>
<li><a href="namespace-Slim.Exception.html">Exception</a>
</li>
<li><a href="namespace-Slim.Http.html">Http</a>
</li>
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li class="active"><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-utiliy.ArrayManager.html">ArrayManager</a></li>
<li><a href="class-utiliy.StringManager.html">StringManager</a></li>
<li><a href="class-utiliy.XmlManager.html">XmlManager</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li class="active">
<span>Namespace</span> </li>
<li>
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="namespace">
<h1>Namespace utiliy</h1>
<table class="summary" id="classes">
<caption>Classes summary</caption>
<tr>
<td class="name"><a href="class-utiliy.ArrayManager.html">ArrayManager</a></td>
<td>The ArrayManager provides some array-methods</td>
</tr>
<tr>
<td class="name"><a href="class-utiliy.StringManager.html">StringManager</a></td>
<td>The StringManager provides some string-methods</td>
</tr>
<tr>
<td class="name"><a href="class-utiliy.XmlManager.html">XmlManager</a></td>
<td>The XmlManager provides some xml-methods</td>
</tr>
</table>
</div>
<div id="footer">
GeoApi API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@@ -8,7 +8,7 @@
<title>File thirdparty/Slim/Environment.php | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -39,6 +39,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -8,7 +8,7 @@
<title>File thirdparty/Slim/Exception/Pass.php | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -39,6 +39,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -8,7 +8,7 @@
<title>File thirdparty/Slim/Exception/Stop.php | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -39,6 +39,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -8,7 +8,7 @@
<title>File thirdparty/Slim/Http/Headers.php | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -39,6 +39,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -8,7 +8,7 @@
<title>File thirdparty/Slim/Http/Request.php | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -39,6 +39,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -8,7 +8,7 @@
<title>File thirdparty/Slim/Http/Response.php | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -39,6 +39,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -8,7 +8,7 @@
<title>File thirdparty/Slim/Http/Util.php | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -39,6 +39,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -8,7 +8,7 @@
<title>File thirdparty/Slim/Log.php | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -39,6 +39,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -8,7 +8,7 @@
<title>File thirdparty/Slim/LogWriter.php | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -39,6 +39,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -8,7 +8,7 @@
<title>File thirdparty/Slim/Middleware/ContentTypes.php | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -39,6 +39,8 @@
<li class="active"><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -8,7 +8,7 @@
<title>File thirdparty/Slim/Middleware/Flash.php | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -39,6 +39,8 @@
<li class="active"><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -8,7 +8,7 @@
<title>File thirdparty/Slim/Middleware/MethodOverride.php | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -39,6 +39,8 @@
<li class="active"><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -8,7 +8,7 @@
<title>File thirdparty/Slim/Middleware/PrettyExceptions.php | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -39,6 +39,8 @@
<li class="active"><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -8,7 +8,7 @@
<title>File thirdparty/Slim/Middleware/SessionCookie.php | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -39,6 +39,8 @@
<li class="active"><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -8,7 +8,7 @@
<title>File thirdparty/Slim/Middleware.php | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -39,6 +39,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -8,7 +8,7 @@
<title>File thirdparty/Slim/Route.php | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -39,6 +39,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -8,7 +8,7 @@
<title>File thirdparty/Slim/Router.php | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -39,6 +39,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -8,7 +8,7 @@
<title>File thirdparty/Slim/Slim.php | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -39,6 +39,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -8,7 +8,7 @@
<title>File thirdparty/Slim/View.php | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -39,6 +39,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>

View File

@@ -8,7 +8,7 @@
<title>File api/Api.php | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -39,6 +39,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>
@@ -49,6 +51,8 @@
<h3>Classes</h3>
<ul>
<li class="active"><a href="class-api.Api.html">Api</a></li>
<li><a href="class-api.PisApi.html">PisApi</a></li>
<li><a href="class-api.PssApi.html">PssApi</a></li>
<li><a href="class-api.SpsApi.html">SpsApi</a></li>
</ul>
@@ -118,31 +122,35 @@
</span></span><span id="24" class="l"><a class="l" href="#24">24: </a><span class="php-comment"> * Default-Constructor
</span></span><span id="25" class="l"><a class="l" href="#25">25: </a><span class="php-comment"> */</span>
</span><span id="26" class="l"><a class="l" href="#26">26: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___construct" href="#___construct">__construct</a>() {
</span><span id="27" class="l"><a class="l" href="#27">27: </a> <span class="php-keyword1">if</span> (!<span class="php-var">$this</span>-&gt;sqlManager) {
</span><span id="28" class="l"><a class="l" href="#28">28: </a> <span class="php-var">$this</span>-&gt;sqlManager = <span class="php-keyword1">new</span> \database\SQLManager();
</span><span id="29" class="l"><a class="l" href="#29">29: </a> }
</span><span id="30" class="l"><a class="l" href="#30">30: </a> <span class="php-var">$this</span>-&gt;connect();
</span><span id="31" class="l"><a class="l" href="#31">31: </a> parent::__construct();
</span><span id="27" class="l"><a class="l" href="#27">27: </a> <span class="php-var">$this</span>-&gt;connect();
</span><span id="28" class="l"><a class="l" href="#28">28: </a> parent::__construct();
</span><span id="29" class="l"><a class="l" href="#29">29: </a>
</span><span id="30" class="l"><a class="l" href="#30">30: </a> <span class="php-comment">// set content type td xml</span>
</span><span id="31" class="l"><a class="l" href="#31">31: </a> <span class="php-var">$this</span>-&gt;contentType(<span class="php-quote">&quot;Content-type: application/xml;charset=utf-8&quot;</span>);
</span><span id="32" class="l"><a class="l" href="#32">32: </a> }
</span><span id="33" class="l"><a class="l" href="#33">33: </a>
</span><span id="34" class="l"><a class="l" href="#34">34: </a> <span class="php-comment">/**
</span></span><span id="35" class="l"><a class="l" href="#35">35: </a><span class="php-comment"> * Default-DeConstructor
</span></span><span id="36" class="l"><a class="l" href="#36">36: </a><span class="php-comment"> */</span>
</span><span id="37" class="l"><a class="l" href="#37">37: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___destruct" href="#___destruct">__destruct</a>() {
</span><span id="38" class="l"><a class="l" href="#38">38: </a> <span class="php-var">$this</span>-&gt;sqlManager = <span class="php-keyword1">null</span>;
</span><span id="39" class="l"><a class="l" href="#39">39: </a> }
</span><span id="40" class="l"><a class="l" href="#40">40: </a>
</span><span id="41" class="l"><a class="l" href="#41">41: </a> <span class="php-comment">/**
</span></span><span id="42" class="l"><a class="l" href="#42">42: </a><span class="php-comment"> * Method start a connection to the database
</span></span><span id="43" class="l"><a class="l" href="#43">43: </a><span class="php-comment"> */</span>
</span><span id="44" class="l"><a class="l" href="#44">44: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_connect" href="#_connect">connect</a>() {
</span><span id="45" class="l"><a class="l" href="#45">45: </a> <span class="php-var">$this</span>-&gt;sqlManager-&gt;connect();
</span><span id="46" class="l"><a class="l" href="#46">46: </a> }
</span><span id="47" class="l"><a class="l" href="#47">47: </a>
</span><span id="48" class="l"><a class="l" href="#48">48: </a>}
</span><span id="49" class="l"><a class="l" href="#49">49: </a>
</span><span id="50" class="l"><a class="l" href="#50">50: </a><span class="xlang">?&gt;</span>
</span><span id="51" class="l"><a class="l" href="#51">51: </a></span></code></pre>
</span><span id="38" class="l"><a class="l" href="#38">38: </a>
</span><span id="39" class="l"><a class="l" href="#39">39: </a> <span class="php-comment">// destroy the sqlManager</span>
</span><span id="40" class="l"><a class="l" href="#40">40: </a> <span class="php-var">$this</span>-&gt;sqlManager-&gt;closeConnection();
</span><span id="41" class="l"><a class="l" href="#41">41: </a> <span class="php-keyword1">unset</span>(<span class="php-var">$this</span>-&gt;sqlManager);
</span><span id="42" class="l"><a class="l" href="#42">42: </a> <span class="php-var">$this</span>-&gt;sqlManager = <span class="php-keyword1">null</span>;
</span><span id="43" class="l"><a class="l" href="#43">43: </a> }
</span><span id="44" class="l"><a class="l" href="#44">44: </a>
</span><span id="45" class="l"><a class="l" href="#45">45: </a> <span class="php-comment">/**
</span></span><span id="46" class="l"><a class="l" href="#46">46: </a><span class="php-comment"> * Method start a connection to the database
</span></span><span id="47" class="l"><a class="l" href="#47">47: </a><span class="php-comment"> */</span>
</span><span id="48" class="l"><a class="l" href="#48">48: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_connect" href="#_connect">connect</a>() {
</span><span id="49" class="l"><a class="l" href="#49">49: </a> <span class="php-var">$this</span>-&gt;sqlManager-&gt;connect();
</span><span id="50" class="l"><a class="l" href="#50">50: </a> }
</span><span id="51" class="l"><a class="l" href="#51">51: </a>
</span><span id="52" class="l"><a class="l" href="#52">52: </a>}
</span><span id="53" class="l"><a class="l" href="#53">53: </a>
</span><span id="54" class="l"><a class="l" href="#54">54: </a><span class="xlang">?&gt;</span>
</span><span id="55" class="l"><a class="l" href="#55">55: </a></span></code></pre>
<div id="footer">
GeoApi API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>

View File

@@ -0,0 +1,167 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<meta name="robots" content="noindex" />
<title>File api/PisApi.php | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-api.html">api</a>
</li>
<li><a href="namespace-config.html">config</a>
</li>
<li><a href="namespace-database.html">database</a>
</li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
<li><a href="namespace-Slim.html">Slim<span></span></a>
<ul>
<li><a href="namespace-Slim.Exception.html">Exception</a>
</li>
<li><a href="namespace-Slim.Http.html">Http</a>
</li>
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-api.Api.html">Api</a></li>
<li class="active"><a href="class-api.PisApi.html">PisApi</a></li>
<li><a href="class-api.PssApi.html">PssApi</a></li>
<li><a href="class-api.SpsApi.html">SpsApi</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-api.html" title="Summary of api"><span>Namespace</span></a>
</li>
<li>
<a href="class-api.PisApi.html" title="Summary of api\PisApi"><span>Class</span></a>
</li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<pre><code><span id="1" class="l"><a class="l" href="#1"> 1: </a><span class="xlang">&lt;?php</span>
</span><span id="2" class="l"><a class="l" href="#2"> 2: </a>
</span><span id="3" class="l"><a class="l" href="#3"> 3: </a><span class="php-keyword1">namespace</span> api;
</span><span id="4" class="l"><a class="l" href="#4"> 4: </a>
</span><span id="5" class="l"><a class="l" href="#5"> 5: </a><span class="php-keyword1">include_once</span> <span class="php-quote">&quot;../../global.inc.php&quot;</span>;
</span><span id="6" class="l"><a class="l" href="#6"> 6: </a><span class="php-keyword1">include_once</span> PATH_DATABASE . <span class="php-quote">&quot;/PisSqlManager.php&quot;</span>;
</span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-keyword1">include_once</span> PATH_UTILITTY . <span class="php-quote">&quot;/XmlManager.php&quot;</span>;
</span><span id="8" class="l"><a class="l" href="#8"> 8: </a><span class="php-keyword1">include_once</span> PATH_UTILITTY . <span class="php-quote">&quot;/ArrayManager.php&quot;</span>;
</span><span id="9" class="l"><a class="l" href="#9"> 9: </a><span class="php-keyword1">require_once</span> PATH_API . <span class="php-quote">&quot;/Api.php&quot;</span>;
</span><span id="10" class="l"><a class="l" href="#10">10: </a>
</span><span id="11" class="l"><a class="l" href="#11">11: </a><span class="php-comment">/**
</span></span><span id="12" class="l"><a class="l" href="#12">12: </a><span class="php-comment"> * This class provides some spezial PisAPI methods
</span></span><span id="13" class="l"><a class="l" href="#13">13: </a><span class="php-comment"> * @author stubbfel
</span></span><span id="14" class="l"><a class="l" href="#14">14: </a><span class="php-comment"> * @since 20.06.2013
</span></span><span id="15" class="l"><a class="l" href="#15">15: </a><span class="php-comment"> */</span>
</span><span id="16" class="l"><a class="l" href="#16">16: </a><span class="php-keyword1">class</span> <a id="PisApi" href="#PisApi">PisApi</a> <span class="php-keyword1">extends</span> Api {
</span><span id="17" class="l"><a class="l" href="#17">17: </a>
</span><span id="18" class="l"><a class="l" href="#18">18: </a> <span class="php-comment">/**
</span></span><span id="19" class="l"><a class="l" href="#19">19: </a><span class="php-comment"> * Route string for the alias paramter
</span></span><span id="20" class="l"><a class="l" href="#20">20: </a><span class="php-comment"> * @var string
</span></span><span id="21" class="l"><a class="l" href="#21">21: </a><span class="php-comment"> */</span>
</span><span id="22" class="l"><a class="l" href="#22">22: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$routeParameterPids" href="#$routeParameterPids">$routeParameterPids</a></span> = <span class="php-quote">&quot;/pid/:pid+&quot;</span>;
</span><span id="23" class="l"><a class="l" href="#23">23: </a>
</span><span id="24" class="l"><a class="l" href="#24">24: </a> <span class="php-comment">/**
</span></span><span id="25" class="l"><a class="l" href="#25">25: </a><span class="php-comment"> * max number of pid for each query
</span></span><span id="26" class="l"><a class="l" href="#26">26: </a><span class="php-comment"> * @var int
</span></span><span id="27" class="l"><a class="l" href="#27">27: </a><span class="php-comment"> */</span>
</span><span id="28" class="l"><a class="l" href="#28">28: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$maxPid" href="#$maxPid">$maxPid</a></span> = <span class="php-num">10</span>;
</span><span id="29" class="l"><a class="l" href="#29">29: </a>
</span><span id="30" class="l"><a class="l" href="#30">30: </a> <span class="php-comment">/**
</span></span><span id="31" class="l"><a class="l" href="#31">31: </a><span class="php-comment"> * Default-Constructor
</span></span><span id="32" class="l"><a class="l" href="#32">32: </a><span class="php-comment"> */</span>
</span><span id="33" class="l"><a class="l" href="#33">33: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___construct" href="#___construct">__construct</a>() {
</span><span id="34" class="l"><a class="l" href="#34">34: </a> <span class="php-var">$this</span>-&gt;sqlManager = <span class="php-keyword1">new</span> \database\PisSqlManager();
</span><span id="35" class="l"><a class="l" href="#35">35: </a> parent::__construct();
</span><span id="36" class="l"><a class="l" href="#36">36: </a> }
</span><span id="37" class="l"><a class="l" href="#37">37: </a>
</span><span id="38" class="l"><a class="l" href="#38">38: </a> <span class="php-comment">/**
</span></span><span id="39" class="l"><a class="l" href="#39">39: </a><span class="php-comment"> * Default-DeConstructor
</span></span><span id="40" class="l"><a class="l" href="#40">40: </a><span class="php-comment"> */</span>
</span><span id="41" class="l"><a class="l" href="#41">41: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___destruct" href="#___destruct">__destruct</a>() {
</span><span id="42" class="l"><a class="l" href="#42">42: </a> parent::__destruct();
</span><span id="43" class="l"><a class="l" href="#43">43: </a> }
</span><span id="44" class="l"><a class="l" href="#44">44: </a>
</span><span id="45" class="l"><a class="l" href="#45">45: </a> <span class="php-comment">/**
</span></span><span id="46" class="l"><a class="l" href="#46">46: </a><span class="php-comment"> * Method start a pis-query
</span></span><span id="47" class="l"><a class="l" href="#47">47: </a><span class="php-comment"> * @param array $queryArgs
</span></span><span id="48" class="l"><a class="l" href="#48">48: </a><span class="php-comment"> * @return query result as xml
</span></span><span id="49" class="l"><a class="l" href="#49">49: </a><span class="php-comment"> */</span>
</span><span id="50" class="l"><a class="l" href="#50">50: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_sendPisQuery" href="#_sendPisQuery">sendPisQuery</a>(<span class="php-var">$queryArgs</span>) {
</span><span id="51" class="l"><a class="l" href="#51">51: </a> <span class="php-var">$pidList</span> = \utiliy\ArrayManager::removeEmptyItmes(<span class="php-var">$queryArgs</span>);
</span><span id="52" class="l"><a class="l" href="#52">52: </a> <span class="php-keyword1">if</span> (<span class="php-keyword2">count</span>(<span class="php-var">$pidList</span>) &lt; <span class="php-var">$this</span>-&gt;maxPid) {
</span><span id="53" class="l"><a class="l" href="#53">53: </a> <span class="php-var">$result</span> = <span class="php-var">$this</span>-&gt;sqlManager-&gt;sendPisQuery(<span class="php-var">$pidList</span>);
</span><span id="54" class="l"><a class="l" href="#54">54: </a> <span class="php-keyword1">return</span> \utiliy\XmlManager::arrayToPisXml(<span class="php-var">$result</span>);
</span><span id="55" class="l"><a class="l" href="#55">55: </a> }
</span><span id="56" class="l"><a class="l" href="#56">56: </a> <span class="php-keyword1">return</span> <span class="php-keyword1">NULL</span>;
</span><span id="57" class="l"><a class="l" href="#57">57: </a> }
</span><span id="58" class="l"><a class="l" href="#58">58: </a>}
</span><span id="59" class="l"><a class="l" href="#59">59: </a>
</span><span id="60" class="l"><a class="l" href="#60">60: </a><span class="xlang">?&gt;</span>
</span><span id="61" class="l"><a class="l" href="#61">61: </a></span></code></pre>
<div id="footer">
GeoApi API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,169 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<meta name="robots" content="noindex" />
<title>File api/PssApi.php | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-api.html">api</a>
</li>
<li><a href="namespace-config.html">config</a>
</li>
<li><a href="namespace-database.html">database</a>
</li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
<li><a href="namespace-Slim.html">Slim<span></span></a>
<ul>
<li><a href="namespace-Slim.Exception.html">Exception</a>
</li>
<li><a href="namespace-Slim.Http.html">Http</a>
</li>
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-api.Api.html">Api</a></li>
<li><a href="class-api.PisApi.html">PisApi</a></li>
<li class="active"><a href="class-api.PssApi.html">PssApi</a></li>
<li><a href="class-api.SpsApi.html">SpsApi</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-api.html" title="Summary of api"><span>Namespace</span></a>
</li>
<li>
<a href="class-api.PssApi.html" title="Summary of api\PssApi"><span>Class</span></a>
</li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<pre><code><span id="1" class="l"><a class="l" href="#1"> 1: </a><span class="xlang">&lt;?php</span>
</span><span id="2" class="l"><a class="l" href="#2"> 2: </a>
</span><span id="3" class="l"><a class="l" href="#3"> 3: </a><span class="php-keyword1">namespace</span> api;
</span><span id="4" class="l"><a class="l" href="#4"> 4: </a>
</span><span id="5" class="l"><a class="l" href="#5"> 5: </a><span class="php-keyword1">include_once</span> <span class="php-quote">&quot;../../global.inc.php&quot;</span>;
</span><span id="6" class="l"><a class="l" href="#6"> 6: </a><span class="php-keyword1">include_once</span> PATH_DATABASE . <span class="php-quote">&quot;/PssSqlManager.php&quot;</span>;
</span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-keyword1">include_once</span> PATH_UTILITTY . <span class="php-quote">&quot;/XmlManager.php&quot;</span>;
</span><span id="8" class="l"><a class="l" href="#8"> 8: </a><span class="php-keyword1">include_once</span> PATH_UTILITTY . <span class="php-quote">&quot;/ArrayManager.php&quot;</span>;
</span><span id="9" class="l"><a class="l" href="#9"> 9: </a><span class="php-keyword1">require_once</span> PATH_API . <span class="php-quote">&quot;/Api.php&quot;</span>;
</span><span id="10" class="l"><a class="l" href="#10">10: </a>
</span><span id="11" class="l"><a class="l" href="#11">11: </a><span class="php-comment">/**
</span></span><span id="12" class="l"><a class="l" href="#12">12: </a><span class="php-comment"> * This class provides some spezial PssAPI methods
</span></span><span id="13" class="l"><a class="l" href="#13">13: </a><span class="php-comment"> * @author stubbfel
</span></span><span id="14" class="l"><a class="l" href="#14">14: </a><span class="php-comment"> * @since 20.06.2013
</span></span><span id="15" class="l"><a class="l" href="#15">15: </a><span class="php-comment"> */</span>
</span><span id="16" class="l"><a class="l" href="#16">16: </a><span class="php-keyword1">class</span> <a id="PssApi" href="#PssApi">PssApi</a> <span class="php-keyword1">extends</span> Api {
</span><span id="17" class="l"><a class="l" href="#17">17: </a>
</span><span id="18" class="l"><a class="l" href="#18">18: </a> <span class="php-comment">/**
</span></span><span id="19" class="l"><a class="l" href="#19">19: </a><span class="php-comment"> * Route string for the alias paramter
</span></span><span id="20" class="l"><a class="l" href="#20">20: </a><span class="php-comment"> * @var string
</span></span><span id="21" class="l"><a class="l" href="#21">21: </a><span class="php-comment"> */</span>
</span><span id="22" class="l"><a class="l" href="#22">22: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$routeParameterPids" href="#$routeParameterPids">$routeParameterPids</a></span> = <span class="php-quote">&quot;/pid/:pid+&quot;</span>;
</span><span id="23" class="l"><a class="l" href="#23">23: </a>
</span><span id="24" class="l"><a class="l" href="#24">24: </a> <span class="php-comment">/**
</span></span><span id="25" class="l"><a class="l" href="#25">25: </a><span class="php-comment"> * max number of pid for each query
</span></span><span id="26" class="l"><a class="l" href="#26">26: </a><span class="php-comment"> * @var int
</span></span><span id="27" class="l"><a class="l" href="#27">27: </a><span class="php-comment"> */</span>
</span><span id="28" class="l"><a class="l" href="#28">28: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$maxPid" href="#$maxPid">$maxPid</a></span> = <span class="php-num">10</span>;
</span><span id="29" class="l"><a class="l" href="#29">29: </a>
</span><span id="30" class="l"><a class="l" href="#30">30: </a> <span class="php-comment">/**
</span></span><span id="31" class="l"><a class="l" href="#31">31: </a><span class="php-comment"> * Default-Constructor
</span></span><span id="32" class="l"><a class="l" href="#32">32: </a><span class="php-comment"> */</span>
</span><span id="33" class="l"><a class="l" href="#33">33: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___construct" href="#___construct">__construct</a>() {
</span><span id="34" class="l"><a class="l" href="#34">34: </a> <span class="php-var">$this</span>-&gt;sqlManager = <span class="php-keyword1">new</span> \database\PssSqlManager();
</span><span id="35" class="l"><a class="l" href="#35">35: </a> parent::__construct();
</span><span id="36" class="l"><a class="l" href="#36">36: </a> }
</span><span id="37" class="l"><a class="l" href="#37">37: </a>
</span><span id="38" class="l"><a class="l" href="#38">38: </a> <span class="php-comment">/**
</span></span><span id="39" class="l"><a class="l" href="#39">39: </a><span class="php-comment"> * Default-DeConstructor
</span></span><span id="40" class="l"><a class="l" href="#40">40: </a><span class="php-comment"> */</span>
</span><span id="41" class="l"><a class="l" href="#41">41: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___destruct" href="#___destruct">__destruct</a>() {
</span><span id="42" class="l"><a class="l" href="#42">42: </a> parent::__destruct();
</span><span id="43" class="l"><a class="l" href="#43">43: </a> }
</span><span id="44" class="l"><a class="l" href="#44">44: </a>
</span><span id="45" class="l"><a class="l" href="#45">45: </a> <span class="php-comment">/**
</span></span><span id="46" class="l"><a class="l" href="#46">46: </a><span class="php-comment"> * Method start a pis-query
</span></span><span id="47" class="l"><a class="l" href="#47">47: </a><span class="php-comment"> * @param array $queryArgs
</span></span><span id="48" class="l"><a class="l" href="#48">48: </a><span class="php-comment"> * @return query result as xml
</span></span><span id="49" class="l"><a class="l" href="#49">49: </a><span class="php-comment"> */</span>
</span><span id="50" class="l"><a class="l" href="#50">50: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_sendPssQuery" href="#_sendPssQuery">sendPssQuery</a>(<span class="php-var">$queryArgs</span>) {
</span><span id="51" class="l"><a class="l" href="#51">51: </a> <span class="php-var">$pidList</span> = \utiliy\ArrayManager::removeEmptyItmes(<span class="php-var">$queryArgs</span>);
</span><span id="52" class="l"><a class="l" href="#52">52: </a>
</span><span id="53" class="l"><a class="l" href="#53">53: </a> <span class="php-keyword1">if</span> (<span class="php-keyword2">count</span>(<span class="php-var">$pidList</span>) &lt; <span class="php-var">$this</span>-&gt;maxPid) {
</span><span id="54" class="l"><a class="l" href="#54">54: </a> <span class="php-var">$result</span> = <span class="php-var">$this</span>-&gt;sqlManager-&gt;sendPssQuery(<span class="php-var">$pidList</span>);
</span><span id="55" class="l"><a class="l" href="#55">55: </a> <span class="php-keyword1">return</span> \utiliy\XmlManager::arrayToPssXml(<span class="php-var">$result</span>);
</span><span id="56" class="l"><a class="l" href="#56">56: </a> }
</span><span id="57" class="l"><a class="l" href="#57">57: </a> <span class="php-keyword1">return</span> <span class="php-keyword1">NULL</span>;
</span><span id="58" class="l"><a class="l" href="#58">58: </a> }
</span><span id="59" class="l"><a class="l" href="#59">59: </a>
</span><span id="60" class="l"><a class="l" href="#60">60: </a>}
</span><span id="61" class="l"><a class="l" href="#61">61: </a>
</span><span id="62" class="l"><a class="l" href="#62">62: </a><span class="xlang">?&gt;</span>
</span><span id="63" class="l"><a class="l" href="#63">63: </a></span></code></pre>
<div id="footer">
GeoApi API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@@ -8,7 +8,7 @@
<title>File api/SpsApi.php | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -39,6 +39,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>
@@ -49,6 +51,8 @@
<h3>Classes</h3>
<ul>
<li><a href="class-api.Api.html">Api</a></li>
<li><a href="class-api.PisApi.html">PisApi</a></li>
<li><a href="class-api.PssApi.html">PssApi</a></li>
<li class="active"><a href="class-api.SpsApi.html">SpsApi</a></li>
</ul>
@@ -98,43 +102,214 @@
</span><span id="4" class="l"><a class="l" href="#4"> 4: </a>
</span><span id="5" class="l"><a class="l" href="#5"> 5: </a><span class="php-keyword1">include_once</span> <span class="php-quote">&quot;../../global.inc.php&quot;</span>;
</span><span id="6" class="l"><a class="l" href="#6"> 6: </a><span class="php-keyword1">include_once</span> PATH_DATABASE . <span class="php-quote">&quot;/SpsSqlManager.php&quot;</span>;
</span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-keyword1">require_once</span> PATH_API . <span class="php-quote">&quot;/Api.php&quot;</span>;
</span><span id="8" class="l"><a class="l" href="#8"> 8: </a>
</span><span id="9" class="l"><a class="l" href="#9"> 9: </a><span class="php-comment">/**
</span></span><span id="10" class="l"><a class="l" href="#10">10: </a><span class="php-comment"> * This class provides some spezial SpsAPI methods
</span></span><span id="11" class="l"><a class="l" href="#11">11: </a><span class="php-comment"> * @author stubbfel
</span></span><span id="12" class="l"><a class="l" href="#12">12: </a><span class="php-comment"> * @since 20.06.2013
</span></span><span id="13" class="l"><a class="l" href="#13">13: </a><span class="php-comment"> */</span>
</span><span id="14" class="l"><a class="l" href="#14">14: </a><span class="php-keyword1">class</span> <a id="SpsApi" href="#SpsApi">SpsApi</a> <span class="php-keyword1">extends</span> Api {
</span><span id="15" class="l"><a class="l" href="#15">15: </a>
</span><span id="16" class="l"><a class="l" href="#16">16: </a> <span class="php-comment">/**
</span></span><span id="17" class="l"><a class="l" href="#17">17: </a><span class="php-comment"> * Default-Constructor
</span></span><span id="18" class="l"><a class="l" href="#18">18: </a><span class="php-comment"> */</span>
</span><span id="19" class="l"><a class="l" href="#19">19: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___construct" href="#___construct">__construct</a>() {
</span><span id="20" class="l"><a class="l" href="#20">20: </a> <span class="php-var">$this</span>-&gt;sqlManager = <span class="php-keyword1">new</span> \database\SpsSqlManager();
</span><span id="21" class="l"><a class="l" href="#21">21: </a> parent::__construct();
</span><span id="22" class="l"><a class="l" href="#22">22: </a> }
</span><span id="23" class="l"><a class="l" href="#23">23: </a>
</span><span id="24" class="l"><a class="l" href="#24">24: </a> <span class="php-comment">/**
</span></span><span id="25" class="l"><a class="l" href="#25">25: </a><span class="php-comment"> * Default-DeConstructor
</span></span><span id="26" class="l"><a class="l" href="#26">26: </a><span class="php-comment"> */</span>
</span><span id="27" class="l"><a class="l" href="#27">27: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___destruct" href="#___destruct">__destruct</a>() {
</span><span id="28" class="l"><a class="l" href="#28">28: </a> parent::__destruct();
</span><span id="29" class="l"><a class="l" href="#29">29: </a> }
</span><span id="30" class="l"><a class="l" href="#30">30: </a>
</span><span id="31" class="l"><a class="l" href="#31">31: </a> <span class="php-comment">/**
</span></span><span id="32" class="l"><a class="l" href="#32">32: </a><span class="php-comment"> * Method stert a sps-query
</span></span><span id="33" class="l"><a class="l" href="#33">33: </a><span class="php-comment"> * @param array $queryArgs
</span></span><span id="34" class="l"><a class="l" href="#34">34: </a><span class="php-comment"> * @return array[num] [assoc]
</span></span><span id="35" class="l"><a class="l" href="#35">35: </a><span class="php-comment"> */</span>
</span><span id="36" class="l"><a class="l" href="#36">36: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_sendSpsQuery" href="#_sendSpsQuery">sendSpsQuery</a>(<span class="php-var">$queryArgs</span> = <span class="php-keyword1">array</span>()) {
</span><span id="37" class="l"><a class="l" href="#37">37: </a> <span class="php-keyword1">return</span> <span class="php-var">$this</span>-&gt;sqlManager-&gt;sendSpsQuery(<span class="php-var">$queryArgs</span>);
</span><span id="38" class="l"><a class="l" href="#38">38: </a> }
</span><span id="39" class="l"><a class="l" href="#39">39: </a>
</span><span id="40" class="l"><a class="l" href="#40">40: </a>}
</span><span id="41" class="l"><a class="l" href="#41">41: </a>
</span><span id="42" class="l"><a class="l" href="#42">42: </a><span class="xlang">?&gt;</span>
</span><span id="43" class="l"><a class="l" href="#43">43: </a></span></code></pre>
</span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-keyword1">include_once</span> PATH_UTILITTY . <span class="php-quote">&quot;/XmlManager.php&quot;</span>;
</span><span id="8" class="l"><a class="l" href="#8"> 8: </a><span class="php-keyword1">require_once</span> PATH_API . <span class="php-quote">&quot;/Api.php&quot;</span>;
</span><span id="9" class="l"><a class="l" href="#9"> 9: </a>
</span><span id="10" class="l"><a class="l" href="#10"> 10: </a><span class="php-comment">/**
</span></span><span id="11" class="l"><a class="l" href="#11"> 11: </a><span class="php-comment"> * This class provides some spezial SpsAPI methods
</span></span><span id="12" class="l"><a class="l" href="#12"> 12: </a><span class="php-comment"> * @author stubbfel
</span></span><span id="13" class="l"><a class="l" href="#13"> 13: </a><span class="php-comment"> * @since 20.06.2013
</span></span><span id="14" class="l"><a class="l" href="#14"> 14: </a><span class="php-comment"> */</span>
</span><span id="15" class="l"><a class="l" href="#15"> 15: </a><span class="php-keyword1">class</span> <a id="SpsApi" href="#SpsApi">SpsApi</a> <span class="php-keyword1">extends</span> Api {
</span><span id="16" class="l"><a class="l" href="#16"> 16: </a>
</span><span id="17" class="l"><a class="l" href="#17"> 17: </a> <span class="php-comment">/**
</span></span><span id="18" class="l"><a class="l" href="#18"> 18: </a><span class="php-comment"> * Route string for the alias paramter
</span></span><span id="19" class="l"><a class="l" href="#19"> 19: </a><span class="php-comment"> * @var string
</span></span><span id="20" class="l"><a class="l" href="#20"> 20: </a><span class="php-comment"> */</span>
</span><span id="21" class="l"><a class="l" href="#21"> 21: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$routeParameterAlias" href="#$routeParameterAlias">$routeParameterAlias</a></span> = <span class="php-quote">&quot;/alias/:alias&quot;</span>;
</span><span id="22" class="l"><a class="l" href="#22"> 22: </a>
</span><span id="23" class="l"><a class="l" href="#23"> 23: </a> <span class="php-comment">/**
</span></span><span id="24" class="l"><a class="l" href="#24"> 24: </a><span class="php-comment"> * Route string for the domain paramter
</span></span><span id="25" class="l"><a class="l" href="#25"> 25: </a><span class="php-comment"> * @var string
</span></span><span id="26" class="l"><a class="l" href="#26"> 26: </a><span class="php-comment"> */</span>
</span><span id="27" class="l"><a class="l" href="#27"> 27: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$routeParameterDomain" href="#$routeParameterDomain">$routeParameterDomain</a></span> = <span class="php-quote">&quot;/domain/:domain&quot;</span>;
</span><span id="28" class="l"><a class="l" href="#28"> 28: </a>
</span><span id="29" class="l"><a class="l" href="#29"> 29: </a> <span class="php-comment">/**
</span></span><span id="30" class="l"><a class="l" href="#30"> 30: </a><span class="php-comment"> * Route string for the Longitude paramter
</span></span><span id="31" class="l"><a class="l" href="#31"> 31: </a><span class="php-comment"> * @var string
</span></span><span id="32" class="l"><a class="l" href="#32"> 32: </a><span class="php-comment"> */</span>
</span><span id="33" class="l"><a class="l" href="#33"> 33: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$routeParameterLongitude" href="#$routeParameterLongitude">$routeParameterLongitude</a></span> = <span class="php-quote">&quot;/longitude/:longitude&quot;</span>;
</span><span id="34" class="l"><a class="l" href="#34"> 34: </a>
</span><span id="35" class="l"><a class="l" href="#35"> 35: </a> <span class="php-comment">/**
</span></span><span id="36" class="l"><a class="l" href="#36"> 36: </a><span class="php-comment"> * Route string for the latitude paramter
</span></span><span id="37" class="l"><a class="l" href="#37"> 37: </a><span class="php-comment"> * @var string
</span></span><span id="38" class="l"><a class="l" href="#38"> 38: </a><span class="php-comment"> */</span>
</span><span id="39" class="l"><a class="l" href="#39"> 39: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$routeParameterLatitude" href="#$routeParameterLatitude">$routeParameterLatitude</a></span> = <span class="php-quote">&quot;/latitude/:latitude&quot;</span>;
</span><span id="40" class="l"><a class="l" href="#40"> 40: </a>
</span><span id="41" class="l"><a class="l" href="#41"> 41: </a> <span class="php-comment">/**
</span></span><span id="42" class="l"><a class="l" href="#42"> 42: </a><span class="php-comment"> * Keyword for alias arguments
</span></span><span id="43" class="l"><a class="l" href="#43"> 43: </a><span class="php-comment"> * @var string
</span></span><span id="44" class="l"><a class="l" href="#44"> 44: </a><span class="php-comment"> */</span>
</span><span id="45" class="l"><a class="l" href="#45"> 45: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$keyAlias" href="#$keyAlias">$keyAlias</a></span> = <span class="php-quote">&quot;alias&quot;</span>;
</span><span id="46" class="l"><a class="l" href="#46"> 46: </a>
</span><span id="47" class="l"><a class="l" href="#47"> 47: </a> <span class="php-comment">/**
</span></span><span id="48" class="l"><a class="l" href="#48"> 48: </a><span class="php-comment"> * Keyword for domain arguments
</span></span><span id="49" class="l"><a class="l" href="#49"> 49: </a><span class="php-comment"> * @var string
</span></span><span id="50" class="l"><a class="l" href="#50"> 50: </a><span class="php-comment"> */</span>
</span><span id="51" class="l"><a class="l" href="#51"> 51: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$keyDomain" href="#$keyDomain">$keyDomain</a></span> = <span class="php-quote">&quot;domain&quot;</span>;
</span><span id="52" class="l"><a class="l" href="#52"> 52: </a>
</span><span id="53" class="l"><a class="l" href="#53"> 53: </a> <span class="php-comment">/**
</span></span><span id="54" class="l"><a class="l" href="#54"> 54: </a><span class="php-comment"> * Keyword for polygon arguments
</span></span><span id="55" class="l"><a class="l" href="#55"> 55: </a><span class="php-comment"> * @var string
</span></span><span id="56" class="l"><a class="l" href="#56"> 56: </a><span class="php-comment"> */</span>
</span><span id="57" class="l"><a class="l" href="#57"> 57: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$keyPoly" href="#$keyPoly">$keyPoly</a></span> = <span class="php-quote">&quot;poly&quot;</span>;
</span><span id="58" class="l"><a class="l" href="#58"> 58: </a>
</span><span id="59" class="l"><a class="l" href="#59"> 59: </a> <span class="php-comment">/**
</span></span><span id="60" class="l"><a class="l" href="#60"> 60: </a><span class="php-comment"> * Keyword for longitude arguments
</span></span><span id="61" class="l"><a class="l" href="#61"> 61: </a><span class="php-comment"> * @var string
</span></span><span id="62" class="l"><a class="l" href="#62"> 62: </a><span class="php-comment"> */</span>
</span><span id="63" class="l"><a class="l" href="#63"> 63: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$keyLong" href="#$keyLong">$keyLong</a></span> = <span class="php-quote">&quot;longitude&quot;</span>;
</span><span id="64" class="l"><a class="l" href="#64"> 64: </a>
</span><span id="65" class="l"><a class="l" href="#65"> 65: </a> <span class="php-comment">/**
</span></span><span id="66" class="l"><a class="l" href="#66"> 66: </a><span class="php-comment"> * Keyword for latitude arguments
</span></span><span id="67" class="l"><a class="l" href="#67"> 67: </a><span class="php-comment"> * @var string
</span></span><span id="68" class="l"><a class="l" href="#68"> 68: </a><span class="php-comment"> */</span>
</span><span id="69" class="l"><a class="l" href="#69"> 69: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$keyLat" href="#$keyLat">$keyLat</a></span> = <span class="php-quote">&quot;latitude&quot;</span>;
</span><span id="70" class="l"><a class="l" href="#70"> 70: </a>
</span><span id="71" class="l"><a class="l" href="#71"> 71: </a> <span class="php-comment">/*
</span></span><span id="72" class="l"><a class="l" href="#72"> 72: </a><span class="php-comment"> * Varible for the range of the searchpolygon
</span></span><span id="73" class="l"><a class="l" href="#73"> 73: </a><span class="php-comment"> * @var float
</span></span><span id="74" class="l"><a class="l" href="#74"> 74: </a><span class="php-comment"> */</span>
</span><span id="75" class="l"><a class="l" href="#75"> 75: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$range" href="#$range">$range</a></span> = <span class="php-num">1</span>;
</span><span id="76" class="l"><a class="l" href="#76"> 76: </a>
</span><span id="77" class="l"><a class="l" href="#77"> 77: </a> <span class="php-comment">/*
</span></span><span id="78" class="l"><a class="l" href="#78"> 78: </a><span class="php-comment"> * Varible for the fist chars of the string for a Polygon
</span></span><span id="79" class="l"><a class="l" href="#79"> 79: </a><span class="php-comment"> * @var string
</span></span><span id="80" class="l"><a class="l" href="#80"> 80: </a><span class="php-comment"> */</span>
</span><span id="81" class="l"><a class="l" href="#81"> 81: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$polyStartStr" href="#$polyStartStr">$polyStartStr</a></span> = <span class="php-quote">&quot;GeomFromText('Polygon((&quot;</span>;
</span><span id="82" class="l"><a class="l" href="#82"> 82: </a>
</span><span id="83" class="l"><a class="l" href="#83"> 83: </a> <span class="php-comment">/*
</span></span><span id="84" class="l"><a class="l" href="#84"> 84: </a><span class="php-comment"> * Varible for the last chars of the string for a Polygon
</span></span><span id="85" class="l"><a class="l" href="#85"> 85: </a><span class="php-comment"> * @var string
</span></span><span id="86" class="l"><a class="l" href="#86"> 86: </a><span class="php-comment"> */</span>
</span><span id="87" class="l"><a class="l" href="#87"> 87: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$polyEndStr" href="#$polyEndStr">$polyEndStr</a></span> = <span class="php-quote">&quot;))'&quot;</span>;
</span><span id="88" class="l"><a class="l" href="#88"> 88: </a>
</span><span id="89" class="l"><a class="l" href="#89"> 89: </a> <span class="php-comment">/**
</span></span><span id="90" class="l"><a class="l" href="#90"> 90: </a><span class="php-comment"> * maximum value of latitude
</span></span><span id="91" class="l"><a class="l" href="#91"> 91: </a><span class="php-comment"> * @var float
</span></span><span id="92" class="l"><a class="l" href="#92"> 92: </a><span class="php-comment"> */</span>
</span><span id="93" class="l"><a class="l" href="#93"> 93: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$maxLat" href="#$maxLat">$maxLat</a></span> = <span class="php-num">180</span>;
</span><span id="94" class="l"><a class="l" href="#94"> 94: </a>
</span><span id="95" class="l"><a class="l" href="#95"> 95: </a> <span class="php-comment">/**
</span></span><span id="96" class="l"><a class="l" href="#96"> 96: </a><span class="php-comment"> * minimum value of latitude
</span></span><span id="97" class="l"><a class="l" href="#97"> 97: </a><span class="php-comment"> * @var float
</span></span><span id="98" class="l"><a class="l" href="#98"> 98: </a><span class="php-comment"> */</span>
</span><span id="99" class="l"><a class="l" href="#99"> 99: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$minLat" href="#$minLat">$minLat</a></span> = -<span class="php-num">180</span>;
</span><span id="100" class="l"><a class="l" href="#100">100: </a>
</span><span id="101" class="l"><a class="l" href="#101">101: </a> <span class="php-comment">/**
</span></span><span id="102" class="l"><a class="l" href="#102">102: </a><span class="php-comment"> * maximum value of longitude
</span></span><span id="103" class="l"><a class="l" href="#103">103: </a><span class="php-comment"> * @var float
</span></span><span id="104" class="l"><a class="l" href="#104">104: </a><span class="php-comment"> */</span>
</span><span id="105" class="l"><a class="l" href="#105">105: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$maxLong" href="#$maxLong">$maxLong</a></span> = <span class="php-num">180</span>;
</span><span id="106" class="l"><a class="l" href="#106">106: </a>
</span><span id="107" class="l"><a class="l" href="#107">107: </a> <span class="php-comment">/**
</span></span><span id="108" class="l"><a class="l" href="#108">108: </a><span class="php-comment"> * minimum value of longitude
</span></span><span id="109" class="l"><a class="l" href="#109">109: </a><span class="php-comment"> * @var float
</span></span><span id="110" class="l"><a class="l" href="#110">110: </a><span class="php-comment"> */</span>
</span><span id="111" class="l"><a class="l" href="#111">111: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$minLong" href="#$minLong">$minLong</a></span> = -<span class="php-num">180</span>;
</span><span id="112" class="l"><a class="l" href="#112">112: </a>
</span><span id="113" class="l"><a class="l" href="#113">113: </a> <span class="php-comment">/**
</span></span><span id="114" class="l"><a class="l" href="#114">114: </a><span class="php-comment"> * Default-Constructor
</span></span><span id="115" class="l"><a class="l" href="#115">115: </a><span class="php-comment"> */</span>
</span><span id="116" class="l"><a class="l" href="#116">116: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___construct" href="#___construct">__construct</a>() {
</span><span id="117" class="l"><a class="l" href="#117">117: </a> <span class="php-var">$this</span>-&gt;sqlManager = <span class="php-keyword1">new</span> \database\SpsSqlManager();
</span><span id="118" class="l"><a class="l" href="#118">118: </a> parent::__construct();
</span><span id="119" class="l"><a class="l" href="#119">119: </a> }
</span><span id="120" class="l"><a class="l" href="#120">120: </a>
</span><span id="121" class="l"><a class="l" href="#121">121: </a> <span class="php-comment">/**
</span></span><span id="122" class="l"><a class="l" href="#122">122: </a><span class="php-comment"> * Default-DeConstructor
</span></span><span id="123" class="l"><a class="l" href="#123">123: </a><span class="php-comment"> */</span>
</span><span id="124" class="l"><a class="l" href="#124">124: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___destruct" href="#___destruct">__destruct</a>() {
</span><span id="125" class="l"><a class="l" href="#125">125: </a> parent::__destruct();
</span><span id="126" class="l"><a class="l" href="#126">126: </a> }
</span><span id="127" class="l"><a class="l" href="#127">127: </a>
</span><span id="128" class="l"><a class="l" href="#128">128: </a> <span class="php-comment">/**
</span></span><span id="129" class="l"><a class="l" href="#129">129: </a><span class="php-comment"> * Method start a sps-query(alias)
</span></span><span id="130" class="l"><a class="l" href="#130">130: </a><span class="php-comment"> * @param array $queryArgs
</span></span><span id="131" class="l"><a class="l" href="#131">131: </a><span class="php-comment"> * @return querry result as xml
</span></span><span id="132" class="l"><a class="l" href="#132">132: </a><span class="php-comment"> */</span>
</span><span id="133" class="l"><a class="l" href="#133">133: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_sendSpsAliasQuery" href="#_sendSpsAliasQuery">sendSpsAliasQuery</a>(<span class="php-var">$queryArgs</span>) {
</span><span id="134" class="l"><a class="l" href="#134">134: </a> <span class="php-var">$result</span> = <span class="php-var">$this</span>-&gt;sqlManager-&gt;sendSpsAliasQuery(<span class="php-var">$queryArgs</span>);
</span><span id="135" class="l"><a class="l" href="#135">135: </a> <span class="php-keyword1">return</span> \utiliy\XmlManager::arrayToSpsXml(<span class="php-var">$result</span>);
</span><span id="136" class="l"><a class="l" href="#136">136: </a> }
</span><span id="137" class="l"><a class="l" href="#137">137: </a>
</span><span id="138" class="l"><a class="l" href="#138">138: </a> <span class="php-comment">/**
</span></span><span id="139" class="l"><a class="l" href="#139">139: </a><span class="php-comment"> * Method start a sps-query(Coordinates)
</span></span><span id="140" class="l"><a class="l" href="#140">140: </a><span class="php-comment"> * @param array $queryArgs
</span></span><span id="141" class="l"><a class="l" href="#141">141: </a><span class="php-comment"> * @return querry result as xml
</span></span><span id="142" class="l"><a class="l" href="#142">142: </a><span class="php-comment"> */</span>
</span><span id="143" class="l"><a class="l" href="#143">143: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_sendSpsCoordinateQuery" href="#_sendSpsCoordinateQuery">sendSpsCoordinateQuery</a>(<span class="php-var">$queryArgs</span>) {
</span><span id="144" class="l"><a class="l" href="#144">144: </a>
</span><span id="145" class="l"><a class="l" href="#145">145: </a> <span class="php-comment">// check arguments of the query</span>
</span><span id="146" class="l"><a class="l" href="#146">146: </a> <span class="php-keyword1">if</span> (!<span class="php-keyword2">array_key_exists</span>(SpsApi::<span class="php-var">$keyLong</span>, <span class="php-var">$queryArgs</span>) || !<span class="php-keyword2">array_key_exists</span>(SpsApi::<span class="php-var">$keyLat</span>, <span class="php-var">$queryArgs</span>)) {
</span><span id="147" class="l"><a class="l" href="#147">147: </a> <span class="php-keyword1">return</span> <span class="php-keyword1">null</span>;
</span><span id="148" class="l"><a class="l" href="#148">148: </a> }
</span><span id="149" class="l"><a class="l" href="#149">149: </a> <span class="php-var">$latitude</span> = <span class="php-var">$queryArgs</span>[SpsApi::<span class="php-var">$keyLat</span>];
</span><span id="150" class="l"><a class="l" href="#150">150: </a> <span class="php-var">$longitude</span> = <span class="php-var">$queryArgs</span>[SpsApi::<span class="php-var">$keyLong</span>];
</span><span id="151" class="l"><a class="l" href="#151">151: </a>
</span><span id="152" class="l"><a class="l" href="#152">152: </a> <span class="php-keyword1">if</span> (!<span class="php-var">$this</span>-&gt;validLatitude(<span class="php-var">$latitude</span>) || !<span class="php-var">$this</span>-&gt;validLongitude(<span class="php-var">$longitude</span>)) {
</span><span id="153" class="l"><a class="l" href="#153">153: </a> <span class="php-keyword1">return</span> <span class="php-keyword1">null</span>;
</span><span id="154" class="l"><a class="l" href="#154">154: </a> }
</span><span id="155" class="l"><a class="l" href="#155">155: </a>
</span><span id="156" class="l"><a class="l" href="#156">156: </a> <span class="php-comment">// build a request polygon</span>
</span><span id="157" class="l"><a class="l" href="#157">157: </a> <span class="php-var">$queryArgs</span>[SpsApi::<span class="php-var">$keyPoly</span>] = <span class="php-var">$this</span>-&gt;createPolygon(<span class="php-var">$latitude</span>, <span class="php-var">$longitude</span>, <span class="php-var">$this</span>-&gt;<span class="php-keyword2">range</span>);
</span><span id="158" class="l"><a class="l" href="#158">158: </a>
</span><span id="159" class="l"><a class="l" href="#159">159: </a> <span class="php-comment">// send querry</span>
</span><span id="160" class="l"><a class="l" href="#160">160: </a> <span class="php-var">$result</span> = <span class="php-var">$this</span>-&gt;sqlManager-&gt;sendSpsCoordinateQuery(<span class="php-var">$queryArgs</span>);
</span><span id="161" class="l"><a class="l" href="#161">161: </a> <span class="php-keyword1">return</span> \utiliy\XmlManager::arrayToSpsXml(<span class="php-var">$result</span>);
</span><span id="162" class="l"><a class="l" href="#162">162: </a> }
</span><span id="163" class="l"><a class="l" href="#163">163: </a>
</span><span id="164" class="l"><a class="l" href="#164">164: </a> <span class="php-comment">/**
</span></span><span id="165" class="l"><a class="l" href="#165">165: </a><span class="php-comment"> * Method check if a string is a valid Longitude
</span></span><span id="166" class="l"><a class="l" href="#166">166: </a><span class="php-comment"> * @param string $string
</span></span><span id="167" class="l"><a class="l" href="#167">167: </a><span class="php-comment"> * @return bool
</span></span><span id="168" class="l"><a class="l" href="#168">168: </a><span class="php-comment"> */</span>
</span><span id="169" class="l"><a class="l" href="#169">169: </a> <span class="php-keyword1">private</span> <span class="php-keyword1">function</span> <a id="_validLongitude" href="#_validLongitude">validLongitude</a>(<span class="php-var">$string</span>) {
</span><span id="170" class="l"><a class="l" href="#170">170: </a> <span class="php-var">$digitLessPoint</span> = <span class="php-keyword2">str_replace</span>(<span class="php-quote">&quot;.&quot;</span>, <span class="php-quote">&quot;&quot;</span>, <span class="php-var">$string</span>);
</span><span id="171" class="l"><a class="l" href="#171">171: </a> <span class="php-var">$digit</span> = <span class="php-keyword2">str_replace</span>(<span class="php-quote">&quot;-&quot;</span>, <span class="php-quote">&quot;&quot;</span>, <span class="php-var">$digitLessPoint</span>);
</span><span id="172" class="l"><a class="l" href="#172">172: </a> <span class="php-keyword1">if</span> (<span class="php-keyword2">ctype_digit</span>(<span class="php-var">$digit</span>)) {
</span><span id="173" class="l"><a class="l" href="#173">173: </a> <span class="php-keyword1">if</span> (<span class="php-var">$string</span> &lt;= <span class="php-var">$this</span>-&gt;maxLong &amp;&amp; <span class="php-var">$string</span> &gt;= <span class="php-var">$this</span>-&gt;minLong) {
</span><span id="174" class="l"><a class="l" href="#174">174: </a> <span class="php-keyword1">return</span> <span class="php-keyword1">TRUE</span>;
</span><span id="175" class="l"><a class="l" href="#175">175: </a> }
</span><span id="176" class="l"><a class="l" href="#176">176: </a> };
</span><span id="177" class="l"><a class="l" href="#177">177: </a> <span class="php-keyword1">return</span> <span class="php-keyword1">FALSE</span>;
</span><span id="178" class="l"><a class="l" href="#178">178: </a> }
</span><span id="179" class="l"><a class="l" href="#179">179: </a>
</span><span id="180" class="l"><a class="l" href="#180">180: </a> <span class="php-comment">/**
</span></span><span id="181" class="l"><a class="l" href="#181">181: </a><span class="php-comment"> * Method check if a string is a valid Latitude
</span></span><span id="182" class="l"><a class="l" href="#182">182: </a><span class="php-comment"> * @param strinf $string
</span></span><span id="183" class="l"><a class="l" href="#183">183: </a><span class="php-comment"> * @return bool
</span></span><span id="184" class="l"><a class="l" href="#184">184: </a><span class="php-comment"> */</span>
</span><span id="185" class="l"><a class="l" href="#185">185: </a> <span class="php-keyword1">private</span> <span class="php-keyword1">function</span> <a id="_validLatitude" href="#_validLatitude">validLatitude</a>(<span class="php-var">$string</span>) {
</span><span id="186" class="l"><a class="l" href="#186">186: </a> <span class="php-var">$digitLessPoint</span> = <span class="php-keyword2">str_replace</span>(<span class="php-quote">&quot;.&quot;</span>, <span class="php-quote">&quot;&quot;</span>, <span class="php-var">$string</span>);
</span><span id="187" class="l"><a class="l" href="#187">187: </a> <span class="php-var">$digit</span> = <span class="php-keyword2">str_replace</span>(<span class="php-quote">&quot;-&quot;</span>, <span class="php-quote">&quot;&quot;</span>, <span class="php-var">$digitLessPoint</span>);
</span><span id="188" class="l"><a class="l" href="#188">188: </a> <span class="php-keyword1">if</span> (<span class="php-keyword2">ctype_digit</span>(<span class="php-var">$digit</span>)) {
</span><span id="189" class="l"><a class="l" href="#189">189: </a> <span class="php-keyword1">if</span> (<span class="php-var">$string</span> &lt;= <span class="php-var">$this</span>-&gt;maxLat &amp;&amp; <span class="php-var">$string</span> &gt;= <span class="php-var">$this</span>-&gt;minLat) {
</span><span id="190" class="l"><a class="l" href="#190">190: </a> <span class="php-keyword1">return</span> <span class="php-keyword1">TRUE</span>;
</span><span id="191" class="l"><a class="l" href="#191">191: </a> }
</span><span id="192" class="l"><a class="l" href="#192">192: </a> };
</span><span id="193" class="l"><a class="l" href="#193">193: </a> <span class="php-keyword1">return</span> <span class="php-keyword1">FALSE</span>;
</span><span id="194" class="l"><a class="l" href="#194">194: </a> }
</span><span id="195" class="l"><a class="l" href="#195">195: </a>
</span><span id="196" class="l"><a class="l" href="#196">196: </a> <span class="php-comment">/**
</span></span><span id="197" class="l"><a class="l" href="#197">197: </a><span class="php-comment"> * Method create a Polygon
</span></span><span id="198" class="l"><a class="l" href="#198">198: </a><span class="php-comment"> * @param float $latitude
</span></span><span id="199" class="l"><a class="l" href="#199">199: </a><span class="php-comment"> * @param float $longitude
</span></span><span id="200" class="l"><a class="l" href="#200">200: </a><span class="php-comment"> * @param float $range
</span></span><span id="201" class="l"><a class="l" href="#201">201: </a><span class="php-comment"> * @return string
</span></span><span id="202" class="l"><a class="l" href="#202">202: </a><span class="php-comment"> */</span>
</span><span id="203" class="l"><a class="l" href="#203">203: </a> <span class="php-keyword1">private</span> <span class="php-keyword1">function</span> <a id="_createPolygon" href="#_createPolygon">createPolygon</a>(<span class="php-var">$latitude</span>, <span class="php-var">$longitude</span>, <span class="php-var">$range</span>) {
</span><span id="204" class="l"><a class="l" href="#204">204: </a> <span class="php-var">$minLat</span> = <span class="php-var">$latitude</span> - <span class="php-var">$range</span>;
</span><span id="205" class="l"><a class="l" href="#205">205: </a> <span class="php-var">$minLong</span> = <span class="php-var">$longitude</span> - <span class="php-var">$range</span>;
</span><span id="206" class="l"><a class="l" href="#206">206: </a> <span class="php-var">$maxLat</span> = <span class="php-var">$latitude</span> + <span class="php-var">$range</span>;
</span><span id="207" class="l"><a class="l" href="#207">207: </a> <span class="php-var">$maxLong</span> = <span class="php-var">$longitude</span> + <span class="php-var">$range</span>;
</span><span id="208" class="l"><a class="l" href="#208">208: </a> <span class="php-keyword1">return</span> <span class="php-var">$this</span>-&gt;polyStartStr . <span class="php-quote">&quot;</span><span class="php-var">$minLat</span><span class="php-quote"> </span><span class="php-var">$minLong</span><span class="php-quote">,</span><span class="php-var">$minLat</span><span class="php-quote"> </span><span class="php-var">$maxLong</span><span class="php-quote">,</span><span class="php-var">$maxLat</span><span class="php-quote"> </span><span class="php-var">$maxLong</span><span class="php-quote">,</span><span class="php-var">$maxLat</span><span class="php-quote"> </span><span class="php-var">$minLong</span><span class="php-quote">,</span><span class="php-var">$minLat</span><span class="php-quote"> </span><span class="php-var">$minLong</span><span class="php-quote">&quot;</span> . <span class="php-var">$this</span>-&gt;polyEndStr;
</span><span id="209" class="l"><a class="l" href="#209">209: </a> }
</span><span id="210" class="l"><a class="l" href="#210">210: </a>
</span><span id="211" class="l"><a class="l" href="#211">211: </a>}
</span><span id="212" class="l"><a class="l" href="#212">212: </a>
</span><span id="213" class="l"><a class="l" href="#213">213: </a><span class="xlang">?&gt;</span>
</span><span id="214" class="l"><a class="l" href="#214">214: </a></span></code></pre>
<div id="footer">
GeoApi API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>

View File

@@ -8,7 +8,7 @@
<title>File config/config.db.php | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -39,6 +39,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>
@@ -97,33 +99,40 @@
</span><span id="4" class="l"><a class="l" href="#4"> 4: </a>
</span><span id="5" class="l"><a class="l" href="#5"> 5: </a><span class="php-comment">/**
</span></span><span id="6" class="l"><a class="l" href="#6"> 6: </a><span class="php-comment"> * This clas is an container for the DBConf
</span></span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-comment"> */</span>
</span><span id="8" class="l"><a class="l" href="#8"> 8: </a><span class="php-keyword1">class</span> <a id="DBConfig" href="#DBConfig">DBConfig</a> {
</span><span id="9" class="l"><a class="l" href="#9"> 9: </a>
</span><span id="10" class="l"><a class="l" href="#10">10: </a> <span class="php-comment">/**
</span></span><span id="11" class="l"><a class="l" href="#11">11: </a><span class="php-comment"> * Address of the sqlserver
</span></span><span id="12" class="l"><a class="l" href="#12">12: </a><span class="php-comment"> */</span>
</span><span id="13" class="l"><a class="l" href="#13">13: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$sqlServer" href="#$sqlServer">$sqlServer</a></span> = <span class="php-quote">&quot;localhost&quot;</span>;
</span><span id="14" class="l"><a class="l" href="#14">14: </a>
</span><span id="15" class="l"><a class="l" href="#15">15: </a> <span class="php-comment">/**
</span></span><span id="16" class="l"><a class="l" href="#16">16: </a><span class="php-comment"> * name of the database
</span></span><span id="17" class="l"><a class="l" href="#17">17: </a><span class="php-comment"> */</span>
</span><span id="18" class="l"><a class="l" href="#18">18: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$sqlDBName" href="#$sqlDBName">$sqlDBName</a></span> = <span class="php-quote">&quot;geoDB&quot;</span>;
</span><span id="19" class="l"><a class="l" href="#19">19: </a>
</span><span id="20" class="l"><a class="l" href="#20">20: </a> <span class="php-comment">/**
</span></span><span id="21" class="l"><a class="l" href="#21">21: </a><span class="php-comment"> * user of the database
</span></span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-comment"> *
</span></span><span id="8" class="l"><a class="l" href="#8"> 8: </a><span class="php-comment"> * @author stubbfel
</span></span><span id="9" class="l"><a class="l" href="#9"> 9: </a><span class="php-comment"> * @since 20.06.2013
</span></span><span id="10" class="l"><a class="l" href="#10">10: </a><span class="php-comment"> */</span>
</span><span id="11" class="l"><a class="l" href="#11">11: </a><span class="php-keyword1">class</span> <a id="DBConfig" href="#DBConfig">DBConfig</a> {
</span><span id="12" class="l"><a class="l" href="#12">12: </a>
</span><span id="13" class="l"><a class="l" href="#13">13: </a> <span class="php-comment">/**
</span></span><span id="14" class="l"><a class="l" href="#14">14: </a><span class="php-comment"> * Address of the sqlserver
</span></span><span id="15" class="l"><a class="l" href="#15">15: </a><span class="php-comment"> * @var string
</span></span><span id="16" class="l"><a class="l" href="#16">16: </a><span class="php-comment"> */</span>
</span><span id="17" class="l"><a class="l" href="#17">17: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$sqlServer" href="#$sqlServer">$sqlServer</a></span> = <span class="php-quote">&quot;localhost&quot;</span>;
</span><span id="18" class="l"><a class="l" href="#18">18: </a>
</span><span id="19" class="l"><a class="l" href="#19">19: </a> <span class="php-comment">/**
</span></span><span id="20" class="l"><a class="l" href="#20">20: </a><span class="php-comment"> * name of the database
</span></span><span id="21" class="l"><a class="l" href="#21">21: </a><span class="php-comment"> * @var string
</span></span><span id="22" class="l"><a class="l" href="#22">22: </a><span class="php-comment"> */</span>
</span><span id="23" class="l"><a class="l" href="#23">23: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$sqlDBUser" href="#$sqlDBUser">$sqlDBUser</a></span> = <span class="php-quote">&quot;geoDB&quot;</span>;
</span><span id="23" class="l"><a class="l" href="#23">23: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$sqlDBName" href="#$sqlDBName">$sqlDBName</a></span> = <span class="php-quote">&quot;geoDB&quot;</span>;
</span><span id="24" class="l"><a class="l" href="#24">24: </a>
</span><span id="25" class="l"><a class="l" href="#25">25: </a> <span class="php-comment">/**
</span></span><span id="26" class="l"><a class="l" href="#26">26: </a><span class="php-comment"> * password of the database
</span></span><span id="27" class="l"><a class="l" href="#27">27: </a><span class="php-comment"> */</span>
</span><span id="28" class="l"><a class="l" href="#28">28: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$sqlDBUserPW" href="#$sqlDBUserPW">$sqlDBUserPW</a></span> = <span class="php-quote">&quot;VZrSAYvmcrntQ97b&quot;</span>;
</span><span id="29" class="l"><a class="l" href="#29">29: </a>
</span><span id="30" class="l"><a class="l" href="#30">30: </a>}
</span><span id="31" class="l"><a class="l" href="#31">31: </a>
</span><span id="32" class="l"><a class="l" href="#32">32: </a><span class="xlang">?&gt;</span>
</span><span id="33" class="l"><a class="l" href="#33">33: </a></span></code></pre>
</span></span><span id="26" class="l"><a class="l" href="#26">26: </a><span class="php-comment"> * user of the database
</span></span><span id="27" class="l"><a class="l" href="#27">27: </a><span class="php-comment"> * @var string
</span></span><span id="28" class="l"><a class="l" href="#28">28: </a><span class="php-comment"> */</span>
</span><span id="29" class="l"><a class="l" href="#29">29: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$sqlDBUser" href="#$sqlDBUser">$sqlDBUser</a></span> = <span class="php-quote">&quot;geoDB&quot;</span>;
</span><span id="30" class="l"><a class="l" href="#30">30: </a>
</span><span id="31" class="l"><a class="l" href="#31">31: </a> <span class="php-comment">/**
</span></span><span id="32" class="l"><a class="l" href="#32">32: </a><span class="php-comment"> * password of the database
</span></span><span id="33" class="l"><a class="l" href="#33">33: </a><span class="php-comment"> * @var string
</span></span><span id="34" class="l"><a class="l" href="#34">34: </a><span class="php-comment"> */</span>
</span><span id="35" class="l"><a class="l" href="#35">35: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$sqlDBUserPW" href="#$sqlDBUserPW">$sqlDBUserPW</a></span> = <span class="php-quote">&quot;VZrSAYvmcrntQ97b&quot;</span>;
</span><span id="36" class="l"><a class="l" href="#36">36: </a>
</span><span id="37" class="l"><a class="l" href="#37">37: </a>}
</span><span id="38" class="l"><a class="l" href="#38">38: </a>
</span><span id="39" class="l"><a class="l" href="#39">39: </a><span class="xlang">?&gt;</span>
</span><span id="40" class="l"><a class="l" href="#40">40: </a></span></code></pre>
<div id="footer">
GeoApi API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>

View File

@@ -0,0 +1,194 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<meta name="robots" content="noindex" />
<title>File database/PisSqlManager.php | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li><a href="namespace-api.html">api</a>
</li>
<li><a href="namespace-config.html">config</a>
</li>
<li class="active"><a href="namespace-database.html">database</a>
</li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
<li><a href="namespace-Slim.html">Slim<span></span></a>
<ul>
<li><a href="namespace-Slim.Exception.html">Exception</a>
</li>
<li><a href="namespace-Slim.Http.html">Http</a>
</li>
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li class="active"><a href="class-database.PisSqlManager.html">PisSqlManager</a></li>
<li><a href="class-database.PssSqlManager.html">PssSqlManager</a></li>
<li><a href="class-database.SpsSqlManager.html">SpsSqlManager</a></li>
<li><a href="class-database.SqlManager.html">SqlManager</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-database.html" title="Summary of database"><span>Namespace</span></a>
</li>
<li>
<a href="class-database.PisSqlManager.html" title="Summary of database\PisSqlManager"><span>Class</span></a>
</li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<pre><code><span id="1" class="l"><a class="l" href="#1"> 1: </a><span class="xlang">&lt;?php</span>
</span><span id="2" class="l"><a class="l" href="#2"> 2: </a>
</span><span id="3" class="l"><a class="l" href="#3"> 3: </a><span class="php-keyword1">namespace</span> database;
</span><span id="4" class="l"><a class="l" href="#4"> 4: </a>
</span><span id="5" class="l"><a class="l" href="#5"> 5: </a><span class="php-keyword1">include_once</span> <span class="php-quote">&quot;../../global.inc.php&quot;</span>;
</span><span id="6" class="l"><a class="l" href="#6"> 6: </a><span class="php-keyword1">include_once</span> PATH_UTILITTY . <span class="php-quote">&quot;/StringManager.php&quot;</span>;
</span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-keyword1">require_once</span> PATH_DATABASE . <span class="php-quote">&quot;/SqlManager.php&quot;</span>;
</span><span id="8" class="l"><a class="l" href="#8"> 8: </a>
</span><span id="9" class="l"><a class="l" href="#9"> 9: </a><span class="php-comment">/**
</span></span><span id="10" class="l"><a class="l" href="#10">10: </a><span class="php-comment"> * Description of PisSqlManager
</span></span><span id="11" class="l"><a class="l" href="#11">11: </a><span class="php-comment"> *
</span></span><span id="12" class="l"><a class="l" href="#12">12: </a><span class="php-comment"> * @author stubbfel
</span></span><span id="13" class="l"><a class="l" href="#13">13: </a><span class="php-comment"> * @since 20.06.2013
</span></span><span id="14" class="l"><a class="l" href="#14">14: </a><span class="php-comment"> */</span>
</span><span id="15" class="l"><a class="l" href="#15">15: </a><span class="php-keyword1">class</span> <a id="PisSqlManager" href="#PisSqlManager">PisSqlManager</a> <span class="php-keyword1">extends</span> SQLManager {
</span><span id="16" class="l"><a class="l" href="#16">16: </a>
</span><span id="17" class="l"><a class="l" href="#17">17: </a> <span class="php-comment">/**
</span></span><span id="18" class="l"><a class="l" href="#18">18: </a><span class="php-comment"> * Fieldname of the placeID
</span></span><span id="19" class="l"><a class="l" href="#19">19: </a><span class="php-comment"> * @var string
</span></span><span id="20" class="l"><a class="l" href="#20">20: </a><span class="php-comment"> */</span>
</span><span id="21" class="l"><a class="l" href="#21">21: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$placeId" href="#$placeId">$placeId</a></span> = <span class="php-quote">&quot;pid&quot;</span>;
</span><span id="22" class="l"><a class="l" href="#22">22: </a>
</span><span id="23" class="l"><a class="l" href="#23">23: </a> <span class="php-comment">/**
</span></span><span id="24" class="l"><a class="l" href="#24">24: </a><span class="php-comment"> * Fieldname of the name of the information
</span></span><span id="25" class="l"><a class="l" href="#25">25: </a><span class="php-comment"> * @var string
</span></span><span id="26" class="l"><a class="l" href="#26">26: </a><span class="php-comment"> */</span>
</span><span id="27" class="l"><a class="l" href="#27">27: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$infName" href="#$infName">$infName</a></span> = <span class="php-quote">&quot;iName&quot;</span>;
</span><span id="28" class="l"><a class="l" href="#28">28: </a>
</span><span id="29" class="l"><a class="l" href="#29">29: </a> <span class="php-comment">/**
</span></span><span id="30" class="l"><a class="l" href="#30">30: </a><span class="php-comment"> * Fieldname of the value of the information
</span></span><span id="31" class="l"><a class="l" href="#31">31: </a><span class="php-comment"> * @var string
</span></span><span id="32" class="l"><a class="l" href="#32">32: </a><span class="php-comment"> */</span>
</span><span id="33" class="l"><a class="l" href="#33">33: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$infValue" href="#$infValue">$infValue</a></span> = <span class="php-quote">&quot;iValue&quot;</span>;
</span><span id="34" class="l"><a class="l" href="#34">34: </a>
</span><span id="35" class="l"><a class="l" href="#35">35: </a> <span class="php-comment">/**
</span></span><span id="36" class="l"><a class="l" href="#36">36: </a><span class="php-comment"> * String for the select part of the query
</span></span><span id="37" class="l"><a class="l" href="#37">37: </a><span class="php-comment"> * @var string
</span></span><span id="38" class="l"><a class="l" href="#38">38: </a><span class="php-comment"> */</span>
</span><span id="39" class="l"><a class="l" href="#39">39: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$selectTerm" href="#$selectTerm">$selectTerm</a></span> = <span class="php-quote">&quot;SELECT pid, iName, iValue FROM pis WHERE &quot;</span>;
</span><span id="40" class="l"><a class="l" href="#40">40: </a>
</span><span id="41" class="l"><a class="l" href="#41">41: </a> <span class="php-comment">/**
</span></span><span id="42" class="l"><a class="l" href="#42">42: </a><span class="php-comment"> * String for the orderby part of the query
</span></span><span id="43" class="l"><a class="l" href="#43">43: </a><span class="php-comment"> * @var string
</span></span><span id="44" class="l"><a class="l" href="#44">44: </a><span class="php-comment"> */</span>
</span><span id="45" class="l"><a class="l" href="#45">45: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$orderByTerm" href="#$orderByTerm">$orderByTerm</a></span> = <span class="php-quote">&quot; ORDER BY pid, iName&quot;</span>;
</span><span id="46" class="l"><a class="l" href="#46">46: </a>
</span><span id="47" class="l"><a class="l" href="#47">47: </a> <span class="php-comment">/**
</span></span><span id="48" class="l"><a class="l" href="#48">48: </a><span class="php-comment"> * String for the pid part of the query
</span></span><span id="49" class="l"><a class="l" href="#49">49: </a><span class="php-comment"> * @var string
</span></span><span id="50" class="l"><a class="l" href="#50">50: </a><span class="php-comment"> */</span>
</span><span id="51" class="l"><a class="l" href="#51">51: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$pidTerm" href="#$pidTerm">$pidTerm</a></span> = <span class="php-quote">&quot;pid = &quot;</span>;
</span><span id="52" class="l"><a class="l" href="#52">52: </a>
</span><span id="53" class="l"><a class="l" href="#53">53: </a> <span class="php-comment">/**
</span></span><span id="54" class="l"><a class="l" href="#54">54: </a><span class="php-comment"> * Default-Constructor
</span></span><span id="55" class="l"><a class="l" href="#55">55: </a><span class="php-comment"> */</span>
</span><span id="56" class="l"><a class="l" href="#56">56: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___construct" href="#___construct">__construct</a>() {
</span><span id="57" class="l"><a class="l" href="#57">57: </a> parent::__construct();
</span><span id="58" class="l"><a class="l" href="#58">58: </a> }
</span><span id="59" class="l"><a class="l" href="#59">59: </a>
</span><span id="60" class="l"><a class="l" href="#60">60: </a> <span class="php-comment">/**
</span></span><span id="61" class="l"><a class="l" href="#61">61: </a><span class="php-comment"> * Default-DeConstructor
</span></span><span id="62" class="l"><a class="l" href="#62">62: </a><span class="php-comment"> */</span>
</span><span id="63" class="l"><a class="l" href="#63">63: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___destruct" href="#___destruct">__destruct</a>() {
</span><span id="64" class="l"><a class="l" href="#64">64: </a> parent::__destruct();
</span><span id="65" class="l"><a class="l" href="#65">65: </a> }
</span><span id="66" class="l"><a class="l" href="#66">66: </a>
</span><span id="67" class="l"><a class="l" href="#67">67: </a> <span class="php-comment">/**
</span></span><span id="68" class="l"><a class="l" href="#68">68: </a><span class="php-comment"> * Methods send an query for the pis-service
</span></span><span id="69" class="l"><a class="l" href="#69">69: </a><span class="php-comment"> * @param array $queryArgs
</span></span><span id="70" class="l"><a class="l" href="#70">70: </a><span class="php-comment"> * @return array [num][assoc]
</span></span><span id="71" class="l"><a class="l" href="#71">71: </a><span class="php-comment"> */</span>
</span><span id="72" class="l"><a class="l" href="#72">72: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_sendPisQuery" href="#_sendPisQuery">sendPisQuery</a>(<span class="php-var">$queryArgs</span>) {
</span><span id="73" class="l"><a class="l" href="#73">73: </a>
</span><span id="74" class="l"><a class="l" href="#74">74: </a> <span class="php-comment">// build query string</span>
</span><span id="75" class="l"><a class="l" href="#75">75: </a> <span class="php-var">$query</span> = <span class="php-var">$this</span>-&gt;selectTerm;
</span><span id="76" class="l"><a class="l" href="#76">76: </a> <span class="php-keyword1">if</span> (\utiliy\ArrayManager::validIntList(<span class="php-var">$queryArgs</span>)) {
</span><span id="77" class="l"><a class="l" href="#77">77: </a> <span class="php-var">$query</span> .= \utiliy\ArrayManager::toSqlWhereString(<span class="php-var">$queryArgs</span>, <span class="php-var">$this</span>-&gt;orTerm, <span class="php-var">$this</span>-&gt;pidTerm) . <span class="php-var">$this</span>-&gt;orderByTerm;
</span><span id="78" class="l"><a class="l" href="#78">78: </a> } <span class="php-keyword1">else</span> {
</span><span id="79" class="l"><a class="l" href="#79">79: </a> <span class="php-keyword1">return</span> <span class="php-keyword1">null</span>;
</span><span id="80" class="l"><a class="l" href="#80">80: </a> }
</span><span id="81" class="l"><a class="l" href="#81">81: </a>
</span><span id="82" class="l"><a class="l" href="#82">82: </a> <span class="php-comment">// send query</span>
</span><span id="83" class="l"><a class="l" href="#83">83: </a> <span class="php-keyword1">return</span> <span class="php-var">$this</span>-&gt;query(<span class="php-var">$query</span>);
</span><span id="84" class="l"><a class="l" href="#84">84: </a> }
</span><span id="85" class="l"><a class="l" href="#85">85: </a>}
</span><span id="86" class="l"><a class="l" href="#86">86: </a>
</span><span id="87" class="l"><a class="l" href="#87">87: </a><span class="xlang">?&gt;</span>
</span><span id="88" class="l"><a class="l" href="#88">88: </a></span></code></pre>
<div id="footer">
GeoApi API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,202 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<meta name="robots" content="noindex" />
<title>File database/PssSqlManager.php | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li><a href="namespace-api.html">api</a>
</li>
<li><a href="namespace-config.html">config</a>
</li>
<li class="active"><a href="namespace-database.html">database</a>
</li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
<li><a href="namespace-Slim.html">Slim<span></span></a>
<ul>
<li><a href="namespace-Slim.Exception.html">Exception</a>
</li>
<li><a href="namespace-Slim.Http.html">Http</a>
</li>
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-database.PisSqlManager.html">PisSqlManager</a></li>
<li class="active"><a href="class-database.PssSqlManager.html">PssSqlManager</a></li>
<li><a href="class-database.SpsSqlManager.html">SpsSqlManager</a></li>
<li><a href="class-database.SqlManager.html">SqlManager</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-database.html" title="Summary of database"><span>Namespace</span></a>
</li>
<li>
<a href="class-database.PssSqlManager.html" title="Summary of database\PssSqlManager"><span>Class</span></a>
</li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<pre><code><span id="1" class="l"><a class="l" href="#1"> 1: </a><span class="xlang">&lt;?php</span>
</span><span id="2" class="l"><a class="l" href="#2"> 2: </a>
</span><span id="3" class="l"><a class="l" href="#3"> 3: </a><span class="php-keyword1">namespace</span> database;
</span><span id="4" class="l"><a class="l" href="#4"> 4: </a>
</span><span id="5" class="l"><a class="l" href="#5"> 5: </a><span class="php-keyword1">include_once</span> <span class="php-quote">&quot;../../global.inc.php&quot;</span>;
</span><span id="6" class="l"><a class="l" href="#6"> 6: </a><span class="php-keyword1">include_once</span> PATH_UTILITTY . <span class="php-quote">&quot;/ArrayManager.php&quot;</span>;
</span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-keyword1">require_once</span> PATH_DATABASE . <span class="php-quote">&quot;/SqlManager.php&quot;</span>;
</span><span id="8" class="l"><a class="l" href="#8"> 8: </a>
</span><span id="9" class="l"><a class="l" href="#9"> 9: </a><span class="php-comment">/**
</span></span><span id="10" class="l"><a class="l" href="#10">10: </a><span class="php-comment"> * Description of PssSqlManager
</span></span><span id="11" class="l"><a class="l" href="#11">11: </a><span class="php-comment"> *
</span></span><span id="12" class="l"><a class="l" href="#12">12: </a><span class="php-comment"> * @author stubbfel
</span></span><span id="13" class="l"><a class="l" href="#13">13: </a><span class="php-comment"> * @since 20.06.2013
</span></span><span id="14" class="l"><a class="l" href="#14">14: </a><span class="php-comment"> */</span>
</span><span id="15" class="l"><a class="l" href="#15">15: </a><span class="php-keyword1">class</span> <a id="PssSqlManager" href="#PssSqlManager">PssSqlManager</a> <span class="php-keyword1">extends</span> SQLManager {
</span><span id="16" class="l"><a class="l" href="#16">16: </a>
</span><span id="17" class="l"><a class="l" href="#17">17: </a> <span class="php-comment">/**
</span></span><span id="18" class="l"><a class="l" href="#18">18: </a><span class="php-comment"> * Fieldname of the placeID
</span></span><span id="19" class="l"><a class="l" href="#19">19: </a><span class="php-comment"> * @var string
</span></span><span id="20" class="l"><a class="l" href="#20">20: </a><span class="php-comment"> */</span>
</span><span id="21" class="l"><a class="l" href="#21">21: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$placeId" href="#$placeId">$placeId</a></span> = <span class="php-quote">&quot;pid&quot;</span>;
</span><span id="22" class="l"><a class="l" href="#22">22: </a>
</span><span id="23" class="l"><a class="l" href="#23">23: </a> <span class="php-comment">/**
</span></span><span id="24" class="l"><a class="l" href="#24">24: </a><span class="php-comment"> * Fieldname of the name of the service
</span></span><span id="25" class="l"><a class="l" href="#25">25: </a><span class="php-comment"> * @var string
</span></span><span id="26" class="l"><a class="l" href="#26">26: </a><span class="php-comment"> */</span>
</span><span id="27" class="l"><a class="l" href="#27">27: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$srvName" href="#$srvName">$srvName</a></span> = <span class="php-quote">&quot;sName&quot;</span>;
</span><span id="28" class="l"><a class="l" href="#28">28: </a>
</span><span id="29" class="l"><a class="l" href="#29">29: </a> <span class="php-comment">/**
</span></span><span id="30" class="l"><a class="l" href="#30">30: </a><span class="php-comment"> * Fieldname of the value of the information
</span></span><span id="31" class="l"><a class="l" href="#31">31: </a><span class="php-comment"> * @var string
</span></span><span id="32" class="l"><a class="l" href="#32">32: </a><span class="php-comment"> */</span>
</span><span id="33" class="l"><a class="l" href="#33">33: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$srvSap" href="#$srvSap">$srvSap</a></span> = <span class="php-quote">&quot;sap&quot;</span>;
</span><span id="34" class="l"><a class="l" href="#34">34: </a>
</span><span id="35" class="l"><a class="l" href="#35">35: </a> <span class="php-comment">/**
</span></span><span id="36" class="l"><a class="l" href="#36">36: </a><span class="php-comment"> * Fieldname of the value of the information
</span></span><span id="37" class="l"><a class="l" href="#37">37: </a><span class="php-comment"> * @var string
</span></span><span id="38" class="l"><a class="l" href="#38">38: </a><span class="php-comment"> */</span>
</span><span id="39" class="l"><a class="l" href="#39">39: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$srvRequest" href="#$srvRequest">$srvRequest</a></span> = <span class="php-quote">&quot;request&quot;</span>;
</span><span id="40" class="l"><a class="l" href="#40">40: </a>
</span><span id="41" class="l"><a class="l" href="#41">41: </a> <span class="php-comment">/**
</span></span><span id="42" class="l"><a class="l" href="#42">42: </a><span class="php-comment"> * String for the select part of the query
</span></span><span id="43" class="l"><a class="l" href="#43">43: </a><span class="php-comment"> * @var string
</span></span><span id="44" class="l"><a class="l" href="#44">44: </a><span class="php-comment"> */</span>
</span><span id="45" class="l"><a class="l" href="#45">45: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$selectTerm" href="#$selectTerm">$selectTerm</a></span> = <span class="php-quote">&quot;SELECT pid, sName, sap, request FROM pss WHERE &quot;</span>;
</span><span id="46" class="l"><a class="l" href="#46">46: </a>
</span><span id="47" class="l"><a class="l" href="#47">47: </a> <span class="php-comment">/**
</span></span><span id="48" class="l"><a class="l" href="#48">48: </a><span class="php-comment"> * String for the orderby part of the query
</span></span><span id="49" class="l"><a class="l" href="#49">49: </a><span class="php-comment"> * @var string
</span></span><span id="50" class="l"><a class="l" href="#50">50: </a><span class="php-comment"> */</span>
</span><span id="51" class="l"><a class="l" href="#51">51: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$orderByTerm" href="#$orderByTerm">$orderByTerm</a></span> = <span class="php-quote">&quot; ORDER BY pid, sName&quot;</span>;
</span><span id="52" class="l"><a class="l" href="#52">52: </a>
</span><span id="53" class="l"><a class="l" href="#53">53: </a> <span class="php-comment">/**
</span></span><span id="54" class="l"><a class="l" href="#54">54: </a><span class="php-comment"> * String for the pid part of the query
</span></span><span id="55" class="l"><a class="l" href="#55">55: </a><span class="php-comment"> * @var string
</span></span><span id="56" class="l"><a class="l" href="#56">56: </a><span class="php-comment"> */</span>
</span><span id="57" class="l"><a class="l" href="#57">57: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$pidTerm" href="#$pidTerm">$pidTerm</a></span> = <span class="php-quote">&quot;pid = &quot;</span>;
</span><span id="58" class="l"><a class="l" href="#58">58: </a>
</span><span id="59" class="l"><a class="l" href="#59">59: </a> <span class="php-comment">/**
</span></span><span id="60" class="l"><a class="l" href="#60">60: </a><span class="php-comment"> * Default-Constructor
</span></span><span id="61" class="l"><a class="l" href="#61">61: </a><span class="php-comment"> */</span>
</span><span id="62" class="l"><a class="l" href="#62">62: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___construct" href="#___construct">__construct</a>() {
</span><span id="63" class="l"><a class="l" href="#63">63: </a> parent::__construct();
</span><span id="64" class="l"><a class="l" href="#64">64: </a> }
</span><span id="65" class="l"><a class="l" href="#65">65: </a>
</span><span id="66" class="l"><a class="l" href="#66">66: </a> <span class="php-comment">/**
</span></span><span id="67" class="l"><a class="l" href="#67">67: </a><span class="php-comment"> * Default-DeConstructor
</span></span><span id="68" class="l"><a class="l" href="#68">68: </a><span class="php-comment"> */</span>
</span><span id="69" class="l"><a class="l" href="#69">69: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___destruct" href="#___destruct">__destruct</a>() {
</span><span id="70" class="l"><a class="l" href="#70">70: </a> parent::__destruct();
</span><span id="71" class="l"><a class="l" href="#71">71: </a> }
</span><span id="72" class="l"><a class="l" href="#72">72: </a>
</span><span id="73" class="l"><a class="l" href="#73">73: </a> <span class="php-comment">/**
</span></span><span id="74" class="l"><a class="l" href="#74">74: </a><span class="php-comment"> * Methods send an query for the pis-service
</span></span><span id="75" class="l"><a class="l" href="#75">75: </a><span class="php-comment"> * @param array $queryArgs
</span></span><span id="76" class="l"><a class="l" href="#76">76: </a><span class="php-comment"> * @return array [num][assoc]
</span></span><span id="77" class="l"><a class="l" href="#77">77: </a><span class="php-comment"> */</span>
</span><span id="78" class="l"><a class="l" href="#78">78: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_sendPssQuery" href="#_sendPssQuery">sendPssQuery</a>(<span class="php-var">$queryArgs</span>) {
</span><span id="79" class="l"><a class="l" href="#79">79: </a>
</span><span id="80" class="l"><a class="l" href="#80">80: </a> <span class="php-comment">// build query string</span>
</span><span id="81" class="l"><a class="l" href="#81">81: </a> <span class="php-var">$query</span> = <span class="php-var">$this</span>-&gt;selectTerm;
</span><span id="82" class="l"><a class="l" href="#82">82: </a>
</span><span id="83" class="l"><a class="l" href="#83">83: </a> <span class="php-keyword1">if</span> (\utiliy\ArrayManager::validIntList(<span class="php-var">$queryArgs</span>)) {
</span><span id="84" class="l"><a class="l" href="#84">84: </a> <span class="php-var">$query</span> .= \utiliy\ArrayManager::toSqlWhereString(<span class="php-var">$queryArgs</span>, <span class="php-var">$this</span>-&gt;orTerm, <span class="php-var">$this</span>-&gt;pidTerm) . <span class="php-var">$this</span>-&gt;orderByTerm;
</span><span id="85" class="l"><a class="l" href="#85">85: </a> } <span class="php-keyword1">else</span> {
</span><span id="86" class="l"><a class="l" href="#86">86: </a> <span class="php-keyword1">return</span> <span class="php-keyword1">null</span>;
</span><span id="87" class="l"><a class="l" href="#87">87: </a> };
</span><span id="88" class="l"><a class="l" href="#88">88: </a>
</span><span id="89" class="l"><a class="l" href="#89">89: </a> <span class="php-comment">// send query</span>
</span><span id="90" class="l"><a class="l" href="#90">90: </a> <span class="php-keyword1">return</span> <span class="php-var">$this</span>-&gt;query(<span class="php-var">$query</span>);
</span><span id="91" class="l"><a class="l" href="#91">91: </a> }
</span><span id="92" class="l"><a class="l" href="#92">92: </a>
</span><span id="93" class="l"><a class="l" href="#93">93: </a>}
</span><span id="94" class="l"><a class="l" href="#94">94: </a>
</span><span id="95" class="l"><a class="l" href="#95">95: </a><span class="xlang">?&gt;</span>
</span><span id="96" class="l"><a class="l" href="#96">96: </a></span></code></pre>
<div id="footer">
GeoApi API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@@ -8,7 +8,7 @@
<title>File database/SpsSqlManager.php | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -39,6 +39,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>
@@ -48,6 +50,8 @@
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-database.PisSqlManager.html">PisSqlManager</a></li>
<li><a href="class-database.PssSqlManager.html">PssSqlManager</a></li>
<li class="active"><a href="class-database.SpsSqlManager.html">SpsSqlManager</a></li>
<li><a href="class-database.SqlManager.html">SqlManager</a></li>
</ul>
@@ -97,46 +101,232 @@
</span><span id="3" class="l"><a class="l" href="#3"> 3: </a><span class="php-keyword1">namespace</span> database;
</span><span id="4" class="l"><a class="l" href="#4"> 4: </a>
</span><span id="5" class="l"><a class="l" href="#5"> 5: </a><span class="php-keyword1">include_once</span> <span class="php-quote">&quot;../../global.inc.php&quot;</span>;
</span><span id="6" class="l"><a class="l" href="#6"> 6: </a><span class="php-keyword1">include_once</span> PATH_DATABASE . <span class="php-quote">&quot;/SpsSqlManager.php&quot;</span>;
</span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-keyword1">include_once</span> PATH_DATABASE . <span class="php-quote">&quot;/SqlManager.php&quot;</span>;
</span><span id="6" class="l"><a class="l" href="#6"> 6: </a><span class="php-keyword1">include_once</span> PATH_UTILITTY . <span class="php-quote">&quot;/StringManager.php&quot;</span>;
</span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-keyword1">require_once</span> PATH_DATABASE . <span class="php-quote">&quot;/SqlManager.php&quot;</span>;
</span><span id="8" class="l"><a class="l" href="#8"> 8: </a>
</span><span id="9" class="l"><a class="l" href="#9"> 9: </a><span class="php-comment">/**
</span></span><span id="10" class="l"><a class="l" href="#10">10: </a><span class="php-comment"> * Description of SpsSqlManager
</span></span><span id="11" class="l"><a class="l" href="#11">11: </a><span class="php-comment"> *
</span></span><span id="12" class="l"><a class="l" href="#12">12: </a><span class="php-comment"> * @author stubbfel
</span></span><span id="13" class="l"><a class="l" href="#13">13: </a><span class="php-comment"> * @since 20.06.2013
</span></span><span id="14" class="l"><a class="l" href="#14">14: </a><span class="php-comment"> */</span>
</span><span id="15" class="l"><a class="l" href="#15">15: </a><span class="php-keyword1">class</span> <a id="SpsSqlManager" href="#SpsSqlManager">SpsSqlManager</a> <span class="php-keyword1">extends</span> SQLManager {
</span><span id="16" class="l"><a class="l" href="#16">16: </a>
</span><span id="17" class="l"><a class="l" href="#17">17: </a> <span class="php-comment">/**
</span></span><span id="18" class="l"><a class="l" href="#18">18: </a><span class="php-comment"> * Default-Constructor
</span></span><span id="19" class="l"><a class="l" href="#19">19: </a><span class="php-comment"> */</span>
</span><span id="20" class="l"><a class="l" href="#20">20: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___construct" href="#___construct">__construct</a>() {
</span><span id="21" class="l"><a class="l" href="#21">21: </a> parent::__construct();
</span><span id="22" class="l"><a class="l" href="#22">22: </a> }
</span><span id="23" class="l"><a class="l" href="#23">23: </a>
</span><span id="24" class="l"><a class="l" href="#24">24: </a> <span class="php-comment">/**
</span></span><span id="25" class="l"><a class="l" href="#25">25: </a><span class="php-comment"> * Default-DEConstructor
</span></span><span id="26" class="l"><a class="l" href="#26">26: </a><span class="php-comment"> */</span>
</span><span id="27" class="l"><a class="l" href="#27">27: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___destruct" href="#___destruct">__destruct</a>() {
</span><span id="28" class="l"><a class="l" href="#28">28: </a> parent::__destruct();
</span><span id="29" class="l"><a class="l" href="#29">29: </a> }
</span><span id="30" class="l"><a class="l" href="#30">30: </a>
</span><span id="31" class="l"><a class="l" href="#31">31: </a> <span class="php-comment">/**
</span></span><span id="32" class="l"><a class="l" href="#32">32: </a><span class="php-comment"> * Methods send an query for the sps-service
</span></span><span id="33" class="l"><a class="l" href="#33">33: </a><span class="php-comment"> * @param array $queryArgs
</span></span><span id="34" class="l"><a class="l" href="#34">34: </a><span class="php-comment"> * @return array [num][assoc]
</span></span><span id="35" class="l"><a class="l" href="#35">35: </a><span class="php-comment"> */</span>
</span><span id="36" class="l"><a class="l" href="#36">36: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_sendSpsQuery" href="#_sendSpsQuery">sendSpsQuery</a>(<span class="php-var">$queryArgs</span> = <span class="php-keyword1">array</span>()) {
</span><span id="37" class="l"><a class="l" href="#37">37: </a> <span class="php-comment">// TODO Input validitaion</span>
</span><span id="38" class="l"><a class="l" href="#38">38: </a> <span class="php-var">$alias</span> = <span class="php-var">$queryArgs</span>[<span class="php-quote">&quot;alias&quot;</span>];
</span><span id="39" class="l"><a class="l" href="#39">39: </a> <span class="php-keyword1">return</span> <span class="php-var">$this</span>-&gt;query(<span class="php-quote">&quot;SELECT * FROM sps Where alias = \&quot;</span><span class="php-var">$alias</span><span class="php-quote">\&quot;&quot;</span>);
</span><span id="40" class="l"><a class="l" href="#40">40: </a> }
</span><span id="41" class="l"><a class="l" href="#41">41: </a>
</span><span id="42" class="l"><a class="l" href="#42">42: </a>}
</span><span id="43" class="l"><a class="l" href="#43">43: </a>
</span><span id="44" class="l"><a class="l" href="#44">44: </a><span class="xlang">?&gt;</span>
</span><span id="45" class="l"><a class="l" href="#45">45: </a></span></code></pre>
</span></span><span id="10" class="l"><a class="l" href="#10"> 10: </a><span class="php-comment"> * Description of SpsSqlManager
</span></span><span id="11" class="l"><a class="l" href="#11"> 11: </a><span class="php-comment"> *
</span></span><span id="12" class="l"><a class="l" href="#12"> 12: </a><span class="php-comment"> * @author stubbfel
</span></span><span id="13" class="l"><a class="l" href="#13"> 13: </a><span class="php-comment"> * @since 20.06.2013
</span></span><span id="14" class="l"><a class="l" href="#14"> 14: </a><span class="php-comment"> */</span>
</span><span id="15" class="l"><a class="l" href="#15"> 15: </a><span class="php-keyword1">class</span> <a id="SpsSqlManager" href="#SpsSqlManager">SpsSqlManager</a> <span class="php-keyword1">extends</span> SQLManager {
</span><span id="16" class="l"><a class="l" href="#16"> 16: </a>
</span><span id="17" class="l"><a class="l" href="#17"> 17: </a> <span class="php-comment">/**
</span></span><span id="18" class="l"><a class="l" href="#18"> 18: </a><span class="php-comment"> * Fieldname of the placeID
</span></span><span id="19" class="l"><a class="l" href="#19"> 19: </a><span class="php-comment"> * @var string
</span></span><span id="20" class="l"><a class="l" href="#20"> 20: </a><span class="php-comment"> */</span>
</span><span id="21" class="l"><a class="l" href="#21"> 21: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$placeId" href="#$placeId">$placeId</a></span> = <span class="php-quote">&quot;id&quot;</span>;
</span><span id="22" class="l"><a class="l" href="#22"> 22: </a>
</span><span id="23" class="l"><a class="l" href="#23"> 23: </a> <span class="php-comment">/**
</span></span><span id="24" class="l"><a class="l" href="#24"> 24: </a><span class="php-comment"> * Fieldname of the parendId
</span></span><span id="25" class="l"><a class="l" href="#25"> 25: </a><span class="php-comment"> * @var string
</span></span><span id="26" class="l"><a class="l" href="#26"> 26: </a><span class="php-comment"> */</span>
</span><span id="27" class="l"><a class="l" href="#27"> 27: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$parentId" href="#$parentId">$parentId</a></span> = <span class="php-quote">&quot;parent&quot;</span>;
</span><span id="28" class="l"><a class="l" href="#28"> 28: </a>
</span><span id="29" class="l"><a class="l" href="#29"> 29: </a> <span class="php-comment">/**
</span></span><span id="30" class="l"><a class="l" href="#30"> 30: </a><span class="php-comment"> * String for the select part of the query
</span></span><span id="31" class="l"><a class="l" href="#31"> 31: </a><span class="php-comment"> * @var string
</span></span><span id="32" class="l"><a class="l" href="#32"> 32: </a><span class="php-comment"> */</span>
</span><span id="33" class="l"><a class="l" href="#33"> 33: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$selectTerm" href="#$selectTerm">$selectTerm</a></span> = <span class="php-quote">&quot;SELECT DISTINCT id, parent FROM sps WHERE &quot;</span>;
</span><span id="34" class="l"><a class="l" href="#34"> 34: </a>
</span><span id="35" class="l"><a class="l" href="#35"> 35: </a> <span class="php-comment">/**
</span></span><span id="36" class="l"><a class="l" href="#36"> 36: </a><span class="php-comment"> * String for the alias part of the query
</span></span><span id="37" class="l"><a class="l" href="#37"> 37: </a><span class="php-comment"> * @var string
</span></span><span id="38" class="l"><a class="l" href="#38"> 38: </a><span class="php-comment"> */</span>
</span><span id="39" class="l"><a class="l" href="#39"> 39: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$aliasTerm" href="#$aliasTerm">$aliasTerm</a></span> = <span class="php-quote">&quot;alias = &quot;</span>;
</span><span id="40" class="l"><a class="l" href="#40"> 40: </a>
</span><span id="41" class="l"><a class="l" href="#41"> 41: </a> <span class="php-comment">/**
</span></span><span id="42" class="l"><a class="l" href="#42"> 42: </a><span class="php-comment"> * String for the did part of the query
</span></span><span id="43" class="l"><a class="l" href="#43"> 43: </a><span class="php-comment"> * @var string
</span></span><span id="44" class="l"><a class="l" href="#44"> 44: </a><span class="php-comment"> */</span>
</span><span id="45" class="l"><a class="l" href="#45"> 45: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$domainTerm" href="#$domainTerm">$domainTerm</a></span> = <span class="php-quote">&quot;did = &quot;</span>;
</span><span id="46" class="l"><a class="l" href="#46"> 46: </a>
</span><span id="47" class="l"><a class="l" href="#47"> 47: </a> <span class="php-comment">/**
</span></span><span id="48" class="l"><a class="l" href="#48"> 48: </a><span class="php-comment"> * String for the dNamet part of the query
</span></span><span id="49" class="l"><a class="l" href="#49"> 49: </a><span class="php-comment"> * @var string
</span></span><span id="50" class="l"><a class="l" href="#50"> 50: </a><span class="php-comment"> */</span>
</span><span id="51" class="l"><a class="l" href="#51"> 51: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$domainNameTerm" href="#$domainNameTerm">$domainNameTerm</a></span> = <span class="php-quote">&quot;dName = &quot;</span>;
</span><span id="52" class="l"><a class="l" href="#52"> 52: </a>
</span><span id="53" class="l"><a class="l" href="#53"> 53: </a> <span class="php-comment">/**
</span></span><span id="54" class="l"><a class="l" href="#54"> 54: </a><span class="php-comment"> * first part of intersect-function
</span></span><span id="55" class="l"><a class="l" href="#55"> 55: </a><span class="php-comment"> * @var string
</span></span><span id="56" class="l"><a class="l" href="#56"> 56: </a><span class="php-comment"> */</span>
</span><span id="57" class="l"><a class="l" href="#57"> 57: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$interSectTermStart" href="#$interSectTermStart">$interSectTermStart</a></span> = <span class="php-quote">&quot;Intersects(&quot;</span>;
</span><span id="58" class="l"><a class="l" href="#58"> 58: </a>
</span><span id="59" class="l"><a class="l" href="#59"> 59: </a> <span class="php-comment">/**
</span></span><span id="60" class="l"><a class="l" href="#60"> 60: </a><span class="php-comment"> * last part of intersect-function
</span></span><span id="61" class="l"><a class="l" href="#61"> 61: </a><span class="php-comment"> * @var string
</span></span><span id="62" class="l"><a class="l" href="#62"> 62: </a><span class="php-comment"> */</span>
</span><span id="63" class="l"><a class="l" href="#63"> 63: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$interSectTermEnd" href="#$interSectTermEnd">$interSectTermEnd</a></span> = <span class="php-quote">&quot;),plan)&quot;</span>;
</span><span id="64" class="l"><a class="l" href="#64"> 64: </a>
</span><span id="65" class="l"><a class="l" href="#65"> 65: </a> <span class="php-comment">/**
</span></span><span id="66" class="l"><a class="l" href="#66"> 66: </a><span class="php-comment"> * first part of GeomFromText('Polygon-function
</span></span><span id="67" class="l"><a class="l" href="#67"> 67: </a><span class="php-comment"> * @var string
</span></span><span id="68" class="l"><a class="l" href="#68"> 68: </a><span class="php-comment"> */</span>
</span><span id="69" class="l"><a class="l" href="#69"> 69: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$polyStartStr" href="#$polyStartStr">$polyStartStr</a></span> = <span class="php-quote">&quot;GeomFromText('Polygon((&quot;</span>;
</span><span id="70" class="l"><a class="l" href="#70"> 70: </a>
</span><span id="71" class="l"><a class="l" href="#71"> 71: </a> <span class="php-comment">/**
</span></span><span id="72" class="l"><a class="l" href="#72"> 72: </a><span class="php-comment"> * last part of GeomFromText('Polygon-function
</span></span><span id="73" class="l"><a class="l" href="#73"> 73: </a><span class="php-comment"> * @var string
</span></span><span id="74" class="l"><a class="l" href="#74"> 74: </a><span class="php-comment"> */</span>
</span><span id="75" class="l"><a class="l" href="#75"> 75: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$polyEndStr" href="#$polyEndStr">$polyEndStr</a></span> = <span class="php-quote">&quot;))'&quot;</span>;
</span><span id="76" class="l"><a class="l" href="#76"> 76: </a>
</span><span id="77" class="l"><a class="l" href="#77"> 77: </a> <span class="php-comment">/**
</span></span><span id="78" class="l"><a class="l" href="#78"> 78: </a><span class="php-comment"> * maximium length of the value-string for an aliasname
</span></span><span id="79" class="l"><a class="l" href="#79"> 79: </a><span class="php-comment"> * @var int
</span></span><span id="80" class="l"><a class="l" href="#80"> 80: </a><span class="php-comment"> */</span>
</span><span id="81" class="l"><a class="l" href="#81"> 81: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$aliasMaxLenght" href="#$aliasMaxLenght">$aliasMaxLenght</a></span> = <span class="php-num">32</span>;
</span><span id="82" class="l"><a class="l" href="#82"> 82: </a>
</span><span id="83" class="l"><a class="l" href="#83"> 83: </a> <span class="php-comment">/**
</span></span><span id="84" class="l"><a class="l" href="#84"> 84: </a><span class="php-comment"> * maximium length of the value-string for a domainname
</span></span><span id="85" class="l"><a class="l" href="#85"> 85: </a><span class="php-comment"> * @var int
</span></span><span id="86" class="l"><a class="l" href="#86"> 86: </a><span class="php-comment"> */</span>
</span><span id="87" class="l"><a class="l" href="#87"> 87: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$domainMaxLenght" href="#$domainMaxLenght">$domainMaxLenght</a></span> = <span class="php-num">32</span>;
</span><span id="88" class="l"><a class="l" href="#88"> 88: </a>
</span><span id="89" class="l"><a class="l" href="#89"> 89: </a> <span class="php-comment">/**
</span></span><span id="90" class="l"><a class="l" href="#90"> 90: </a><span class="php-comment"> * Default-Constructor
</span></span><span id="91" class="l"><a class="l" href="#91"> 91: </a><span class="php-comment"> */</span>
</span><span id="92" class="l"><a class="l" href="#92"> 92: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___construct" href="#___construct">__construct</a>() {
</span><span id="93" class="l"><a class="l" href="#93"> 93: </a> parent::__construct();
</span><span id="94" class="l"><a class="l" href="#94"> 94: </a> }
</span><span id="95" class="l"><a class="l" href="#95"> 95: </a>
</span><span id="96" class="l"><a class="l" href="#96"> 96: </a> <span class="php-comment">/**
</span></span><span id="97" class="l"><a class="l" href="#97"> 97: </a><span class="php-comment"> * Default-DEConstructor
</span></span><span id="98" class="l"><a class="l" href="#98"> 98: </a><span class="php-comment"> */</span>
</span><span id="99" class="l"><a class="l" href="#99"> 99: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___destruct" href="#___destruct">__destruct</a>() {
</span><span id="100" class="l"><a class="l" href="#100">100: </a> parent::__destruct();
</span><span id="101" class="l"><a class="l" href="#101">101: </a> }
</span><span id="102" class="l"><a class="l" href="#102">102: </a>
</span><span id="103" class="l"><a class="l" href="#103">103: </a> <span class="php-comment">/**
</span></span><span id="104" class="l"><a class="l" href="#104">104: </a><span class="php-comment"> * Methods send an query for the sps-service depends of alias
</span></span><span id="105" class="l"><a class="l" href="#105">105: </a><span class="php-comment"> * @param array $queryArgs
</span></span><span id="106" class="l"><a class="l" href="#106">106: </a><span class="php-comment"> * @return array [num][assoc]
</span></span><span id="107" class="l"><a class="l" href="#107">107: </a><span class="php-comment"> */</span>
</span><span id="108" class="l"><a class="l" href="#108">108: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_sendSpsAliasQuery" href="#_sendSpsAliasQuery">sendSpsAliasQuery</a>(<span class="php-var">$queryArgs</span>) {
</span><span id="109" class="l"><a class="l" href="#109">109: </a>
</span><span id="110" class="l"><a class="l" href="#110">110: </a> <span class="php-comment">// check arguments of the query</span>
</span><span id="111" class="l"><a class="l" href="#111">111: </a> <span class="php-keyword1">if</span> (<span class="php-keyword2">array_key_exists</span>(\api\SpsApi::<span class="php-var">$keyAlias</span>, <span class="php-var">$queryArgs</span>)) {
</span><span id="112" class="l"><a class="l" href="#112">112: </a> <span class="php-var">$alias</span> = <span class="php-var">$queryArgs</span>[\api\SpsApi::<span class="php-var">$keyAlias</span>];
</span><span id="113" class="l"><a class="l" href="#113">113: </a> } <span class="php-keyword1">else</span> {
</span><span id="114" class="l"><a class="l" href="#114">114: </a> <span class="php-keyword1">return</span> <span class="php-keyword1">null</span>;
</span><span id="115" class="l"><a class="l" href="#115">115: </a> }
</span><span id="116" class="l"><a class="l" href="#116">116: </a>
</span><span id="117" class="l"><a class="l" href="#117">117: </a> <span class="php-var">$domain</span> = <span class="php-keyword1">null</span>;
</span><span id="118" class="l"><a class="l" href="#118">118: </a> <span class="php-keyword1">if</span> (<span class="php-keyword2">array_key_exists</span>(\api\SpsApi::<span class="php-var">$keyDomain</span>, <span class="php-var">$queryArgs</span>)) {
</span><span id="119" class="l"><a class="l" href="#119">119: </a> <span class="php-var">$domain</span> = <span class="php-var">$queryArgs</span>[\api\SpsApi::<span class="php-var">$keyDomain</span>];
</span><span id="120" class="l"><a class="l" href="#120">120: </a> }
</span><span id="121" class="l"><a class="l" href="#121">121: </a>
</span><span id="122" class="l"><a class="l" href="#122">122: </a> <span class="php-comment">// build query string</span>
</span><span id="123" class="l"><a class="l" href="#123">123: </a> <span class="php-var">$query</span> = <span class="php-var">$this</span>-&gt;selectTerm;
</span><span id="124" class="l"><a class="l" href="#124">124: </a> <span class="php-keyword1">if</span> (<span class="php-var">$this</span>-&gt;validAliasString(<span class="php-var">$alias</span>)) {
</span><span id="125" class="l"><a class="l" href="#125">125: </a> <span class="php-var">$query</span> .= <span class="php-var">$this</span>-&gt;aliasTerm . <span class="php-var">$this</span>-&gt;quoteTerm . <span class="php-var">$alias</span> . <span class="php-var">$this</span>-&gt;quoteTerm . <span class="php-var">$this</span>-&gt;addDomainTerm(<span class="php-var">$domain</span>);
</span><span id="126" class="l"><a class="l" href="#126">126: </a> } <span class="php-keyword1">else</span> {
</span><span id="127" class="l"><a class="l" href="#127">127: </a> <span class="php-keyword1">return</span> <span class="php-keyword1">null</span>;
</span><span id="128" class="l"><a class="l" href="#128">128: </a> }
</span><span id="129" class="l"><a class="l" href="#129">129: </a>
</span><span id="130" class="l"><a class="l" href="#130">130: </a> <span class="php-comment">// send query</span>
</span><span id="131" class="l"><a class="l" href="#131">131: </a> <span class="php-keyword1">return</span> <span class="php-var">$this</span>-&gt;query(<span class="php-var">$query</span>);
</span><span id="132" class="l"><a class="l" href="#132">132: </a> }
</span><span id="133" class="l"><a class="l" href="#133">133: </a>
</span><span id="134" class="l"><a class="l" href="#134">134: </a> <span class="php-comment">/**
</span></span><span id="135" class="l"><a class="l" href="#135">135: </a><span class="php-comment"> * Methods send an query for the sps-service depends of coordinates
</span></span><span id="136" class="l"><a class="l" href="#136">136: </a><span class="php-comment"> * @param array $queryArgs
</span></span><span id="137" class="l"><a class="l" href="#137">137: </a><span class="php-comment"> * @return array [num][assoc]
</span></span><span id="138" class="l"><a class="l" href="#138">138: </a><span class="php-comment"> */</span>
</span><span id="139" class="l"><a class="l" href="#139">139: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_sendSpsCoordinateQuery" href="#_sendSpsCoordinateQuery">sendSpsCoordinateQuery</a>(<span class="php-var">$queryArgs</span>) {
</span><span id="140" class="l"><a class="l" href="#140">140: </a>
</span><span id="141" class="l"><a class="l" href="#141">141: </a> <span class="php-comment">// check arguments of the query</span>
</span><span id="142" class="l"><a class="l" href="#142">142: </a> <span class="php-keyword1">if</span> (<span class="php-keyword2">array_key_exists</span>(\api\SpsApi::<span class="php-var">$keyPoly</span>, <span class="php-var">$queryArgs</span>)) {
</span><span id="143" class="l"><a class="l" href="#143">143: </a> <span class="php-var">$poly</span> = <span class="php-var">$queryArgs</span>[\api\SpsApi::<span class="php-var">$keyPoly</span>];
</span><span id="144" class="l"><a class="l" href="#144">144: </a> } <span class="php-keyword1">else</span> {
</span><span id="145" class="l"><a class="l" href="#145">145: </a> <span class="php-keyword1">return</span> <span class="php-keyword1">null</span>;
</span><span id="146" class="l"><a class="l" href="#146">146: </a> }
</span><span id="147" class="l"><a class="l" href="#147">147: </a>
</span><span id="148" class="l"><a class="l" href="#148">148: </a> <span class="php-var">$domain</span> = <span class="php-keyword1">null</span>;
</span><span id="149" class="l"><a class="l" href="#149">149: </a> <span class="php-keyword1">if</span> (<span class="php-keyword2">array_key_exists</span>(\api\SpsApi::<span class="php-var">$keyDomain</span>, <span class="php-var">$queryArgs</span>)) {
</span><span id="150" class="l"><a class="l" href="#150">150: </a> <span class="php-var">$domain</span> = <span class="php-var">$queryArgs</span>[\api\SpsApi::<span class="php-var">$keyDomain</span>];
</span><span id="151" class="l"><a class="l" href="#151">151: </a> }
</span><span id="152" class="l"><a class="l" href="#152">152: </a>
</span><span id="153" class="l"><a class="l" href="#153">153: </a> <span class="php-comment">// build query string</span>
</span><span id="154" class="l"><a class="l" href="#154">154: </a> <span class="php-keyword1">if</span> (<span class="php-var">$this</span>-&gt;validPolyString(<span class="php-var">$poly</span>)) {
</span><span id="155" class="l"><a class="l" href="#155">155: </a> <span class="php-var">$query</span> = <span class="php-var">$this</span>-&gt;selectTerm . <span class="php-var">$this</span>-&gt;interSectTermStart . <span class="php-var">$poly</span> . <span class="php-var">$this</span>-&gt;interSectTermEnd . <span class="php-var">$this</span>-&gt;addDomainTerm(<span class="php-var">$domain</span>);
</span><span id="156" class="l"><a class="l" href="#156">156: </a> } <span class="php-keyword1">else</span> {
</span><span id="157" class="l"><a class="l" href="#157">157: </a> <span class="php-keyword1">return</span> <span class="php-keyword1">null</span>;
</span><span id="158" class="l"><a class="l" href="#158">158: </a> }
</span><span id="159" class="l"><a class="l" href="#159">159: </a>
</span><span id="160" class="l"><a class="l" href="#160">160: </a> <span class="php-comment">// send query</span>
</span><span id="161" class="l"><a class="l" href="#161">161: </a> <span class="php-keyword1">return</span> <span class="php-var">$this</span>-&gt;query(<span class="php-var">$query</span>);
</span><span id="162" class="l"><a class="l" href="#162">162: </a> }
</span><span id="163" class="l"><a class="l" href="#163">163: </a>
</span><span id="164" class="l"><a class="l" href="#164">164: </a> <span class="php-comment">/**
</span></span><span id="165" class="l"><a class="l" href="#165">165: </a><span class="php-comment"> * Method create the correct domain part depends of $domain. If it is a number =&gt; did
</span></span><span id="166" class="l"><a class="l" href="#166">166: </a><span class="php-comment"> * otherwise =&gt; dName
</span></span><span id="167" class="l"><a class="l" href="#167">167: </a><span class="php-comment"> * @param string $domain
</span></span><span id="168" class="l"><a class="l" href="#168">168: </a><span class="php-comment"> * @return string
</span></span><span id="169" class="l"><a class="l" href="#169">169: </a><span class="php-comment"> */</span>
</span><span id="170" class="l"><a class="l" href="#170">170: </a> <span class="php-keyword1">private</span> <span class="php-keyword1">function</span> <a id="_addDomainTerm" href="#_addDomainTerm">addDomainTerm</a>(<span class="php-var">$domain</span>) {
</span><span id="171" class="l"><a class="l" href="#171">171: </a> <span class="php-var">$result</span> = <span class="php-keyword1">null</span>;
</span><span id="172" class="l"><a class="l" href="#172">172: </a> <span class="php-keyword1">if</span> (<span class="php-var">$domain</span> != <span class="php-keyword1">null</span> &amp;&amp; <span class="php-var">$this</span>-&gt;validDomainString(<span class="php-var">$domain</span>)) {
</span><span id="173" class="l"><a class="l" href="#173">173: </a> <span class="php-keyword1">if</span> (<span class="php-var">$this</span>-&gt;isDid(<span class="php-var">$domain</span>)) {
</span><span id="174" class="l"><a class="l" href="#174">174: </a> <span class="php-var">$result</span> .= <span class="php-var">$this</span>-&gt;andTerm . <span class="php-var">$this</span>-&gt;domainTerm . <span class="php-var">$this</span>-&gt;quoteTerm . <span class="php-var">$domain</span> . <span class="php-var">$this</span>-&gt;quoteTerm;
</span><span id="175" class="l"><a class="l" href="#175">175: </a> } <span class="php-keyword1">else</span> {
</span><span id="176" class="l"><a class="l" href="#176">176: </a> <span class="php-var">$result</span> .= <span class="php-var">$this</span>-&gt;andTerm . <span class="php-var">$this</span>-&gt;domainNameTerm . <span class="php-var">$this</span>-&gt;quoteTerm . <span class="php-var">$domain</span> . <span class="php-var">$this</span>-&gt;quoteTerm;
</span><span id="177" class="l"><a class="l" href="#177">177: </a> }
</span><span id="178" class="l"><a class="l" href="#178">178: </a> }
</span><span id="179" class="l"><a class="l" href="#179">179: </a> <span class="php-keyword1">return</span> <span class="php-var">$result</span>;
</span><span id="180" class="l"><a class="l" href="#180">180: </a> }
</span><span id="181" class="l"><a class="l" href="#181">181: </a>
</span><span id="182" class="l"><a class="l" href="#182">182: </a> <span class="php-comment">/**
</span></span><span id="183" class="l"><a class="l" href="#183">183: </a><span class="php-comment"> * Method check if the input value for the alias is valid
</span></span><span id="184" class="l"><a class="l" href="#184">184: </a><span class="php-comment"> * @param string $alias
</span></span><span id="185" class="l"><a class="l" href="#185">185: </a><span class="php-comment"> * @return boolean
</span></span><span id="186" class="l"><a class="l" href="#186">186: </a><span class="php-comment"> */</span>
</span><span id="187" class="l"><a class="l" href="#187">187: </a> <span class="php-keyword1">private</span> <span class="php-keyword1">function</span> <a id="_validAliasString" href="#_validAliasString">validAliasString</a>(<span class="php-var">$alias</span>) {
</span><span id="188" class="l"><a class="l" href="#188">188: </a> <span class="php-keyword1">if</span> (\utiliy\StringManager::validSQLString(<span class="php-var">$alias</span>) &amp;&amp; <span class="php-keyword2">ctype_alnum</span>(<span class="php-var">$alias</span>) &amp;&amp; <span class="php-keyword2">strlen</span>(<span class="php-var">$alias</span>) &lt;= <span class="php-var">$this</span>-&gt;aliasMaxLenght) {
</span><span id="189" class="l"><a class="l" href="#189">189: </a> <span class="php-keyword1">return</span> <span class="php-keyword1">TRUE</span>;
</span><span id="190" class="l"><a class="l" href="#190">190: </a> }
</span><span id="191" class="l"><a class="l" href="#191">191: </a> <span class="php-keyword1">return</span> <span class="php-keyword1">FALSE</span>;
</span><span id="192" class="l"><a class="l" href="#192">192: </a> }
</span><span id="193" class="l"><a class="l" href="#193">193: </a>
</span><span id="194" class="l"><a class="l" href="#194">194: </a> <span class="php-comment">/**
</span></span><span id="195" class="l"><a class="l" href="#195">195: </a><span class="php-comment"> * Method check if the input value for the alias is valid
</span></span><span id="196" class="l"><a class="l" href="#196">196: </a><span class="php-comment"> * @param string $domain
</span></span><span id="197" class="l"><a class="l" href="#197">197: </a><span class="php-comment"> * @return boolean
</span></span><span id="198" class="l"><a class="l" href="#198">198: </a><span class="php-comment"> */</span>
</span><span id="199" class="l"><a class="l" href="#199">199: </a> <span class="php-keyword1">private</span> <span class="php-keyword1">function</span> <a id="_validDomainString" href="#_validDomainString">validDomainString</a>(<span class="php-var">$domain</span>) {
</span><span id="200" class="l"><a class="l" href="#200">200: </a> <span class="php-keyword1">if</span> (\utiliy\StringManager::validSQLString(<span class="php-var">$domain</span>) &amp;&amp; <span class="php-keyword2">ctype_alnum</span>(<span class="php-var">$domain</span>) &amp;&amp; <span class="php-keyword2">strlen</span>(<span class="php-var">$domain</span>) &lt;= <span class="php-var">$this</span>-&gt;domainMaxLenght) {
</span><span id="201" class="l"><a class="l" href="#201">201: </a> <span class="php-keyword1">return</span> <span class="php-keyword1">TRUE</span>;
</span><span id="202" class="l"><a class="l" href="#202">202: </a> }
</span><span id="203" class="l"><a class="l" href="#203">203: </a> <span class="php-keyword1">return</span> <span class="php-keyword1">FALSE</span>;
</span><span id="204" class="l"><a class="l" href="#204">204: </a> }
</span><span id="205" class="l"><a class="l" href="#205">205: </a>
</span><span id="206" class="l"><a class="l" href="#206">206: </a> <span class="php-comment">/**
</span></span><span id="207" class="l"><a class="l" href="#207">207: </a><span class="php-comment"> * Method check if the input value for the polygon is valid
</span></span><span id="208" class="l"><a class="l" href="#208">208: </a><span class="php-comment"> * @param string $poly
</span></span><span id="209" class="l"><a class="l" href="#209">209: </a><span class="php-comment"> * @return boolean
</span></span><span id="210" class="l"><a class="l" href="#210">210: </a><span class="php-comment"> */</span>
</span><span id="211" class="l"><a class="l" href="#211">211: </a> <span class="php-keyword1">private</span> <span class="php-keyword1">function</span> <a id="_validPolyString" href="#_validPolyString">validPolyString</a>(<span class="php-var">$poly</span>) {
</span><span id="212" class="l"><a class="l" href="#212">212: </a> <span class="php-keyword1">if</span> (\utiliy\StringManager::validSQLString(<span class="php-var">$poly</span>) &amp;&amp; \utiliy\StringManager::startsWith(<span class="php-var">$poly</span>, <span class="php-var">$this</span>-&gt;polyStartStr)
</span><span id="213" class="l"><a class="l" href="#213">213: </a> &amp;&amp; \utiliy\StringManager::endsWith(<span class="php-var">$poly</span>, <span class="php-var">$this</span>-&gt;polyEndStr)) {
</span><span id="214" class="l"><a class="l" href="#214">214: </a> <span class="php-keyword1">return</span> <span class="php-keyword1">TRUE</span>;
</span><span id="215" class="l"><a class="l" href="#215">215: </a> }
</span><span id="216" class="l"><a class="l" href="#216">216: </a> <span class="php-keyword1">return</span> <span class="php-keyword1">FALSE</span>;
</span><span id="217" class="l"><a class="l" href="#217">217: </a> }
</span><span id="218" class="l"><a class="l" href="#218">218: </a>
</span><span id="219" class="l"><a class="l" href="#219">219: </a> <span class="php-comment">/**
</span></span><span id="220" class="l"><a class="l" href="#220">220: </a><span class="php-comment"> * Method check if the ntring is a did
</span></span><span id="221" class="l"><a class="l" href="#221">221: </a><span class="php-comment"> * @param string $string
</span></span><span id="222" class="l"><a class="l" href="#222">222: </a><span class="php-comment"> * @return boolean
</span></span><span id="223" class="l"><a class="l" href="#223">223: </a><span class="php-comment"> */</span>
</span><span id="224" class="l"><a class="l" href="#224">224: </a> <span class="php-keyword1">private</span> <span class="php-keyword1">function</span> <a id="_isDid" href="#_isDid">isDid</a>(<span class="php-var">$string</span>) {
</span><span id="225" class="l"><a class="l" href="#225">225: </a> <span class="php-keyword1">return</span> <span class="php-keyword2">ctype_digit</span>(<span class="php-var">$string</span>);
</span><span id="226" class="l"><a class="l" href="#226">226: </a> }
</span><span id="227" class="l"><a class="l" href="#227">227: </a>
</span><span id="228" class="l"><a class="l" href="#228">228: </a>}
</span><span id="229" class="l"><a class="l" href="#229">229: </a>
</span><span id="230" class="l"><a class="l" href="#230">230: </a><span class="xlang">?&gt;</span>
</span><span id="231" class="l"><a class="l" href="#231">231: </a></span></code></pre>
<div id="footer">
GeoApi API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>

View File

@@ -8,7 +8,7 @@
<title>File database/SqlManager.php | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -39,6 +39,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>
@@ -48,6 +50,8 @@
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-database.PisSqlManager.html">PisSqlManager</a></li>
<li><a href="class-database.PssSqlManager.html">PssSqlManager</a></li>
<li><a href="class-database.SpsSqlManager.html">SpsSqlManager</a></li>
<li class="active"><a href="class-database.SqlManager.html">SqlManager</a></li>
</ul>
@@ -137,75 +141,103 @@
</span><span id="43" class="l"><a class="l" href="#43"> 43: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$link" href="#$link">$link</a></span>;
</span><span id="44" class="l"><a class="l" href="#44"> 44: </a>
</span><span id="45" class="l"><a class="l" href="#45"> 45: </a> <span class="php-comment">/**
</span></span><span id="46" class="l"><a class="l" href="#46"> 46: </a><span class="php-comment"> * Default-Constructor
</span></span><span id="47" class="l"><a class="l" href="#47"> 47: </a><span class="php-comment"> */</span>
</span><span id="48" class="l"><a class="l" href="#48"> 48: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___construct" href="#___construct">__construct</a>() {
</span><span id="49" class="l"><a class="l" href="#49"> 49: </a>
</span><span id="50" class="l"><a class="l" href="#50"> 50: </a> <span class="php-var">$this</span>-&gt;serverAddress = \config\DBConfig::<span class="php-var">$sqlServer</span>;
</span><span id="51" class="l"><a class="l" href="#51"> 51: </a> <span class="php-var">$this</span>-&gt;dbName = \config\DBConfig::<span class="php-var">$sqlDBName</span>;
</span><span id="52" class="l"><a class="l" href="#52"> 52: </a> <span class="php-var">$this</span>-&gt;userName = \config\DBConfig::<span class="php-var">$sqlDBUser</span>;
</span><span id="53" class="l"><a class="l" href="#53"> 53: </a> <span class="php-var">$this</span>-&gt;userPw = \config\DBConfig::<span class="php-var">$sqlDBUserPW</span>;
</span><span id="54" class="l"><a class="l" href="#54"> 54: </a> }
</span><span id="55" class="l"><a class="l" href="#55"> 55: </a>
</span><span id="56" class="l"><a class="l" href="#56"> 56: </a> <span class="php-comment">/**
</span></span><span id="57" class="l"><a class="l" href="#57"> 57: </a><span class="php-comment"> * Default-DEConstructor
</span></span><span id="58" class="l"><a class="l" href="#58"> 58: </a><span class="php-comment"> */</span>
</span><span id="59" class="l"><a class="l" href="#59"> 59: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___destruct" href="#___destruct">__destruct</a>() {
</span><span id="60" class="l"><a class="l" href="#60"> 60: </a> <span class="php-var">$this</span>-&gt;closeConnection();
</span><span id="61" class="l"><a class="l" href="#61"> 61: </a> <span class="php-var">$this</span>-&gt;serverAddress = <span class="php-keyword1">null</span>;
</span><span id="62" class="l"><a class="l" href="#62"> 62: </a> <span class="php-var">$this</span>-&gt;dbName = <span class="php-keyword1">null</span>;
</span><span id="63" class="l"><a class="l" href="#63"> 63: </a> <span class="php-var">$this</span>-&gt;userName = <span class="php-keyword1">null</span>;
</span><span id="64" class="l"><a class="l" href="#64"> 64: </a> <span class="php-var">$this</span>-&gt;userPW = <span class="php-keyword1">null</span>;
</span><span id="65" class="l"><a class="l" href="#65"> 65: </a> }
</span><span id="66" class="l"><a class="l" href="#66"> 66: </a>
</span><span id="67" class="l"><a class="l" href="#67"> 67: </a> <span class="php-comment">/**
</span></span><span id="68" class="l"><a class="l" href="#68"> 68: </a><span class="php-comment"> * Method setup the connection to the Database
</span></span><span id="69" class="l"><a class="l" href="#69"> 69: </a><span class="php-comment"> */</span>
</span><span id="70" class="l"><a class="l" href="#70"> 70: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_connect" href="#_connect">connect</a>() {
</span><span id="71" class="l"><a class="l" href="#71"> 71: </a> <span class="php-var">$this</span>-&gt;<span class="php-keyword2">link</span> = <span class="php-keyword2">mysql_connect</span>(<span class="php-var">$this</span>-&gt;serverAddress, <span class="php-var">$this</span>-&gt;userName, <span class="php-var">$this</span>-&gt;userPw);
</span><span id="72" class="l"><a class="l" href="#72"> 72: </a> <span class="php-keyword1">if</span> (!<span class="php-var">$this</span>-&gt;<span class="php-keyword2">link</span>) {
</span><span id="73" class="l"><a class="l" href="#73"> 73: </a> <span class="php-keyword1">exit</span>(<span class="php-quote">&quot;No Connection: &quot;</span> . <span class="php-keyword2">mysql_error</span>());
</span><span id="74" class="l"><a class="l" href="#74"> 74: </a> }
</span><span id="75" class="l"><a class="l" href="#75"> 75: </a> <span class="php-var">$selected</span> = <span class="php-keyword2">mysql_select_db</span>(<span class="php-var">$this</span>-&gt;dbName, <span class="php-var">$this</span>-&gt;<span class="php-keyword2">link</span>);
</span><span id="76" class="l"><a class="l" href="#76"> 76: </a> <span class="php-keyword1">if</span> (!<span class="php-var">$selected</span>) {
</span><span id="77" class="l"><a class="l" href="#77"> 77: </a> <span class="php-keyword1">exit</span>(<span class="php-quote">&quot;No DB: &quot;</span> . <span class="php-keyword2">mysql_error</span>());
</span><span id="78" class="l"><a class="l" href="#78"> 78: </a> }
</span><span id="79" class="l"><a class="l" href="#79"> 79: </a> }
</span></span><span id="46" class="l"><a class="l" href="#46"> 46: </a><span class="php-comment"> * String for an and-operrator
</span></span><span id="47" class="l"><a class="l" href="#47"> 47: </a><span class="php-comment"> * @var string
</span></span><span id="48" class="l"><a class="l" href="#48"> 48: </a><span class="php-comment"> */</span>
</span><span id="49" class="l"><a class="l" href="#49"> 49: </a> <span class="php-keyword1">protected</span> <span class="php-var"><a id="$andTerm" href="#$andTerm">$andTerm</a></span> = <span class="php-quote">&quot; and &quot;</span>;
</span><span id="50" class="l"><a class="l" href="#50"> 50: </a>
</span><span id="51" class="l"><a class="l" href="#51"> 51: </a> <span class="php-comment">/**
</span></span><span id="52" class="l"><a class="l" href="#52"> 52: </a><span class="php-comment"> * String for an or-operrator
</span></span><span id="53" class="l"><a class="l" href="#53"> 53: </a><span class="php-comment"> * @var string
</span></span><span id="54" class="l"><a class="l" href="#54"> 54: </a><span class="php-comment"> */</span>
</span><span id="55" class="l"><a class="l" href="#55"> 55: </a> <span class="php-keyword1">protected</span> <span class="php-var"><a id="$orTerm" href="#$orTerm">$orTerm</a></span> = <span class="php-quote">&quot; or &quot;</span>;
</span><span id="56" class="l"><a class="l" href="#56"> 56: </a>
</span><span id="57" class="l"><a class="l" href="#57"> 57: </a> <span class="php-comment">/**
</span></span><span id="58" class="l"><a class="l" href="#58"> 58: </a><span class="php-comment"> * String for quotes in a query
</span></span><span id="59" class="l"><a class="l" href="#59"> 59: </a><span class="php-comment"> * @var string
</span></span><span id="60" class="l"><a class="l" href="#60"> 60: </a><span class="php-comment"> */</span>
</span><span id="61" class="l"><a class="l" href="#61"> 61: </a> <span class="php-keyword1">protected</span> <span class="php-var"><a id="$quoteTerm" href="#$quoteTerm">$quoteTerm</a></span> = <span class="php-quote">&quot;\&quot;&quot;</span>;
</span><span id="62" class="l"><a class="l" href="#62"> 62: </a>
</span><span id="63" class="l"><a class="l" href="#63"> 63: </a> <span class="php-comment">/**
</span></span><span id="64" class="l"><a class="l" href="#64"> 64: </a><span class="php-comment"> * Default-Constructor
</span></span><span id="65" class="l"><a class="l" href="#65"> 65: </a><span class="php-comment"> */</span>
</span><span id="66" class="l"><a class="l" href="#66"> 66: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___construct" href="#___construct">__construct</a>() {
</span><span id="67" class="l"><a class="l" href="#67"> 67: </a> <span class="php-var">$this</span>-&gt;serverAddress = \config\DBConfig::<span class="php-var">$sqlServer</span>;
</span><span id="68" class="l"><a class="l" href="#68"> 68: </a> <span class="php-var">$this</span>-&gt;dbName = \config\DBConfig::<span class="php-var">$sqlDBName</span>;
</span><span id="69" class="l"><a class="l" href="#69"> 69: </a> <span class="php-var">$this</span>-&gt;userName = \config\DBConfig::<span class="php-var">$sqlDBUser</span>;
</span><span id="70" class="l"><a class="l" href="#70"> 70: </a> <span class="php-var">$this</span>-&gt;userPw = \config\DBConfig::<span class="php-var">$sqlDBUserPW</span>;
</span><span id="71" class="l"><a class="l" href="#71"> 71: </a> }
</span><span id="72" class="l"><a class="l" href="#72"> 72: </a>
</span><span id="73" class="l"><a class="l" href="#73"> 73: </a> <span class="php-comment">/**
</span></span><span id="74" class="l"><a class="l" href="#74"> 74: </a><span class="php-comment"> * Default-DEConstructor
</span></span><span id="75" class="l"><a class="l" href="#75"> 75: </a><span class="php-comment"> */</span>
</span><span id="76" class="l"><a class="l" href="#76"> 76: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___destruct" href="#___destruct">__destruct</a>() {
</span><span id="77" class="l"><a class="l" href="#77"> 77: </a>
</span><span id="78" class="l"><a class="l" href="#78"> 78: </a> <span class="php-comment">// close connection</span>
</span><span id="79" class="l"><a class="l" href="#79"> 79: </a> <span class="php-var">$this</span>-&gt;closeConnection();
</span><span id="80" class="l"><a class="l" href="#80"> 80: </a>
</span><span id="81" class="l"><a class="l" href="#81"> 81: </a> <span class="php-comment">/**
</span></span><span id="82" class="l"><a class="l" href="#82"> 82: </a><span class="php-comment"> * Method close the connection
</span></span><span id="83" class="l"><a class="l" href="#83"> 83: </a><span class="php-comment"> */</span>
</span><span id="84" class="l"><a class="l" href="#84"> 84: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_closeConnection" href="#_closeConnection">closeConnection</a>() {
</span><span id="85" class="l"><a class="l" href="#85"> 85: </a> <span class="php-keyword1">if</span> (<span class="php-var">$this</span>-&gt;<span class="php-keyword2">link</span>) {
</span><span id="86" class="l"><a class="l" href="#86"> 86: </a> <span class="php-keyword2">mysql_close</span>(<span class="php-var">$this</span>-&gt;<span class="php-keyword2">link</span>);
</span><span id="87" class="l"><a class="l" href="#87"> 87: </a> <span class="php-var">$this</span>-&gt;<span class="php-keyword2">link</span> = <span class="php-keyword1">null</span>;
</span><span id="88" class="l"><a class="l" href="#88"> 88: </a> }
</span><span id="89" class="l"><a class="l" href="#89"> 89: </a> }
</span><span id="90" class="l"><a class="l" href="#90"> 90: </a>
</span><span id="91" class="l"><a class="l" href="#91"> 91: </a> <span class="php-comment">/**
</span></span><span id="92" class="l"><a class="l" href="#92"> 92: </a><span class="php-comment"> * Method send a query to the Datebase and return the result
</span></span><span id="93" class="l"><a class="l" href="#93"> 93: </a><span class="php-comment"> * @param string $query
</span></span><span id="94" class="l"><a class="l" href="#94"> 94: </a><span class="php-comment"> * @return result[num][assoc]
</span></span><span id="95" class="l"><a class="l" href="#95"> 95: </a><span class="php-comment"> */</span>
</span><span id="96" class="l"><a class="l" href="#96"> 96: </a> <span class="php-keyword1">protected</span> <span class="php-keyword1">function</span> <a id="_query" href="#_query">query</a>(<span class="php-var">$query</span>) {
</span><span id="97" class="l"><a class="l" href="#97"> 97: </a> <span class="php-var">$mysqlResult</span> = <span class="php-keyword2">mysql_query</span>(<span class="php-var">$query</span>, <span class="php-var">$this</span>-&gt;<span class="php-keyword2">link</span>);
</span><span id="98" class="l"><a class="l" href="#98"> 98: </a> <span class="php-keyword1">if</span> (!<span class="php-var">$mysqlResult</span>) {
</span><span id="99" class="l"><a class="l" href="#99"> 99: </a> <span class="php-keyword1">exit</span>(<span class="php-quote">&quot;Query error: &quot;</span> . <span class="php-keyword2">mysql_error</span>());
</span><span id="81" class="l"><a class="l" href="#81"> 81: </a> <span class="php-comment">// delete connection parameter</span>
</span><span id="82" class="l"><a class="l" href="#82"> 82: </a> <span class="php-keyword1">unset</span>(<span class="php-var">$this</span>-&gt;serverAddress);
</span><span id="83" class="l"><a class="l" href="#83"> 83: </a> <span class="php-keyword1">unset</span>(<span class="php-var">$this</span>-&gt;dbName);
</span><span id="84" class="l"><a class="l" href="#84"> 84: </a> <span class="php-keyword1">unset</span>(<span class="php-var">$this</span>-&gt;userName);
</span><span id="85" class="l"><a class="l" href="#85"> 85: </a> <span class="php-keyword1">unset</span>(<span class="php-var">$this</span>-&gt;userPW);
</span><span id="86" class="l"><a class="l" href="#86"> 86: </a> }
</span><span id="87" class="l"><a class="l" href="#87"> 87: </a>
</span><span id="88" class="l"><a class="l" href="#88"> 88: </a> <span class="php-comment">/**
</span></span><span id="89" class="l"><a class="l" href="#89"> 89: </a><span class="php-comment"> * Method setup the connection to the Database
</span></span><span id="90" class="l"><a class="l" href="#90"> 90: </a><span class="php-comment"> */</span>
</span><span id="91" class="l"><a class="l" href="#91"> 91: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_connect" href="#_connect">connect</a>() {
</span><span id="92" class="l"><a class="l" href="#92"> 92: </a> <span class="php-var">$this</span>-&gt;<span class="php-keyword2">link</span> = <span class="php-keyword2">mysql_connect</span>(<span class="php-var">$this</span>-&gt;serverAddress, <span class="php-var">$this</span>-&gt;userName, <span class="php-var">$this</span>-&gt;userPw);
</span><span id="93" class="l"><a class="l" href="#93"> 93: </a> <span class="php-keyword1">if</span> (!<span class="php-var">$this</span>-&gt;<span class="php-keyword2">link</span>) {
</span><span id="94" class="l"><a class="l" href="#94"> 94: </a> <span class="php-keyword1">exit</span>(<span class="php-quote">&quot;No Connection: &quot;</span> . <span class="php-keyword2">mysql_error</span>());
</span><span id="95" class="l"><a class="l" href="#95"> 95: </a> }
</span><span id="96" class="l"><a class="l" href="#96"> 96: </a> <span class="php-var">$selected</span> = <span class="php-keyword2">mysql_select_db</span>(<span class="php-var">$this</span>-&gt;dbName, <span class="php-var">$this</span>-&gt;<span class="php-keyword2">link</span>);
</span><span id="97" class="l"><a class="l" href="#97"> 97: </a> <span class="php-keyword1">if</span> (!<span class="php-var">$selected</span>) {
</span><span id="98" class="l"><a class="l" href="#98"> 98: </a> <span class="php-keyword1">exit</span>(<span class="php-quote">&quot;No DB: &quot;</span> . <span class="php-keyword2">mysql_error</span>());
</span><span id="99" class="l"><a class="l" href="#99"> 99: </a> }
</span><span id="100" class="l"><a class="l" href="#100">100: </a> }
</span><span id="101" class="l"><a class="l" href="#101">101: </a> <span class="php-var">$rowNums</span> = <span class="php-keyword2">mysql_num_rows</span>(<span class="php-var">$mysqlResult</span>);
</span><span id="102" class="l"><a class="l" href="#102">102: </a> <span class="php-var">$result</span> = <span class="php-keyword1">array</span>();
</span><span id="103" class="l"><a class="l" href="#103">103: </a> <span class="php-keyword1">for</span> (<span class="php-var">$i</span> = <span class="php-num">0</span>; <span class="php-var">$i</span> &lt; <span class="php-var">$rowNums</span>; <span class="php-var">$i</span>++) {
</span><span id="104" class="l"><a class="l" href="#104">104: </a> <span class="php-var">$row</span> = <span class="php-keyword2">mysql_fetch_assoc</span>(<span class="php-var">$mysqlResult</span>);
</span><span id="105" class="l"><a class="l" href="#105">105: </a> <span class="php-var">$result</span>[<span class="php-var">$i</span>] = <span class="php-var">$row</span>;
</span><span id="106" class="l"><a class="l" href="#106">106: </a> }
</span><span id="107" class="l"><a class="l" href="#107">107: </a> <span class="php-keyword2">mysql_free_result</span>(<span class="php-var">$mysqlResult</span>);
</span><span id="108" class="l"><a class="l" href="#108">108: </a> <span class="php-keyword1">return</span> <span class="php-var">$result</span>;
</span><span id="109" class="l"><a class="l" href="#109">109: </a> }
</span><span id="110" class="l"><a class="l" href="#110">110: </a>
</span><span id="111" class="l"><a class="l" href="#111">111: </a>}
</span><span id="101" class="l"><a class="l" href="#101">101: </a>
</span><span id="102" class="l"><a class="l" href="#102">102: </a> <span class="php-comment">/**
</span></span><span id="103" class="l"><a class="l" href="#103">103: </a><span class="php-comment"> * Method close the connection
</span></span><span id="104" class="l"><a class="l" href="#104">104: </a><span class="php-comment"> */</span>
</span><span id="105" class="l"><a class="l" href="#105">105: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_closeConnection" href="#_closeConnection">closeConnection</a>() {
</span><span id="106" class="l"><a class="l" href="#106">106: </a> <span class="php-keyword1">if</span> (<span class="php-var">$this</span>-&gt;<span class="php-keyword2">link</span>) {
</span><span id="107" class="l"><a class="l" href="#107">107: </a> <span class="php-keyword2">mysql_close</span>(<span class="php-var">$this</span>-&gt;<span class="php-keyword2">link</span>);
</span><span id="108" class="l"><a class="l" href="#108">108: </a> <span class="php-keyword1">unset</span>(<span class="php-var">$this</span>-&gt;<span class="php-keyword2">link</span>);
</span><span id="109" class="l"><a class="l" href="#109">109: </a> <span class="php-var">$this</span>-&gt;<span class="php-keyword2">link</span> = <span class="php-keyword1">null</span>;
</span><span id="110" class="l"><a class="l" href="#110">110: </a> }
</span><span id="111" class="l"><a class="l" href="#111">111: </a> }
</span><span id="112" class="l"><a class="l" href="#112">112: </a>
</span><span id="113" class="l"><a class="l" href="#113">113: </a><span class="xlang">?&gt;</span>
</span><span id="114" class="l"><a class="l" href="#114">114: </a></span></code></pre>
</span><span id="113" class="l"><a class="l" href="#113">113: </a> <span class="php-comment">/**
</span></span><span id="114" class="l"><a class="l" href="#114">114: </a><span class="php-comment"> * Method send a query to the Datebase and return the result
</span></span><span id="115" class="l"><a class="l" href="#115">115: </a><span class="php-comment"> * @param string $query
</span></span><span id="116" class="l"><a class="l" href="#116">116: </a><span class="php-comment"> * @return result[num][assoc]
</span></span><span id="117" class="l"><a class="l" href="#117">117: </a><span class="php-comment"> */</span>
</span><span id="118" class="l"><a class="l" href="#118">118: </a> <span class="php-keyword1">protected</span> <span class="php-keyword1">function</span> <a id="_query" href="#_query">query</a>(<span class="php-var">$query</span>) {
</span><span id="119" class="l"><a class="l" href="#119">119: </a>
</span><span id="120" class="l"><a class="l" href="#120">120: </a> <span class="php-comment">// send error</span>
</span><span id="121" class="l"><a class="l" href="#121">121: </a> <span class="php-var">$mysqlResult</span> = <span class="php-keyword2">mysql_query</span>(<span class="php-var">$query</span>, <span class="php-var">$this</span>-&gt;<span class="php-keyword2">link</span>);
</span><span id="122" class="l"><a class="l" href="#122">122: </a> <span class="php-keyword1">if</span> (!<span class="php-var">$mysqlResult</span>) {
</span><span id="123" class="l"><a class="l" href="#123">123: </a> <span class="php-keyword1">exit</span>(<span class="php-quote">&quot;Query error: &quot;</span> . <span class="php-keyword2">mysql_error</span>());
</span><span id="124" class="l"><a class="l" href="#124">124: </a> }
</span><span id="125" class="l"><a class="l" href="#125">125: </a>
</span><span id="126" class="l"><a class="l" href="#126">126: </a> <span class="php-comment">// fetch result</span>
</span><span id="127" class="l"><a class="l" href="#127">127: </a> <span class="php-var">$rowNums</span> = <span class="php-keyword2">mysql_num_rows</span>(<span class="php-var">$mysqlResult</span>);
</span><span id="128" class="l"><a class="l" href="#128">128: </a> <span class="php-var">$result</span> = <span class="php-keyword1">array</span>();
</span><span id="129" class="l"><a class="l" href="#129">129: </a> <span class="php-keyword1">for</span> (<span class="php-var">$i</span> = <span class="php-num">0</span>; <span class="php-var">$i</span> &lt; <span class="php-var">$rowNums</span>; <span class="php-var">$i</span>++) {
</span><span id="130" class="l"><a class="l" href="#130">130: </a> <span class="php-var">$row</span> = <span class="php-keyword2">mysql_fetch_assoc</span>(<span class="php-var">$mysqlResult</span>);
</span><span id="131" class="l"><a class="l" href="#131">131: </a> <span class="php-var">$result</span>[<span class="php-var">$i</span>] = <span class="php-var">$row</span>;
</span><span id="132" class="l"><a class="l" href="#132">132: </a> }
</span><span id="133" class="l"><a class="l" href="#133">133: </a>
</span><span id="134" class="l"><a class="l" href="#134">134: </a> <span class="php-comment">// call gc</span>
</span><span id="135" class="l"><a class="l" href="#135">135: </a> <span class="php-keyword2">mysql_free_result</span>(<span class="php-var">$mysqlResult</span>);
</span><span id="136" class="l"><a class="l" href="#136">136: </a>
</span><span id="137" class="l"><a class="l" href="#137">137: </a> <span class="php-keyword1">return</span> <span class="php-var">$result</span>;
</span><span id="138" class="l"><a class="l" href="#138">138: </a> }
</span><span id="139" class="l"><a class="l" href="#139">139: </a>}
</span><span id="140" class="l"><a class="l" href="#140">140: </a>
</span><span id="141" class="l"><a class="l" href="#141">141: </a><span class="xlang">?&gt;</span>
</span><span id="142" class="l"><a class="l" href="#142">142: </a></span></code></pre>
<div id="footer">
GeoApi API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>

View File

@@ -0,0 +1,166 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<meta name="robots" content="noindex" />
<title>File utility/ArrayManager.php | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li><a href="namespace-api.html">api</a>
</li>
<li><a href="namespace-config.html">config</a>
</li>
<li><a href="namespace-database.html">database</a>
</li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
<li><a href="namespace-Slim.html">Slim<span></span></a>
<ul>
<li><a href="namespace-Slim.Exception.html">Exception</a>
</li>
<li><a href="namespace-Slim.Http.html">Http</a>
</li>
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li class="active"><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li class="active"><a href="class-utiliy.ArrayManager.html">ArrayManager</a></li>
<li><a href="class-utiliy.StringManager.html">StringManager</a></li>
<li><a href="class-utiliy.XmlManager.html">XmlManager</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-utiliy.html" title="Summary of utiliy"><span>Namespace</span></a>
</li>
<li>
<a href="class-utiliy.ArrayManager.html" title="Summary of utiliy\ArrayManager"><span>Class</span></a>
</li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<pre><code><span id="1" class="l"><a class="l" href="#1"> 1: </a><span class="xlang">&lt;?php</span>
</span><span id="2" class="l"><a class="l" href="#2"> 2: </a>
</span><span id="3" class="l"><a class="l" href="#3"> 3: </a><span class="php-keyword1">namespace</span> utiliy;
</span><span id="4" class="l"><a class="l" href="#4"> 4: </a>
</span><span id="5" class="l"><a class="l" href="#5"> 5: </a><span class="php-keyword1">include_once</span> <span class="php-quote">&quot;../../global.inc.php&quot;</span>;
</span><span id="6" class="l"><a class="l" href="#6"> 6: </a><span class="php-keyword1">include_once</span> PATH_UTILITTY . <span class="php-quote">&quot;/StringManager.php&quot;</span>;
</span><span id="7" class="l"><a class="l" href="#7"> 7: </a>
</span><span id="8" class="l"><a class="l" href="#8"> 8: </a><span class="php-comment">/**
</span></span><span id="9" class="l"><a class="l" href="#9"> 9: </a><span class="php-comment"> * The ArrayManager provides some array-methods
</span></span><span id="10" class="l"><a class="l" href="#10">10: </a><span class="php-comment"> * @author stubbfel
</span></span><span id="11" class="l"><a class="l" href="#11">11: </a><span class="php-comment"> * @since 26.06.2013
</span></span><span id="12" class="l"><a class="l" href="#12">12: </a><span class="php-comment"> */</span>
</span><span id="13" class="l"><a class="l" href="#13">13: </a><span class="php-keyword1">class</span> <a id="ArrayManager" href="#ArrayManager">ArrayManager</a> {
</span><span id="14" class="l"><a class="l" href="#14">14: </a>
</span><span id="15" class="l"><a class="l" href="#15">15: </a> <span class="php-comment">/**
</span></span><span id="16" class="l"><a class="l" href="#16">16: </a><span class="php-comment"> * Method remove all empty itmes of an array
</span></span><span id="17" class="l"><a class="l" href="#17">17: </a><span class="php-comment"> * @param array $queryArgs
</span></span><span id="18" class="l"><a class="l" href="#18">18: </a><span class="php-comment"> * @return array
</span></span><span id="19" class="l"><a class="l" href="#19">19: </a><span class="php-comment"> */</span>
</span><span id="20" class="l"><a class="l" href="#20">20: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-keyword1">function</span> <a id="_removeEmptyItmes" href="#_removeEmptyItmes">removeEmptyItmes</a>(<span class="php-var">$array</span>) {
</span><span id="21" class="l"><a class="l" href="#21">21: </a> <span class="php-keyword1">foreach</span> (<span class="php-var">$array</span> <span class="php-keyword1">as</span> <span class="php-var">$key</span> =&gt; <span class="php-var">$value</span>) {
</span><span id="22" class="l"><a class="l" href="#22">22: </a> <span class="php-keyword1">if</span> (<span class="php-keyword1">empty</span>(<span class="php-var">$value</span>)) {
</span><span id="23" class="l"><a class="l" href="#23">23: </a> <span class="php-keyword1">unset</span>(<span class="php-var">$array</span>[<span class="php-var">$key</span>]);
</span><span id="24" class="l"><a class="l" href="#24">24: </a> }
</span><span id="25" class="l"><a class="l" href="#25">25: </a> }
</span><span id="26" class="l"><a class="l" href="#26">26: </a> <span class="php-keyword1">return</span> <span class="php-var">$array</span>;
</span><span id="27" class="l"><a class="l" href="#27">27: </a> }
</span><span id="28" class="l"><a class="l" href="#28">28: </a>
</span><span id="29" class="l"><a class="l" href="#29">29: </a> <span class="php-comment">/**
</span></span><span id="30" class="l"><a class="l" href="#30">30: </a><span class="php-comment"> * Method convert an array to a where-string like $fieldname = $array[i] $operator
</span></span><span id="31" class="l"><a class="l" href="#31">31: </a><span class="php-comment"> * @param array $pidList
</span></span><span id="32" class="l"><a class="l" href="#32">32: </a><span class="php-comment"> * @return string
</span></span><span id="33" class="l"><a class="l" href="#33">33: </a><span class="php-comment"> */</span>
</span><span id="34" class="l"><a class="l" href="#34">34: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-keyword1">function</span> <a id="_toSqlWhereString" href="#_toSqlWhereString">toSqlWhereString</a>(<span class="php-var">$array</span>, <span class="php-var">$operator</span> = <span class="php-quote">&quot;&quot;</span>, <span class="php-var">$fieldname</span> = <span class="php-quote">&quot;&quot;</span>) {
</span><span id="35" class="l"><a class="l" href="#35">35: </a> <span class="php-var">$arrayStr</span> = StringManager::<span class="php-var">$emptyString</span>;
</span><span id="36" class="l"><a class="l" href="#36">36: </a> <span class="php-keyword1">foreach</span> (<span class="php-var">$array</span> <span class="php-keyword1">as</span> <span class="php-var">$value</span>) {
</span><span id="37" class="l"><a class="l" href="#37">37: </a> <span class="php-var">$arrayStr</span> .= <span class="php-var">$fieldname</span> . <span class="php-var">$value</span> . <span class="php-var">$operator</span>;
</span><span id="38" class="l"><a class="l" href="#38">38: </a> }
</span><span id="39" class="l"><a class="l" href="#39">39: </a> <span class="php-var">$result</span> = <span class="php-keyword2">substr</span>(<span class="php-var">$arrayStr</span>, <span class="php-num">0</span>, <span class="php-keyword2">strlen</span>(<span class="php-var">$arrayStr</span>) - <span class="php-keyword2">strlen</span>(<span class="php-var">$operator</span>));
</span><span id="40" class="l"><a class="l" href="#40">40: </a> <span class="php-keyword1">return</span> <span class="php-var">$result</span>;
</span><span id="41" class="l"><a class="l" href="#41">41: </a> }
</span><span id="42" class="l"><a class="l" href="#42">42: </a>
</span><span id="43" class="l"><a class="l" href="#43">43: </a> <span class="php-comment">/**
</span></span><span id="44" class="l"><a class="l" href="#44">44: </a><span class="php-comment"> * Method check if all items of the array are only digits and &lt; PHP_INT_MAX
</span></span><span id="45" class="l"><a class="l" href="#45">45: </a><span class="php-comment"> * @param array $poly
</span></span><span id="46" class="l"><a class="l" href="#46">46: </a><span class="php-comment"> * @return boolean
</span></span><span id="47" class="l"><a class="l" href="#47">47: </a><span class="php-comment"> */</span>
</span><span id="48" class="l"><a class="l" href="#48">48: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-keyword1">function</span> <a id="_validIntList" href="#_validIntList">validIntList</a>(<span class="php-var">$list</span>) {
</span><span id="49" class="l"><a class="l" href="#49">49: </a> <span class="php-keyword1">foreach</span> (<span class="php-var">$list</span> <span class="php-keyword1">as</span> <span class="php-var">$value</span>) {
</span><span id="50" class="l"><a class="l" href="#50">50: </a>
</span><span id="51" class="l"><a class="l" href="#51">51: </a> <span class="php-keyword1">if</span> (!<span class="php-keyword2">ctype_digit</span>(<span class="php-var">$value</span>) || PHP_INT_MAX &lt; <span class="php-var">$value</span>) {
</span><span id="52" class="l"><a class="l" href="#52">52: </a> <span class="php-keyword1">return</span> <span class="php-keyword1">FALSE</span>;
</span><span id="53" class="l"><a class="l" href="#53">53: </a> }
</span><span id="54" class="l"><a class="l" href="#54">54: </a> }
</span><span id="55" class="l"><a class="l" href="#55">55: </a> <span class="php-keyword1">return</span> <span class="php-keyword1">TRUE</span>;
</span><span id="56" class="l"><a class="l" href="#56">56: </a> }
</span><span id="57" class="l"><a class="l" href="#57">57: </a>
</span><span id="58" class="l"><a class="l" href="#58">58: </a>}
</span><span id="59" class="l"><a class="l" href="#59">59: </a>
</span><span id="60" class="l"><a class="l" href="#60">60: </a><span class="xlang">?&gt;</span>
</span><span id="61" class="l"><a class="l" href="#61">61: </a></span></code></pre>
<div id="footer">
GeoApi API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,160 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<meta name="robots" content="noindex" />
<title>File utility/StringManager.php | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li><a href="namespace-api.html">api</a>
</li>
<li><a href="namespace-config.html">config</a>
</li>
<li><a href="namespace-database.html">database</a>
</li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
<li><a href="namespace-Slim.html">Slim<span></span></a>
<ul>
<li><a href="namespace-Slim.Exception.html">Exception</a>
</li>
<li><a href="namespace-Slim.Http.html">Http</a>
</li>
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li class="active"><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-utiliy.ArrayManager.html">ArrayManager</a></li>
<li class="active"><a href="class-utiliy.StringManager.html">StringManager</a></li>
<li><a href="class-utiliy.XmlManager.html">XmlManager</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-utiliy.html" title="Summary of utiliy"><span>Namespace</span></a>
</li>
<li>
<a href="class-utiliy.StringManager.html" title="Summary of utiliy\StringManager"><span>Class</span></a>
</li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<pre><code><span id="1" class="l"><a class="l" href="#1"> 1: </a><span class="xlang">&lt;?php</span>
</span><span id="2" class="l"><a class="l" href="#2"> 2: </a>
</span><span id="3" class="l"><a class="l" href="#3"> 3: </a><span class="php-keyword1">namespace</span> utiliy;
</span><span id="4" class="l"><a class="l" href="#4"> 4: </a>
</span><span id="5" class="l"><a class="l" href="#5"> 5: </a><span class="php-keyword1">include_once</span> <span class="php-quote">&quot;../../global.inc.php&quot;</span>;
</span><span id="6" class="l"><a class="l" href="#6"> 6: </a>
</span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-comment">/**
</span></span><span id="8" class="l"><a class="l" href="#8"> 8: </a><span class="php-comment"> * The StringManager provides some string-methods
</span></span><span id="9" class="l"><a class="l" href="#9"> 9: </a><span class="php-comment"> * @author stubbfel
</span></span><span id="10" class="l"><a class="l" href="#10">10: </a><span class="php-comment"> * @since 25.06.2013
</span></span><span id="11" class="l"><a class="l" href="#11">11: </a><span class="php-comment"> */</span>
</span><span id="12" class="l"><a class="l" href="#12">12: </a><span class="php-keyword1">class</span> <a id="StringManager" href="#StringManager">StringManager</a> {
</span><span id="13" class="l"><a class="l" href="#13">13: </a>
</span><span id="14" class="l"><a class="l" href="#14">14: </a> <span class="php-comment">/**
</span></span><span id="15" class="l"><a class="l" href="#15">15: </a><span class="php-comment"> * A Constant vor an emptystring like &quot;&quot;
</span></span><span id="16" class="l"><a class="l" href="#16">16: </a><span class="php-comment"> * @var string
</span></span><span id="17" class="l"><a class="l" href="#17">17: </a><span class="php-comment"> */</span>
</span><span id="18" class="l"><a class="l" href="#18">18: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$emptyString" href="#$emptyString">$emptyString</a></span> = <span class="php-quote">&quot;&quot;</span>;
</span><span id="19" class="l"><a class="l" href="#19">19: </a>
</span><span id="20" class="l"><a class="l" href="#20">20: </a> <span class="php-comment">/**
</span></span><span id="21" class="l"><a class="l" href="#21">21: </a><span class="php-comment"> * Method check if a certain string start with a certain substring
</span></span><span id="22" class="l"><a class="l" href="#22">22: </a><span class="php-comment"> * @param string $haystack
</span></span><span id="23" class="l"><a class="l" href="#23">23: </a><span class="php-comment"> * @param string $needle
</span></span><span id="24" class="l"><a class="l" href="#24">24: </a><span class="php-comment"> * @return boolean
</span></span><span id="25" class="l"><a class="l" href="#25">25: </a><span class="php-comment"> */</span>
</span><span id="26" class="l"><a class="l" href="#26">26: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-keyword1">function</span> <a id="_startsWith" href="#_startsWith">startsWith</a>(<span class="php-var">$haystack</span>, <span class="php-var">$needle</span>) {
</span><span id="27" class="l"><a class="l" href="#27">27: </a> <span class="php-keyword1">return</span> !<span class="php-keyword2">strncmp</span>(<span class="php-var">$haystack</span>, <span class="php-var">$needle</span>, <span class="php-keyword2">strlen</span>(<span class="php-var">$needle</span>));
</span><span id="28" class="l"><a class="l" href="#28">28: </a> }
</span><span id="29" class="l"><a class="l" href="#29">29: </a>
</span><span id="30" class="l"><a class="l" href="#30">30: </a> <span class="php-comment">/**
</span></span><span id="31" class="l"><a class="l" href="#31">31: </a><span class="php-comment"> * Method check if a certain string end with a certain substring
</span></span><span id="32" class="l"><a class="l" href="#32">32: </a><span class="php-comment"> * @param string $haystack
</span></span><span id="33" class="l"><a class="l" href="#33">33: </a><span class="php-comment"> * @param string $needle
</span></span><span id="34" class="l"><a class="l" href="#34">34: </a><span class="php-comment"> * @return boolean
</span></span><span id="35" class="l"><a class="l" href="#35">35: </a><span class="php-comment"> */</span>
</span><span id="36" class="l"><a class="l" href="#36">36: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-keyword1">function</span> <a id="_endsWith" href="#_endsWith">endsWith</a>(<span class="php-var">$haystack</span>, <span class="php-var">$needle</span>) {
</span><span id="37" class="l"><a class="l" href="#37">37: </a> <span class="php-keyword1">return</span> (<span class="php-keyword2">substr</span>(<span class="php-var">$haystack</span>, -<span class="php-keyword2">strlen</span>(<span class="php-var">$needle</span>)) === <span class="php-var">$needle</span>);
</span><span id="38" class="l"><a class="l" href="#38">38: </a> }
</span><span id="39" class="l"><a class="l" href="#39">39: </a>
</span><span id="40" class="l"><a class="l" href="#40">40: </a> <span class="php-comment">/**
</span></span><span id="41" class="l"><a class="l" href="#41">41: </a><span class="php-comment"> * Method if the string is not a empty String (not only spaces and controlls)
</span></span><span id="42" class="l"><a class="l" href="#42">42: </a><span class="php-comment"> * @param string $string
</span></span><span id="43" class="l"><a class="l" href="#43">43: </a><span class="php-comment"> * @return boolean
</span></span><span id="44" class="l"><a class="l" href="#44">44: </a><span class="php-comment"> */</span>
</span><span id="45" class="l"><a class="l" href="#45">45: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-keyword1">function</span> <a id="_validSQLString" href="#_validSQLString">validSQLString</a>(<span class="php-var">$string</span>) {
</span><span id="46" class="l"><a class="l" href="#46">46: </a> <span class="php-keyword1">if</span> (!<span class="php-keyword2">ctype_space</span>(<span class="php-var">$string</span>) &amp;&amp; !<span class="php-keyword2">ctype_cntrl</span>(<span class="php-var">$string</span>)) {
</span><span id="47" class="l"><a class="l" href="#47">47: </a> <span class="php-keyword1">return</span> <span class="php-keyword1">TRUE</span>;
</span><span id="48" class="l"><a class="l" href="#48">48: </a> }
</span><span id="49" class="l"><a class="l" href="#49">49: </a> <span class="php-keyword1">return</span> <span class="php-keyword1">FALSE</span>;
</span><span id="50" class="l"><a class="l" href="#50">50: </a> }
</span><span id="51" class="l"><a class="l" href="#51">51: </a>
</span><span id="52" class="l"><a class="l" href="#52">52: </a>}
</span><span id="53" class="l"><a class="l" href="#53">53: </a>
</span><span id="54" class="l"><a class="l" href="#54">54: </a><span class="xlang">?&gt;</span>
</span><span id="55" class="l"><a class="l" href="#55">55: </a></span></code></pre>
<div id="footer">
GeoApi API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,269 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<meta name="robots" content="noindex" />
<title>File utility/XmlManager.php | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li><a href="namespace-api.html">api</a>
</li>
<li><a href="namespace-config.html">config</a>
</li>
<li><a href="namespace-database.html">database</a>
</li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
<li><a href="namespace-Slim.html">Slim<span></span></a>
<ul>
<li><a href="namespace-Slim.Exception.html">Exception</a>
</li>
<li><a href="namespace-Slim.Http.html">Http</a>
</li>
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li class="active"><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-utiliy.ArrayManager.html">ArrayManager</a></li>
<li><a href="class-utiliy.StringManager.html">StringManager</a></li>
<li class="active"><a href="class-utiliy.XmlManager.html">XmlManager</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-utiliy.html" title="Summary of utiliy"><span>Namespace</span></a>
</li>
<li>
<a href="class-utiliy.XmlManager.html" title="Summary of utiliy\XmlManager"><span>Class</span></a>
</li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<pre><code><span id="1" class="l"><a class="l" href="#1"> 1: </a><span class="xlang">&lt;?php</span>
</span><span id="2" class="l"><a class="l" href="#2"> 2: </a>
</span><span id="3" class="l"><a class="l" href="#3"> 3: </a><span class="php-keyword1">namespace</span> utiliy;
</span><span id="4" class="l"><a class="l" href="#4"> 4: </a>
</span><span id="5" class="l"><a class="l" href="#5"> 5: </a><span class="php-keyword1">include_once</span> <span class="php-quote">&quot;../../global.inc.php&quot;</span>;
</span><span id="6" class="l"><a class="l" href="#6"> 6: </a>
</span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-comment">/**
</span></span><span id="8" class="l"><a class="l" href="#8"> 8: </a><span class="php-comment"> * The XmlManager provides some xml-methods
</span></span><span id="9" class="l"><a class="l" href="#9"> 9: </a><span class="php-comment"> * @author stubbfel
</span></span><span id="10" class="l"><a class="l" href="#10"> 10: </a><span class="php-comment"> * @since 25.06.2013
</span></span><span id="11" class="l"><a class="l" href="#11"> 11: </a><span class="php-comment"> */</span>
</span><span id="12" class="l"><a class="l" href="#12"> 12: </a><span class="php-keyword1">class</span> <a id="XmlManager" href="#XmlManager">XmlManager</a> {
</span><span id="13" class="l"><a class="l" href="#13"> 13: </a>
</span><span id="14" class="l"><a class="l" href="#14"> 14: </a> <span class="php-comment">/**
</span></span><span id="15" class="l"><a class="l" href="#15"> 15: </a><span class="php-comment"> * a default xml document
</span></span><span id="16" class="l"><a class="l" href="#16"> 16: </a><span class="php-comment"> * @var xml-string
</span></span><span id="17" class="l"><a class="l" href="#17"> 17: </a><span class="php-comment"> */</span>
</span><span id="18" class="l"><a class="l" href="#18"> 18: </a> <span class="php-keyword1">private</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$defaultXmlDoc" href="#$defaultXmlDoc">$defaultXmlDoc</a></span> = <span class="php-quote">&quot;&lt;?xml version=\&quot;1.0\&quot; encoding=\&quot;UTF-8\&quot;?&gt;&lt;root&gt;&lt;/root&gt;&quot;</span>;
</span><span id="19" class="l"><a class="l" href="#19"> 19: </a>
</span><span id="20" class="l"><a class="l" href="#20"> 20: </a> <span class="php-comment">/**
</span></span><span id="21" class="l"><a class="l" href="#21"> 21: </a><span class="php-comment"> * Name for the place element
</span></span><span id="22" class="l"><a class="l" href="#22"> 22: </a><span class="php-comment"> * @var string
</span></span><span id="23" class="l"><a class="l" href="#23"> 23: </a><span class="php-comment"> */</span>
</span><span id="24" class="l"><a class="l" href="#24"> 24: </a> <span class="php-keyword1">private</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$placeElementName" href="#$placeElementName">$placeElementName</a></span> = <span class="php-quote">&quot;place&quot;</span>;
</span><span id="25" class="l"><a class="l" href="#25"> 25: </a>
</span><span id="26" class="l"><a class="l" href="#26"> 26: </a> <span class="php-comment">/**
</span></span><span id="27" class="l"><a class="l" href="#27"> 27: </a><span class="php-comment"> * Name for the placeinformation element
</span></span><span id="28" class="l"><a class="l" href="#28"> 28: </a><span class="php-comment"> * @var string
</span></span><span id="29" class="l"><a class="l" href="#29"> 29: </a><span class="php-comment"> */</span>
</span><span id="30" class="l"><a class="l" href="#30"> 30: </a> <span class="php-keyword1">private</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$placeInfoElementName" href="#$placeInfoElementName">$placeInfoElementName</a></span> = <span class="php-quote">&quot;placeInformation&quot;</span>;
</span><span id="31" class="l"><a class="l" href="#31"> 31: </a>
</span><span id="32" class="l"><a class="l" href="#32"> 32: </a> <span class="php-comment">/**
</span></span><span id="33" class="l"><a class="l" href="#33"> 33: </a><span class="php-comment"> * Name for the placeserviceelement
</span></span><span id="34" class="l"><a class="l" href="#34"> 34: </a><span class="php-comment"> * @var string
</span></span><span id="35" class="l"><a class="l" href="#35"> 35: </a><span class="php-comment"> */</span>
</span><span id="36" class="l"><a class="l" href="#36"> 36: </a> <span class="php-keyword1">private</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$placeServiceElementName" href="#$placeServiceElementName">$placeServiceElementName</a></span> = <span class="php-quote">&quot;placeService&quot;</span>;
</span><span id="37" class="l"><a class="l" href="#37"> 37: </a>
</span><span id="38" class="l"><a class="l" href="#38"> 38: </a> <span class="php-comment">/**
</span></span><span id="39" class="l"><a class="l" href="#39"> 39: </a><span class="php-comment"> * Name for the ssap element
</span></span><span id="40" class="l"><a class="l" href="#40"> 40: </a><span class="php-comment"> * @var string
</span></span><span id="41" class="l"><a class="l" href="#41"> 41: </a><span class="php-comment"> */</span>
</span><span id="42" class="l"><a class="l" href="#42"> 42: </a> <span class="php-keyword1">private</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$placeSapElementName" href="#$placeSapElementName">$placeSapElementName</a></span> = <span class="php-quote">&quot;sap&quot;</span>;
</span><span id="43" class="l"><a class="l" href="#43"> 43: </a>
</span><span id="44" class="l"><a class="l" href="#44"> 44: </a> <span class="php-comment">/**
</span></span><span id="45" class="l"><a class="l" href="#45"> 45: </a><span class="php-comment"> * Name for the request element
</span></span><span id="46" class="l"><a class="l" href="#46"> 46: </a><span class="php-comment"> * @var string
</span></span><span id="47" class="l"><a class="l" href="#47"> 47: </a><span class="php-comment"> */</span>
</span><span id="48" class="l"><a class="l" href="#48"> 48: </a> <span class="php-keyword1">private</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$placeRequestElementName" href="#$placeRequestElementName">$placeRequestElementName</a></span> = <span class="php-quote">&quot;request&quot;</span>;
</span><span id="49" class="l"><a class="l" href="#49"> 49: </a>
</span><span id="50" class="l"><a class="l" href="#50"> 50: </a> <span class="php-comment">/**
</span></span><span id="51" class="l"><a class="l" href="#51"> 51: </a><span class="php-comment"> * Name for the placeInfoName attribute
</span></span><span id="52" class="l"><a class="l" href="#52"> 52: </a><span class="php-comment"> * @var string
</span></span><span id="53" class="l"><a class="l" href="#53"> 53: </a><span class="php-comment"> */</span>
</span><span id="54" class="l"><a class="l" href="#54"> 54: </a> <span class="php-keyword1">private</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$placeInfoAttrName" href="#$placeInfoAttrName">$placeInfoAttrName</a></span> = <span class="php-quote">&quot;placeInformationName&quot;</span>;
</span><span id="55" class="l"><a class="l" href="#55"> 55: </a>
</span><span id="56" class="l"><a class="l" href="#56"> 56: </a> <span class="php-comment">/**
</span></span><span id="57" class="l"><a class="l" href="#57"> 57: </a><span class="php-comment"> * Name for the placeServiceName attribute
</span></span><span id="58" class="l"><a class="l" href="#58"> 58: </a><span class="php-comment"> * @var string
</span></span><span id="59" class="l"><a class="l" href="#59"> 59: </a><span class="php-comment"> */</span>
</span><span id="60" class="l"><a class="l" href="#60"> 60: </a> <span class="php-keyword1">private</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$placeServiceAttrName" href="#$placeServiceAttrName">$placeServiceAttrName</a></span> = <span class="php-quote">&quot;placeServiceName&quot;</span>;
</span><span id="61" class="l"><a class="l" href="#61"> 61: </a>
</span><span id="62" class="l"><a class="l" href="#62"> 62: </a> <span class="php-comment">/**
</span></span><span id="63" class="l"><a class="l" href="#63"> 63: </a><span class="php-comment"> * Name for the placeid attribute
</span></span><span id="64" class="l"><a class="l" href="#64"> 64: </a><span class="php-comment"> * @var string
</span></span><span id="65" class="l"><a class="l" href="#65"> 65: </a><span class="php-comment"> */</span>
</span><span id="66" class="l"><a class="l" href="#66"> 66: </a> <span class="php-keyword1">private</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$placeIdAttrName" href="#$placeIdAttrName">$placeIdAttrName</a></span> = <span class="php-quote">&quot;id&quot;</span>;
</span><span id="67" class="l"><a class="l" href="#67"> 67: </a>
</span><span id="68" class="l"><a class="l" href="#68"> 68: </a> <span class="php-comment">/**
</span></span><span id="69" class="l"><a class="l" href="#69"> 69: </a><span class="php-comment"> * Name for the parent attribute
</span></span><span id="70" class="l"><a class="l" href="#70"> 70: </a><span class="php-comment"> * @var string
</span></span><span id="71" class="l"><a class="l" href="#71"> 71: </a><span class="php-comment"> */</span>
</span><span id="72" class="l"><a class="l" href="#72"> 72: </a> <span class="php-keyword1">private</span> <span class="php-keyword1">static</span> <span class="php-var"><a id="$parentIdAttrName" href="#$parentIdAttrName">$parentIdAttrName</a></span> = <span class="php-quote">&quot;parentId&quot;</span>;
</span><span id="73" class="l"><a class="l" href="#73"> 73: </a>
</span><span id="74" class="l"><a class="l" href="#74"> 74: </a> <span class="php-comment">/**
</span></span><span id="75" class="l"><a class="l" href="#75"> 75: </a><span class="php-comment"> * Method convert an array to a response xml for the sps service
</span></span><span id="76" class="l"><a class="l" href="#76"> 76: </a><span class="php-comment"> * &lt;place id =&quot;4711&quot; parentID=%0815&quot;/&gt;
</span></span><span id="77" class="l"><a class="l" href="#77"> 77: </a><span class="php-comment"> *
</span></span><span id="78" class="l"><a class="l" href="#78"> 78: </a><span class="php-comment"> * @param array[num][assoc] $result
</span></span><span id="79" class="l"><a class="l" href="#79"> 79: </a><span class="php-comment"> * @return xml-string
</span></span><span id="80" class="l"><a class="l" href="#80"> 80: </a><span class="php-comment"> */</span>
</span><span id="81" class="l"><a class="l" href="#81"> 81: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-keyword1">function</span> <a id="_arrayToSpsXml" href="#_arrayToSpsXml">arrayToSpsXml</a>(<span class="php-var">$result</span>) {
</span><span id="82" class="l"><a class="l" href="#82"> 82: </a> <span class="php-var">$xml</span> = <span class="php-keyword1">new</span> \SimpleXMLElement(XmlManager::<span class="php-var">$defaultXmlDoc</span>);
</span><span id="83" class="l"><a class="l" href="#83"> 83: </a>
</span><span id="84" class="l"><a class="l" href="#84"> 84: </a> <span class="php-keyword1">foreach</span> (<span class="php-var">$result</span> <span class="php-keyword1">as</span> <span class="php-var">$row</span>) {
</span><span id="85" class="l"><a class="l" href="#85"> 85: </a> <span class="php-var">$place</span> = <span class="php-var">$xml</span>-&gt;addChild(XmlManager::<span class="php-var">$placeElementName</span>);
</span><span id="86" class="l"><a class="l" href="#86"> 86: </a> <span class="php-var">$place</span>-&gt;addAttribute(XmlManager::<span class="php-var">$placeIdAttrName</span>, <span class="php-var">$row</span>[\database\SpsSqlManager::<span class="php-var">$placeId</span>]);
</span><span id="87" class="l"><a class="l" href="#87"> 87: </a> <span class="php-var">$place</span>-&gt;addAttribute(XmlManager::<span class="php-var">$parentIdAttrName</span>, <span class="php-var">$row</span>[\database\SpsSqlManager::<span class="php-var">$parentId</span>]);
</span><span id="88" class="l"><a class="l" href="#88"> 88: </a> }
</span><span id="89" class="l"><a class="l" href="#89"> 89: </a> <span class="php-keyword1">return</span> <span class="php-var">$xml</span>-&gt;asXML();
</span><span id="90" class="l"><a class="l" href="#90"> 90: </a> }
</span><span id="91" class="l"><a class="l" href="#91"> 91: </a>
</span><span id="92" class="l"><a class="l" href="#92"> 92: </a> <span class="php-comment">/**
</span></span><span id="93" class="l"><a class="l" href="#93"> 93: </a><span class="php-comment"> * Method convert an array to a response xml for the pis service like
</span></span><span id="94" class="l"><a class="l" href="#94"> 94: </a><span class="php-comment"> * &lt;place id =&quot;4711&quot;&gt;
</span></span><span id="95" class="l"><a class="l" href="#95"> 95: </a><span class="php-comment"> * &lt;placeInformation placeInformationName = &quot;key&quot;&gt;Value&lt;/placeinformation&gt;
</span></span><span id="96" class="l"><a class="l" href="#96"> 96: </a><span class="php-comment"> * &lt;/place&gt;
</span></span><span id="97" class="l"><a class="l" href="#97"> 97: </a><span class="php-comment"> *
</span></span><span id="98" class="l"><a class="l" href="#98"> 98: </a><span class="php-comment"> * @param array[num][assoc] $result
</span></span><span id="99" class="l"><a class="l" href="#99"> 99: </a><span class="php-comment"> * @return xml-string
</span></span><span id="100" class="l"><a class="l" href="#100">100: </a><span class="php-comment"> */</span>
</span><span id="101" class="l"><a class="l" href="#101">101: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-keyword1">function</span> <a id="_arrayToPisXml" href="#_arrayToPisXml">arrayToPisXml</a>(<span class="php-var">$result</span>) {
</span><span id="102" class="l"><a class="l" href="#102">102: </a> <span class="php-var">$xml</span> = <span class="php-keyword1">new</span> \SimpleXMLElement(XmlManager::<span class="php-var">$defaultXmlDoc</span>);
</span><span id="103" class="l"><a class="l" href="#103">103: </a> <span class="php-var">$actPlace</span> = <span class="php-num">0</span>;
</span><span id="104" class="l"><a class="l" href="#104">104: </a>
</span><span id="105" class="l"><a class="l" href="#105">105: </a> <span class="php-keyword1">foreach</span> (<span class="php-var">$result</span> <span class="php-keyword1">as</span> <span class="php-var">$row</span>) {
</span><span id="106" class="l"><a class="l" href="#106">106: </a>
</span><span id="107" class="l"><a class="l" href="#107">107: </a> <span class="php-comment">// fetch the place id of the row</span>
</span><span id="108" class="l"><a class="l" href="#108">108: </a> <span class="php-var">$placeId</span> = <span class="php-var">$row</span>[\database\PisSqlManager::<span class="php-var">$placeId</span>];
</span><span id="109" class="l"><a class="l" href="#109">109: </a>
</span><span id="110" class="l"><a class="l" href="#110">110: </a> <span class="php-comment">// if the id is new -&gt; add new place element</span>
</span><span id="111" class="l"><a class="l" href="#111">111: </a> <span class="php-keyword1">if</span> (<span class="php-var">$actPlace</span> != <span class="php-var">$placeId</span>) {
</span><span id="112" class="l"><a class="l" href="#112">112: </a> <span class="php-var">$actPlace</span> = <span class="php-var">$placeId</span>;
</span><span id="113" class="l"><a class="l" href="#113">113: </a> <span class="php-var">$place</span> = <span class="php-var">$xml</span>-&gt;addChild(XmlManager::<span class="php-var">$placeElementName</span>);
</span><span id="114" class="l"><a class="l" href="#114">114: </a> <span class="php-var">$place</span>-&gt;addAttribute(XmlManager::<span class="php-var">$placeIdAttrName</span>, <span class="php-var">$placeId</span>);
</span><span id="115" class="l"><a class="l" href="#115">115: </a> }
</span><span id="116" class="l"><a class="l" href="#116">116: </a>
</span><span id="117" class="l"><a class="l" href="#117">117: </a> <span class="php-comment">// add placeinformation elment</span>
</span><span id="118" class="l"><a class="l" href="#118">118: </a> <span class="php-var">$placeInfo</span> = <span class="php-var">$place</span>-&gt;addChild(XmlManager::<span class="php-var">$placeInfoElementName</span>, <span class="php-keyword2">utf8_encode</span>(<span class="php-var">$row</span>[\database\PisSqlManager::<span class="php-var">$infValue</span>]));
</span><span id="119" class="l"><a class="l" href="#119">119: </a> <span class="php-var">$placeInfo</span>-&gt;addAttribute(XmlManager::<span class="php-var">$placeInfoAttrName</span>, <span class="php-var">$row</span>[\database\PisSqlManager::<span class="php-var">$infName</span>]);
</span><span id="120" class="l"><a class="l" href="#120">120: </a> }
</span><span id="121" class="l"><a class="l" href="#121">121: </a> <span class="php-keyword1">return</span> <span class="php-var">$xml</span>-&gt;asXML();
</span><span id="122" class="l"><a class="l" href="#122">122: </a> }
</span><span id="123" class="l"><a class="l" href="#123">123: </a>
</span><span id="124" class="l"><a class="l" href="#124">124: </a> <span class="php-comment">/**
</span></span><span id="125" class="l"><a class="l" href="#125">125: </a><span class="php-comment"> * Method convert an array to a response xml for the pss service
</span></span><span id="126" class="l"><a class="l" href="#126">126: </a><span class="php-comment"> * &lt;place id =&quot;4711&quot;&gt;
</span></span><span id="127" class="l"><a class="l" href="#127">127: </a><span class="php-comment"> * &lt;placeService placeServiceName = &quot;key&quot;&gt;
</span></span><span id="128" class="l"><a class="l" href="#128">128: </a><span class="php-comment"> * &lt;sap&gt;sapValue&lt;/sap&gt;
</span></span><span id="129" class="l"><a class="l" href="#129">129: </a><span class="php-comment"> * &lt;request&gt;reqVaule&lt;/request&gt;
</span></span><span id="130" class="l"><a class="l" href="#130">130: </a><span class="php-comment"> * &lt;/placeService&gt;
</span></span><span id="131" class="l"><a class="l" href="#131">131: </a><span class="php-comment"> * &lt;/place&gt;
</span></span><span id="132" class="l"><a class="l" href="#132">132: </a><span class="php-comment"> *
</span></span><span id="133" class="l"><a class="l" href="#133">133: </a><span class="php-comment"> * @param array[num][assoc] $result
</span></span><span id="134" class="l"><a class="l" href="#134">134: </a><span class="php-comment"> * @return xml-string
</span></span><span id="135" class="l"><a class="l" href="#135">135: </a><span class="php-comment"> */</span>
</span><span id="136" class="l"><a class="l" href="#136">136: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-keyword1">function</span> <a id="_arrayToPssXml" href="#_arrayToPssXml">arrayToPssXml</a>(<span class="php-var">$result</span>) {
</span><span id="137" class="l"><a class="l" href="#137">137: </a> <span class="php-var">$xml</span> = <span class="php-keyword1">new</span> \SimpleXMLElement(XmlManager::<span class="php-var">$defaultXmlDoc</span>);
</span><span id="138" class="l"><a class="l" href="#138">138: </a> <span class="php-var">$actPlace</span> = <span class="php-num">0</span>;
</span><span id="139" class="l"><a class="l" href="#139">139: </a>
</span><span id="140" class="l"><a class="l" href="#140">140: </a> <span class="php-keyword1">foreach</span> (<span class="php-var">$result</span> <span class="php-keyword1">as</span> <span class="php-var">$row</span>) {
</span><span id="141" class="l"><a class="l" href="#141">141: </a>
</span><span id="142" class="l"><a class="l" href="#142">142: </a> <span class="php-comment">// fetch the place id of the row</span>
</span><span id="143" class="l"><a class="l" href="#143">143: </a> <span class="php-var">$placeId</span> = <span class="php-var">$row</span>[\database\PssSqlManager::<span class="php-var">$placeId</span>];
</span><span id="144" class="l"><a class="l" href="#144">144: </a>
</span><span id="145" class="l"><a class="l" href="#145">145: </a> <span class="php-comment">// if the id is new -&gt; add new place element</span>
</span><span id="146" class="l"><a class="l" href="#146">146: </a> <span class="php-keyword1">if</span> (<span class="php-var">$actPlace</span> != <span class="php-var">$placeId</span>) {
</span><span id="147" class="l"><a class="l" href="#147">147: </a> <span class="php-var">$actPlace</span> = <span class="php-var">$placeId</span>;
</span><span id="148" class="l"><a class="l" href="#148">148: </a> <span class="php-var">$place</span> = <span class="php-var">$xml</span>-&gt;addChild(XmlManager::<span class="php-var">$placeElementName</span>);
</span><span id="149" class="l"><a class="l" href="#149">149: </a> <span class="php-var">$place</span>-&gt;addAttribute(XmlManager::<span class="php-var">$placeIdAttrName</span>, <span class="php-var">$placeId</span>);
</span><span id="150" class="l"><a class="l" href="#150">150: </a> }
</span><span id="151" class="l"><a class="l" href="#151">151: </a>
</span><span id="152" class="l"><a class="l" href="#152">152: </a> <span class="php-comment">// add placeservice elment</span>
</span><span id="153" class="l"><a class="l" href="#153">153: </a> <span class="php-var">$placeSrv</span> = <span class="php-var">$place</span>-&gt;addChild(XmlManager::<span class="php-var">$placeServiceElementName</span>);
</span><span id="154" class="l"><a class="l" href="#154">154: </a> <span class="php-var">$placeSrv</span>-&gt;addAttribute(XmlManager::<span class="php-var">$placeServiceAttrName</span>, <span class="php-var">$row</span>[\database\PssSqlManager::<span class="php-var">$srvName</span>]);
</span><span id="155" class="l"><a class="l" href="#155">155: </a> <span class="php-var">$placeSrv</span>-&gt;addChild(XmlManager::<span class="php-var">$placeSapElementName</span>, <span class="php-var">$row</span>[\database\PssSqlManager::<span class="php-var">$srvSap</span>]);
</span><span id="156" class="l"><a class="l" href="#156">156: </a> <span class="php-var">$placeSrv</span>-&gt;addChild(XmlManager::<span class="php-var">$placeRequestElementName</span>, <span class="php-var">$row</span>[\database\PssSqlManager::<span class="php-var">$srvRequest</span>]);
</span><span id="157" class="l"><a class="l" href="#157">157: </a> }
</span><span id="158" class="l"><a class="l" href="#158">158: </a> <span class="php-keyword1">return</span> <span class="php-var">$xml</span>-&gt;asXML();
</span><span id="159" class="l"><a class="l" href="#159">159: </a> }
</span><span id="160" class="l"><a class="l" href="#160">160: </a>
</span><span id="161" class="l"><a class="l" href="#161">161: </a>}
</span><span id="162" class="l"><a class="l" href="#162">162: </a>
</span><span id="163" class="l"><a class="l" href="#163">163: </a><span class="xlang">?&gt;</span>
</span><span id="164" class="l"><a class="l" href="#164">164: </a></span></code></pre>
<div id="footer">
GeoApi API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@@ -7,7 +7,7 @@
<title>Tree | GeoApi</title>
<script type="text/javascript" src="resources/combined.js?112270826"></script>
<script type="text/javascript" src="elementlist.js?1501958955"></script>
<script type="text/javascript" src="elementlist.js?4049399837"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
@@ -38,6 +38,8 @@
<li><a href="namespace-Slim.Middleware.html">Middleware</a>
</li>
</ul></li>
<li><a href="namespace-utiliy.html">utiliy</a>
</li>
</ul>
</div>
@@ -48,9 +50,13 @@
<h3>Classes</h3>
<ul>
<li><a href="class-api.Api.html">api\Api</a></li>
<li><a href="class-api.PisApi.html">api\PisApi</a></li>
<li><a href="class-api.PssApi.html">api\PssApi</a></li>
<li><a href="class-api.SpsApi.html">api\SpsApi</a></li>
<li><a href="class-ArrayIterator.html">ArrayIterator</a></li>
<li><a href="class-config.DBConfig.html">config\DBConfig</a></li>
<li><a href="class-database.PisSqlManager.html">database\PisSqlManager</a></li>
<li><a href="class-database.PssSqlManager.html">database\PssSqlManager</a></li>
<li><a href="class-database.SpsSqlManager.html">database\SpsSqlManager</a></li>
<li><a href="class-database.SqlManager.html">database\SqlManager</a></li>
<li><a href="class-SimpleXMLElement.html">SimpleXMLElement</a></li>
@@ -71,6 +77,9 @@
<li><a href="class-Slim.Router.html">Slim\Router</a></li>
<li><a href="class-Slim.Slim.html">Slim\Slim</a></li>
<li><a href="class-Slim.View.html">Slim\View</a></li>
<li><a href="class-utiliy.ArrayManager.html">utiliy\ArrayManager</a></li>
<li><a href="class-utiliy.StringManager.html">utiliy\StringManager</a></li>
<li><a href="class-utiliy.XmlManager.html">utiliy\XmlManager</a></li>
</ul>
<h3>Interfaces</h3>
@@ -304,6 +313,20 @@
<ul>
<li><div class="notlast"><a href="class-api.PisApi.html"><span>api\PisApi</span></a>
</div>
</li>
<li><div class="notlast"><a href="class-api.PssApi.html"><span>api\PssApi</span></a>
</div>
</li>
<li class="last"><div class="last"><a href="class-api.SpsApi.html"><span>api\SpsApi</span></a>
@@ -331,6 +354,20 @@
<ul>
<li><div class="notlast"><a href="class-database.PisSqlManager.html"><span>database\PisSqlManager</span></a>
</div>
</li>
<li><div class="notlast"><a href="class-database.PssSqlManager.html"><span>database\PssSqlManager</span></a>
</div>
</li>
<li class="last"><div class="last"><a href="class-database.SpsSqlManager.html"><span>database\SpsSqlManager</span></a>
@@ -338,7 +375,28 @@
</ul></li>
<li class="last"><div class="last"><a href="class-database.SqlManager.html"><span>database\SqlManager</span></a>
<li><div class="notlast"><a href="class-database.SqlManager.html"><span>database\SqlManager</span></a>
</div>
</li>
<li><div class="notlast"><a href="class-utiliy.ArrayManager.html"><span>utiliy\ArrayManager</span></a>
</div>
</li>
<li><div class="notlast"><a href="class-utiliy.StringManager.html"><span>utiliy\StringManager</span></a>
</div>
</li>
<li class="last"><div class="last"><a href="class-utiliy.XmlManager.html"><span>utiliy\XmlManager</span></a>
</div>

View File

@@ -4,7 +4,10 @@ namespace api;
include_once "../../global.inc.php";
include_once PATH_DATABASE . "/SQLManager.php";
include_once PATH_UTILITTY . "/XmlManager.php";
include_once PATH_UTILITTY . "/JsonManager.php";
require_once PATH_3PARTY . "/Slim/Slim.php";
\Slim\Slim::registerAutoloader();
/**
@@ -21,18 +24,62 @@ abstract class Api extends \Slim\Slim {
protected $sqlManager;
/**
* Default-Constructor
* Variable for the serialazarion manager of the api
* @var <T>:SqlManager
*/
public function __construct() {
protected $serialManager;
/**
* Variable for the contentype of XML
* @var string
*/
protected static $contentypeXML = "application/xml;charset=utf-8";
/**
* Variable for the contentype of Json
* @var string
*/
protected static $contentypeJson = "application/json;charset=utf-8";
/**
* Variable for the regexstring to search json-contenttype
* @var string
*/
private static $jsonRegStr = '/json/';
/**
* Keyword for the accept parameter of the requestheader
* @var string
*/
private static $keyReqHeaderAccept = "Accept";
/**
* Constructor
* @param array[assoc] $headers - RequestHeader
*/
public function __construct($headers = array()) {
$this->connect();
parent::__construct();
// set content type
if ($headers && array_key_exists(self::$keyReqHeaderAccept, $headers) && preg_match(self::$jsonRegStr, $headers[self::$keyReqHeaderAccept])) {
$this->serialManager = new \utiliy\JsonManager();
$this->contentType(self::$contentypeJson);
} else {
$this->serialManager = new \utiliy\XmlManager();
$this->contentType(self::$contentypeXML);
}
}
/**
* Default-DeConstructor
*/
public function __destruct() {
$this->sqlManager = null;
// destroy the sqlManager
$this->sqlManager->closeConnection();
unset($this->sqlManager);
unset($this->serialManager);
}
/**

87
geoapi/api/PisApi.php Normal file
View File

@@ -0,0 +1,87 @@
<?php
namespace api;
include_once "../../global.inc.php";
include_once PATH_DATABASE . "/PisSqlManager.php";
include_once PATH_UTILITTY . "/ArrayManager.php";
require_once PATH_API . "/Api.php";
/**
* This class provides some spezial PisAPI methods
* @author stubbfel
* @since 20.06.2013
*/
class PisApi extends Api {
/**
* Route string for the pids paramter
* @var string
*/
public static $routeParameterPids = "/pid/:pid+";
/**
* Route string for the iNames paramter
* @var string
*/
public static $routeParameterINames = "/iname/:iname+";
/**
* Keyword for pidList arguments
* @var string
*/
public static $keyPidList = "pidList";
/**
* Keyword for iNameList arguments
* @var string
*/
public static $keyINameList = "iNameList";
/**
* max number of pid for each query
* @var int
*/
private static $maxPid = 10;
/**
* Constructor
* @param array[assoc] $headers - RequestHeader
*/
public function __construct($headers = array()) {
$this->sqlManager = new \database\PisSqlManager();
parent::__construct($headers);
}
/**
* Default-DeConstructor
*/
public function __destruct() {
parent::__destruct();
}
/**
* Method start a pis-query
* @param array $queryArgs
* @return query result as xml
*/
public function sendPisQuery($queryArgs) {
$pidList = \utiliy\ArrayManager::removeEmptyItmes($queryArgs[self::$keyPidList]);
if (array_key_exists(self::$keyINameList, $queryArgs)) {
$iNameList = \utiliy\ArrayManager::removeEmptyItmes($queryArgs[self::$keyINameList]);
} else {
$iNameList = array();
}
if (count($pidList) < self::$maxPid) {
$result = $this->sqlManager->sendPisQuery($pidList, $iNameList);
return $this->serialManager->arrayToPis($result);
}
return NULL;
}
}
?>

88
geoapi/api/PssApi.php Normal file
View File

@@ -0,0 +1,88 @@
<?php
namespace api;
include_once "../../global.inc.php";
include_once PATH_DATABASE . "/PssSqlManager.php";
include_once PATH_UTILITTY . "/XmlManager.php";
include_once PATH_UTILITTY . "/ArrayManager.php";
require_once PATH_API . "/Api.php";
/**
* This class provides some spezial PssAPI methods
* @author stubbfel
* @since 20.06.2013
*/
class PssApi extends Api {
/**
* Route string for the alias paramter
* @var string
*/
public static $routeParameterPids = "/pid/:pid+";
/**
* Route string for the iNames paramter
* @var string
*/
public static $routeParameterSNames = "/sname/:sname+";
/**
* Keyword for pidList arguments
* @var string
*/
public static $keyPidList = "pidList";
/**
* Keyword for iNameList arguments
* @var string
*/
public static $keySNameList = "sNameList";
/**
* max number of pid for each query
* @var int
*/
private static $maxPid = 10;
/**
* Constructor
* @param array[assoc] $headers - RequestHeader
*/
public function __construct($headers = array()) {
$this->sqlManager = new \database\PssSqlManager();
parent::__construct($headers);
}
/**
* Default-DeConstructor
*/
public function __destruct() {
parent::__destruct();
}
/**
* Method start a pis-query
* @param array $queryArgs
* @return query result as xml
*/
public function sendPssQuery($queryArgs) {
$pidList = \utiliy\ArrayManager::removeEmptyItmes($queryArgs[self::$keyPidList]);
if (array_key_exists(self::$keySNameList, $queryArgs)) {
$sNameList = \utiliy\ArrayManager::removeEmptyItmes($queryArgs[self::$keySNameList]);
} else {
$sNameList = array();
}
if (count($pidList) < self::$maxPid) {
$result = $this->sqlManager->sendPssQuery($pidList, $sNameList);
return $this->serialManager->arrayToPss($result);
}
return NULL;
}
}
?>

View File

@@ -4,7 +4,6 @@ namespace api;
include_once "../../global.inc.php";
include_once PATH_DATABASE . "/SpsSqlManager.php";
include_once PATH_UTILITTY . "/XmlManager.php";
require_once PATH_API . "/Api.php";
/**
@@ -14,6 +13,35 @@ require_once PATH_API . "/Api.php";
*/
class SpsApi extends Api {
/**
* Route string for the alias paramter
* @var string
*/
public static $routeParameterAlias = "/alias/:alias";
/**
* Route string for the domain paramter
* @var string
*/
public static $routeParameterDomain = "(/domain/:domain)";
/**
* Route string for the range paramter
* @var string
*/
public static $routeParameterRange = "(/range/:range)";
/**
* Route string for the Longitude paramter
* @var string
*/
public static $routeParameterLongitude = "/longitude/:longitude";
/**
* Route string for the latitude paramter
* @var string
*/
public static $routeParameterLatitude = "/latitude/:latitude";
/**
* Keyword for alias arguments
* @var string
@@ -44,55 +72,61 @@ class SpsApi extends Api {
*/
public static $keyLat = "latitude";
/**
* Keyword for range arguments
* @var string
*/
public static $keyRange = "range";
/*
* Varible for the range of the searchpolygon
* @var float
*/
private $range = 1;
private static $range = 0.001;
/*
* Varible for the fist chars of the string for a Polygon
* @var string
*/
private $polyStartStr = "GeomFromText('Polygon((";
private static $polyStartStr = "GeomFromText('Polygon((";
/*
* Varible for the last chars of the string for a Polygon
* @var string
*/
private $polyEndStr = "))'";
private static $polyEndStr = "))'";
/**
* maximum value of latitude
* @var float
*/
private $maxLat = 180;
private static $maxLat = 180;
/**
* minimum value of latitude
* @var float
*/
private $minLat = -180;
private static $minLat = -180;
/**
* maximum value of longitude
* @var float
*/
private $maxLong = 180;
private static $maxLong = 180;
/**
* minimum value of longitude
* @var float
*/
private $minLong = -180;
private static $minLong = -180;
/**
* Default-Constructor
* Constructor
* @param array[assoc] $headers - RequestHeader
*/
public function __construct() {
public function __construct($headers = array()) {
$this->sqlManager = new \database\SpsSqlManager();
parent::__construct();
$this->contentType("Content-type: application/xml;charset=utf-8");
parent::__construct($headers);
}
/**
@@ -107,9 +141,9 @@ class SpsApi extends Api {
* @param array $queryArgs
* @return querry result as xml
*/
public function sendSpsAliasQuery($queryArgs = array()) {
public function sendSpsAliasQuery($queryArgs) {
$result = $this->sqlManager->sendSpsAliasQuery($queryArgs);
return \utiliy\XmlManager::arrayToSpsXml($result);
return $this->serialManager->arrayToSps($result);
}
/**
@@ -117,20 +151,46 @@ class SpsApi extends Api {
* @param array $queryArgs
* @return querry result as xml
*/
public function sendSpsCoordinateQuery($queryArgs = array()) {
if (!array_key_exists(SpsApi::$keyLong, $queryArgs) || !array_key_exists(SpsApi::$keyLat, $queryArgs)) {
public function sendSpsCoordinateQuery($queryArgs) {
// check arguments of the query
if (!array_key_exists(self::$keyLong, $queryArgs) || !array_key_exists(self::$keyLat, $queryArgs)) {
return null;
}
$latitude = $queryArgs[SpsApi::$keyLat];
$longitude = $queryArgs[SpsApi::$keyLong];
$latitude = $queryArgs[self::$keyLat];
$longitude = $queryArgs[self::$keyLong];
if (!$this->validLatitude($latitude) || !$this->validLongitude($longitude)) {
return null;
}
$queryArgs[SpsApi::$keyPoly] = $this->createPolygon($latitude, $longitude, $this->range);
// build a request polygon
if (array_key_exists(self::$keyRange, $queryArgs)) {
$newRange = $queryArgs[self::$keyRange];
if ($this->validRange($newRange)) {
self::$range = $newRange;
} else {
return;
}
}
$queryArgs[self::$keyPoly] = $this->createPolygon($latitude, $longitude, self::$range);
// send querry
$result = $this->sqlManager->sendSpsCoordinateQuery($queryArgs);
return \utiliy\XmlManager::arrayToSpsXml($result);
return $this->serialManager->arrayToSps($result);
}
/**
* Method check if a string is a valid Longitude
* @param string $string
* @return bool
*/
private function validRange($string) {
$digit = str_replace(".", "", $string);
if (ctype_digit($digit)) {
return TRUE;
};
return FALSE;
}
/**
@@ -142,7 +202,7 @@ class SpsApi extends Api {
$digitLessPoint = str_replace(".", "", $string);
$digit = str_replace("-", "", $digitLessPoint);
if (ctype_digit($digit)) {
if ($string <= $this->maxLong && $string >= $this->minLong) {
if ($string <= self::$maxLong && $string >= self::$minLong) {
return TRUE;
}
};
@@ -158,7 +218,7 @@ class SpsApi extends Api {
$digitLessPoint = str_replace(".", "", $string);
$digit = str_replace("-", "", $digitLessPoint);
if (ctype_digit($digit)) {
if ($string <= $this->maxLat && $string >= $this->minLat) {
if ($string <= self::$maxLat && $string >= self::$minLat) {
return TRUE;
}
};
@@ -177,7 +237,7 @@ class SpsApi extends Api {
$minLong = $longitude - $range;
$maxLat = $latitude + $range;
$maxLong = $longitude + $range;
return $this->polyStartStr . "$minLat $minLong,$minLat $maxLong,$maxLat $maxLong,$maxLat $minLong,$minLat $minLong" . $this->polyEndStr;
return self::$polyStartStr . "$minLat $minLong,$minLat $maxLong,$maxLat $maxLong,$maxLat $minLong,$minLat $minLong" . self::$polyEndStr;
}
}

View File

@@ -4,6 +4,9 @@ namespace config;
/**
* This clas is an container for the DBConf
*
* @author stubbfel
* @since 20.06.2013
*/
class DBConfig {

View File

@@ -0,0 +1,105 @@
<?php
namespace database;
include_once "../../global.inc.php";
include_once PATH_UTILITTY . "/ArrayManager.php";
require_once PATH_DATABASE . "/SqlManager.php";
/**
* Description of PisSqlManager
*
* @author stubbfel
* @since 20.06.2013
*/
class PisSqlManager extends SQLManager {
/**
* Fieldname of the placeID
* @var string
*/
public static $placeId = "pid";
/**
* Fieldname of the name of the information
* @var string
*/
public static $infName = "iName";
/**
* Fieldname of the value of the information
* @var string
*/
public static $infValue = "iValue";
/**
* String for the select part of the query
* @var string
*/
private static $selectTerm = "SELECT pid, iName, iValue FROM pis WHERE ";
/**
* String for the orderby part of the query
* @var string
*/
private static $orderByTerm = " ORDER BY pid, iName";
/**
* String for the pid part of the query
* @var string
*/
private static $pidTerm = "pid = ";
/**
* String for the iName part of the query
* @var string
*/
private static $iNameTerm = "iName = ";
/**
* Default-Constructor
*/
public function __construct() {
parent::__construct();
}
/**
* Default-DeConstructor
*/
public function __destruct() {
parent::__destruct();
}
/**
* Methods send an query for the pis-service
* @param array $queryArgs
* @return array [num][assoc]
*/
public function sendPisQuery($pidList, $iNameList) {
// build query string
$query = self::$selectTerm;
if (\utiliy\ArrayManager::validIntList($pidList)) {
$query .= self::$openBracket;
$query .= \utiliy\ArrayManager::toSqlWhereString($pidList, self::$orTerm, self::$pidTerm);
$query .= self::$closeBracket;
} else {
return null;
}
if (count($iNameList) > 0 && \utiliy\ArrayManager::validAlphaNumList($iNameList)) {
$query .= self::$andTerm;
$query .= self::$openBracket;
$query .= \utiliy\ArrayManager::toSqlWhereString($iNameList, self::$orTerm, self::$iNameTerm);
$query .= self::$closeBracket;
}
$query .= self::$orderByTerm;
// send query
return $this->query($query);
}
}
?>

View File

@@ -0,0 +1,111 @@
<?php
namespace database;
include_once "../../global.inc.php";
include_once PATH_UTILITTY . "/ArrayManager.php";
require_once PATH_DATABASE . "/SqlManager.php";
/**
* Description of PssSqlManager
*
* @author stubbfel
* @since 20.06.2013
*/
class PssSqlManager extends SQLManager {
/**
* Fieldname of the placeID
* @var string
*/
public static $placeId = "pid";
/**
* Fieldname of the name of the service
* @var string
*/
public static $srvName = "sName";
/**
* Fieldname of the value of the information
* @var string
*/
public static $srvSap = "sap";
/**
* Fieldname of the value of the information
* @var string
*/
public static $srvRequest = "request";
/**
* String for the select part of the query
* @var string
*/
private static $selectTerm = "SELECT pid, sName, sap, request FROM pss WHERE ";
/**
* String for the orderby part of the query
* @var string
*/
private static $orderByTerm = " ORDER BY pid, sName";
/**
* String for the pid part of the query
* @var string
*/
private static $pidTerm = "pid = ";
/**
* String for the iName part of the query
* @var string
*/
private static $sNameTerm = "sName = ";
/**
* Default-Constructor
*/
public function __construct() {
parent::__construct();
}
/**
* Default-DeConstructor
*/
public function __destruct() {
parent::__destruct();
}
/**
* Methods send an query for the pis-service
* @param array $queryArgs
* @return array [num][assoc]
*/
public function sendPssQuery($pidList, $sNameList) {
// build query string
$query = self::$selectTerm;
if (\utiliy\ArrayManager::validIntList($pidList)) {
$query .= self::$openBracket;
$query .= \utiliy\ArrayManager::toSqlWhereString($pidList, self::$orTerm, self::$pidTerm);
$query .= self::$closeBracket;
} else {
return null;
}
if (count($sNameList) > 0 && \utiliy\ArrayManager::validAlphaNumList($sNameList)) {
$query .= self::$andTerm;
$query .= self::$openBracket;
$query .= \utiliy\ArrayManager::toSqlWhereString($sNameList, self::$orTerm, self::$sNameTerm);
$query .= self::$closeBracket;
}
$query .= self::$orderByTerm;
// send query
return $this->query($query);
}
}
?>

View File

@@ -14,6 +14,84 @@ require_once PATH_DATABASE . "/SqlManager.php";
*/
class SpsSqlManager extends SQLManager {
/**
* Fieldname of the placeID
* @var string
*/
public static $placeId = "id";
/**
* Fieldname of the parendId
* @var string
*/
public static $parentId = "parent";
/**
* Fieldname of the refpoint
* @var string
*/
public static $refpoint = "refpoint";
/**
* String for the select part of the query
* @var string
*/
private static $selectTerm = "SELECT DISTINCT id, parent, refpoint FROM sps WHERE ";
/**
* String for the alias part of the query
* @var string
*/
private static $aliasTerm = "alias = ";
/**
* String for the did part of the query
* @var string
*/
private static $domainTerm = "did = ";
/**
* String for the dNamet part of the query
* @var string
*/
private static $domainNameTerm = "dName = ";
/**
* first part of intersect-function
* @var string
*/
private static $interSectTermStart = "Intersects(";
/**
* last part of intersect-function
* @var string
*/
private static $interSectTermEnd = "),plan)";
/**
* first part of GeomFromText('Polygon-function
* @var string
*/
private static $polyStartStr = "GeomFromText('Polygon((";
/**
* last part of GeomFromText('Polygon-function
* @var string
*/
private static $polyEndStr = "))'";
/**
* maximium length of the value-string for an aliasname
* @var int
*/
private static $aliasMaxLenght = 32;
/**
* maximium length of the value-string for a domainname
* @var int
*/
private static $domainMaxLenght = 32;
/**
* Default-Constructor
*/
@@ -28,84 +106,12 @@ class SpsSqlManager extends SQLManager {
parent::__destruct();
}
/**
* Fieldname of the placeID
* @var string
*/
public static $placeId = "id";
/**
* Fieldname of the parendId
* @var string
*/
public static $parentId = "parent";
/**
* String for the select part of the query
* @var string
*/
private $selectTerm = "SELECT DISTINCT id, parent FROM sps WHERE ";
/**
* String for the alias part of the query
* @var string
*/
private $aliasTerm = "alias = ";
/**
* String for the did part of the query
* @var string
*/
private $domainTerm = "did = ";
/**
* String for the dNamet part of the query
* @var string
*/
private $domainNameTerm = "dName = ";
/**
* first part of intersect-function
* @var string
*/
private $interSectTermStart = "Intersects(";
/**
* last part of intersect-function
* @var string
*/
private $interSectTermEnd = "),plan)";
/**
* first part of GeomFromText('Polygon-function
* @var string
*/
private $polyStartStr = "GeomFromText('Polygon((";
/**
* last part of GeomFromText('Polygon-function
* @var string
*/
private $polyEndStr = "))'";
/**
* maximium length of the value-string for an aliasname
* @var int
*/
private $aliasMaxLenght = 32;
/**
* maximium length of the value-string for a domainname
* @var int
*/
private $domainMaxLenght = 32;
/**
* Methods send an query for the sps-service depends of alias
* @param array $queryArgs
* @return array [num][assoc]
*/
public function sendSpsAliasQuery($queryArgs = array()) {
public function sendSpsAliasQuery($queryArgs) {
// check arguments of the query
if (array_key_exists(\api\SpsApi::$keyAlias, $queryArgs)) {
@@ -120,9 +126,9 @@ class SpsSqlManager extends SQLManager {
}
// build query string
$query = $this->selectTerm;
$query = self::$selectTerm;
if ($this->validAliasString($alias)) {
$query .= $this->aliasTerm . $this->quoteTerm . $alias . $this->quoteTerm . $this->addDomainTerm($domain);
$query .= self::$aliasTerm . self::$quoteTerm . $alias . self::$quoteTerm . $this->addDomainTerm($domain);
} else {
return null;
}
@@ -136,7 +142,7 @@ class SpsSqlManager extends SQLManager {
* @param array $queryArgs
* @return array [num][assoc]
*/
public function sendSpsCoordinateQuery($queryArgs = array()) {
public function sendSpsCoordinateQuery($queryArgs) {
// check arguments of the query
if (array_key_exists(\api\SpsApi::$keyPoly, $queryArgs)) {
@@ -152,7 +158,7 @@ class SpsSqlManager extends SQLManager {
// build query string
if ($this->validPolyString($poly)) {
$query = $this->selectTerm . $this->interSectTermStart . $poly . $this->interSectTermEnd . $this->addDomainTerm($domain);
$query = self::$selectTerm . self::$interSectTermStart . $poly . self::$interSectTermEnd . $this->addDomainTerm($domain);
} else {
return null;
}
@@ -171,9 +177,9 @@ class SpsSqlManager extends SQLManager {
$result = null;
if ($domain != null && $this->validDomainString($domain)) {
if ($this->isDid($domain)) {
$result .= $this->andTerm . $this->domainTerm . $this->quoteTerm . $domain . $this->quoteTerm;
$result .= self::$andTerm . self::$domainTerm . self::$quoteTerm . $domain . self::$quoteTerm;
} else {
$result .= $this->andTerm . $this->domainNameTerm . $this->quoteTerm . $domain . $this->quoteTerm;
$result .= self::$andTerm . self::$domainNameTerm . self::$quoteTerm . $domain . self::$quoteTerm;
}
}
return $result;
@@ -185,7 +191,7 @@ class SpsSqlManager extends SQLManager {
* @return boolean
*/
private function validAliasString($alias) {
if ($this->validString($alias) && ctype_alnum($alias) && strlen($alias) <= $this->aliasMaxLenght) {
if (\utiliy\StringManager::validSQLString($alias) && ctype_alnum($alias) && strlen($alias) <= self::$aliasMaxLenght) {
return TRUE;
}
return FALSE;
@@ -197,7 +203,7 @@ class SpsSqlManager extends SQLManager {
* @return boolean
*/
private function validDomainString($domain) {
if ($this->validString($domain) && ctype_alnum($domain) && strlen($domain) <= $this->domainMaxLenght) {
if (\utiliy\StringManager::validSQLString($domain) && ctype_alnum($domain) && strlen($domain) <= self::$domainMaxLenght) {
return TRUE;
}
return FALSE;
@@ -209,7 +215,7 @@ class SpsSqlManager extends SQLManager {
* @return boolean
*/
private function validPolyString($poly) {
if ($this->validString($poly) && \utiliy\StringManager::startsWith($poly, $this->polyStartStr) && \utiliy\StringManager::endsWith($poly, $this->polyEndStr)) {
if (\utiliy\StringManager::validSQLString($poly) && \utiliy\StringManager::startsWith($poly, self::$polyStartStr) && \utiliy\StringManager::endsWith($poly, self::$polyEndStr)) {
return TRUE;
}
return FALSE;

View File

@@ -43,16 +43,34 @@ abstract class SqlManager {
private $link;
/**
* String for a and operrator
* String for an and-operrator
* @var string
*/
protected $andTerm = " and ";
protected static $andTerm = " and ";
/**
* String for an or-operrator
* @var string
*/
protected static $orTerm = " or ";
/**
* String for quotes in a query
* @var string
*/
protected $quoteTerm = "\"";
protected static $quoteTerm = "\"";
/**
* String for open Bracket in a query
* @var string
*/
protected static $openBracket = "(";
/**
* String for close Bracket in a query
* @var string
*/
protected static $closeBracket = ")";
/**
* Default-Constructor
@@ -61,29 +79,37 @@ abstract class SqlManager {
$this->serverAddress = \config\DBConfig::$sqlServer;
$this->dbName = \config\DBConfig::$sqlDBName;
$this->userName = \config\DBConfig::$sqlDBUser;
$this->userPw = \config\DBConfig::$sqlDBUserPW;
$this->userPw = \config\DBConfig::$sqlDBUserPW
;
}
/**
* Default-DEConstructor
*/
public function __destruct() {
// close connection
$this->closeConnection();
$this->serverAddress = null;
$this->dbName = null;
$this->userName = null;
$this->userPW = null;
// delete connection parameter
unset($this->serverAddress);
unset($this->dbName);
unset($this->userName);
unset($this->userPW
);
}
/**
* Method setup the connection to the Database
*/
public function connect() {
$this->link = mysql_connect($this->serverAddress, $this->userName, $this->userPw);
$this->link = mysql_connect($this->serverAddress , $this->userName , $this->userPw);
if (!$this->link) {
exit("No Connection: " . mysql_error());
}
$selected = mysql_select_db($this->dbName, $this->link);
$selected = mysql_select_db($this->dbName , $this->link);
if (!$selected) {
exit("No DB: " . mysql_error());
}
@@ -93,8 +119,11 @@ abstract class SqlManager {
* Method close the connection
*/
public function closeConnection() {
if ($this->link) {
if (
$this->link) {
mysql_close($this->link);
unset($this->link);
$this->link = null;
}
}
@@ -102,35 +131,32 @@ abstract class SqlManager {
/**
* Method send a query to the Datebase and return the result
* @param string $query
* @return result[num][assoc]
*/
protected function query($query) {
$mysqlResult = mysql_query($query, $this->link);
// send error
$mysqlResult = mysql_query($query, $this->link );
if (!$mysqlResult) {
// echo $query;
exit("Query error: " . mysql_error());
}
// fetch result
$rowNums = mysql_num_rows($mysqlResult);
$result = array();
for ($i = 0; $i < $rowNums; $i++) {
$row = mysql_fetch_assoc($mysqlResult);
$result[$i] = $row;
}
// call gc
mysql_free_result($mysqlResult);
return $result;
}
/**
* Method if the string is not a empty String (not only spaces and controlls)
* @param string $string
* @return boolean
*/
protected function validString($string) {
if (!ctype_space($string) && !ctype_cntrl($string)) {
return TRUE;
}
return FALSE;
}
}
?>

2
geoapi/insert/.htaccess Normal file
View File

@@ -0,0 +1,2 @@
RewriteEngine off
RewriteRule ^ index.php [QSA,L]

Some files were not shown because too many files have changed in this diff Show More