1: <?php
2:
3: namespace database;
4:
5: include_once "../../global.inc.php";
6: include_once PATH_DATABASE . "/SpsSqlManager.php";
7: include_once PATH_DATABASE . "/SqlManager.php";
8:
9: /**
10: * Description of SpsSqlManager
11: *
12: * @author stubbfel
13: * @since 20.06.2013
14: */
15: class SpsSqlManager extends SQLManager {
16:
17: /**
18: * Default-Constructor
19: */
20: public function __construct() {
21: parent::__construct();
22: }
23:
24: /**
25: * Default-DEConstructor
26: */
27: public function __destruct() {
28: parent::__destruct();
29: }
30:
31: /**
32: * Methods send an query for the sps-service
33: * @param array $queryArgs
34: * @return array [num][assoc]
35: */
36: public function sendSpsQuery($queryArgs = array()) {
37: // TODO Input validitaion
38: $alias = $queryArgs["alias"];
39: return $this->query("SELECT * FROM sps Where alias = \"$alias\"");
40: }
41:
42: }
43:
44: ?>
45: