Exemple #1
0
 /**
  * @param $dsn
  * @throws
  */
 private function __construct($dsn)
 {
     // load the dsn data for use when creating the PDO
     $this->oDBConn = DBConnManager::Init()->Select($dsn);
     if (!$this->oDBConn) {
         throw new \Exception(__METHOD__ . " " . __LINE__ . " dns not found ({$dsn}).");
     }
 }
 /**
  * @param oM $m
  * @return mixed
  */
 public function Delete(oM $m)
 {
     oSADBConn::Init()->Delete($m->dsn);
     redirect("/Admin/DBConnManager/Index/");
 }