Example #1
0
 /**
  * Creates a connection only once and returns it
  */
 public static function getSharedConnection()
 {
     if (self::$_connection === null) {
         $connection = self::_createConnection();
         self::$_connection = $connection;
     }
     return self::$_connection;
 }