コード例 #1
0
 /**
  * Entry point.
  * Enables you to retrieve staticly the DbWrapper instance.
  *
  * @access public
  * @author Joel Bout, <*****@*****.**>
  * @throws core_kernel_persistence_Exception
  * @return core_kernel_classes_DbWrapper
  */
 public static function singleton()
 {
     $returnValue = null;
     if (!isset(self::$instance)) {
         $c = __CLASS__;
         self::$instance = new $c();
     }
     $returnValue = self::$instance;
     return $returnValue;
 }