add refpoint and parentid to pis andd pss
This commit is contained in:
@@ -32,17 +32,29 @@ class PisSqlManager extends SQLManager {
|
||||
*/
|
||||
public static $infValue = "iValue";
|
||||
|
||||
/**
|
||||
* 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 pid, iName, iValue FROM pis WHERE ";
|
||||
private static $selectTerm = "SELECT pid, parent, refpoint, iName, iValue FROM pis WHERE ";
|
||||
|
||||
/**
|
||||
* String for the select all part of the query
|
||||
* @var string
|
||||
*/
|
||||
private static $selectAllTerm = "SELECT pid, iName, iValue FROM pis ";
|
||||
private static $selectAllTerm = "SELECT pid, parent, refpoint, iName, iValue FROM pis ";
|
||||
|
||||
/**
|
||||
* String for the orderby part of the query
|
||||
@@ -105,7 +117,7 @@ class PisSqlManager extends SQLManager {
|
||||
if ($query == self::$selectTerm) {
|
||||
$query = self::$selectAllTerm;
|
||||
}
|
||||
|
||||
|
||||
$query .= self::$orderByTerm;
|
||||
// send query
|
||||
return $this->query($query);
|
||||
|
||||
Reference in New Issue
Block a user