コード例 #1
0
 /**
  * Returns the *Singleton* instance of this class.
  *
  * @return Singleton The *Singleton* instance.
  */
 public static function getInstance()
 {
     if (!isset(self::$instance)) {
         self::$instance = new DBSingleTonUtility();
     }
     return self::$instance;
 }
コード例 #2
0
 public function processDBConnection()
 {
     $dbObj = DBSingleTonUtility::getInstance();
     $dbObj->initializeVar();
     return $dbObj->doDBConnection();
 }