add cordinatesquerries

This commit is contained in:
stubbfel
2013-06-24 18:35:39 +02:00
parent b857c4386b
commit 8fb78ca082
5 changed files with 173 additions and 20 deletions

View File

@@ -46,7 +46,7 @@ abstract class SqlManager {
* Default-Constructor
*/
public function __construct() {
$this->serverAddress = \config\DBConfig::$sqlServer;
$this->dbName = \config\DBConfig::$sqlDBName;
$this->userName = \config\DBConfig::$sqlDBUser;
@@ -108,6 +108,21 @@ abstract class SqlManager {
return $result;
}
protected function validString($string) {
if (!ctype_space($string) && !ctype_cntrl($string)) {
return TRUE;
}
return FALSE;
}
protected function startsWith($haystack, $needle) {
return !strncmp($haystack, $needle, strlen($needle));
}
protected function endsWith($haystack, $needle) {
return (substr($haystack, -strlen($needle)) === $needle);
}
}
?>