function __construct() { parent::__construct("campus"); if (!isset($GLOBALS["DB_ADAPTER"])) { $GLOBALS["DB_ADAPTER"] = new DBCon(); $GLOBALS["DB_ADAPTER"]->Link(); } $this->db = $GLOBALS["DB_ADAPTER"]; $this->db->setTBL(self::getClass()); // ArrayClass function }
function __construct() { parent::__construct("Client"); if (!isset($GLOBALS["App"]["DBAdapter"])) { include_once "include/data/DBCon.php"; $GLOBALS["App"]["DBAdapter"] = new DBCon(); $GLOBALS["App"]["DBAdapter"]->Link(); } $this->db = $GLOBALS["App"]["DBAdapter"]; $this->db->setTBL(self::getClass()); }