finish #53
This commit is contained in:
@@ -26,11 +26,17 @@ class SpsSqlManager extends SQLManager {
|
||||
*/
|
||||
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 FROM sps WHERE ";
|
||||
private static $selectTerm = "SELECT DISTINCT id, parent, refpoint FROM sps WHERE ";
|
||||
|
||||
/**
|
||||
* String for the alias part of the query
|
||||
@@ -122,7 +128,7 @@ class SpsSqlManager extends SQLManager {
|
||||
// build query string
|
||||
$query = self::$selectTerm;
|
||||
if ($this->validAliasString($alias)) {
|
||||
$query .= self::$aliasTerm . self::$quoteTerm . $alias . self::$quoteTerm . $this->addDomainTerm($domain);
|
||||
$query .= self::$aliasTerm . self::$quoteTerm . $alias . self::$quoteTerm . $this->addDomainTerm($domain);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
@@ -209,8 +215,7 @@ class SpsSqlManager extends SQLManager {
|
||||
* @return boolean
|
||||
*/
|
||||
private function validPolyString($poly) {
|
||||
if (\utiliy\StringManager::validSQLString($poly) && \utiliy\StringManager::startsWith($poly, self::$polyStartStr)
|
||||
&& \utiliy\StringManager::endsWith($poly, self::$polyEndStr)) {
|
||||
if (\utiliy\StringManager::validSQLString($poly) && \utiliy\StringManager::startsWith($poly, self::$polyStartStr) && \utiliy\StringManager::endsWith($poly, self::$polyEndStr)) {
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
|
||||
Reference in New Issue
Block a user