예제 #1
0
 /**
  *  closeConnections closes database connection
  * @param : No parameters
  * <p> This function closes database connection</p>
  * @return void
  */
 public static function closeConnections()
 {
     try {
         foreach (self::$connections as $connection) {
             try {
                 $connection->close();
             } catch (Exception $closeErr) {
             }
         }
         self::$connections = null;
     } catch (Exception $err) {
         echo $err->getMessage();
     }
 }