add refpoint and parentid to pis andd pss

This commit is contained in:
stubbfel
2013-08-19 17:54:44 +02:00
parent 000dbb1995
commit eec7111a89
4 changed files with 42 additions and 10 deletions

View File

@@ -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);