add cordinatesquerries
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user