Overview

Namespaces

  • None
  • PHP
  • Slim
    • Exception
    • Http
    • Middleware

Classes

  • Api
  • HelloApi
  • HelloApiSQLManager
  • SpsApi
  • SpsSqlManager
  • SQLManager
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: 
 3: include_once "../../global.inc.php";
 4: include_once PATH_DATABASE . "/SQLManager.php";
 5: require_once PATH_3PARTY . "/Slim/Slim.php";
 6: \Slim\Slim::registerAutoloader();
 7: 
 8: abstract class Api extends \Slim\Slim {
 9: 
10:     protected $sqlManager;
11: 
12:     public function __construct() {
13:         if (!$this->sqlManager) {
14:             echo "bla";
15:             $this->sqlManager = new SQLManager();
16:         }
17:         parent::__construct();
18:     }
19: 
20:     public function __destruct() {
21:         $this->sqlManager = null;
22:         //parent::__destruct();
23:     }
24: 
25:     public function connect() {
26:         $this->sqlManager->connect();
27:     }
28: 
29: }
30: 
31: ?>
32: 
GeoApi API documentation generated by ApiGen 2.8.0