コード例 #1
0
 /**
  * 
  * @return Conexion
  */
 public static function get_instance()
 {
     if (!self::$_instance instanceof self) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
コード例 #2
0
ファイル: singleton.php プロジェクト: FEZR85/TIES-OUT
 public static function getInstance()
 {
     if (!self::$_instance) {
         // If no instance then make one
         self::$_instance = new self();
     }
     return self::$_instance;
 }
コード例 #3
0
 public static function getConexionPDO()
 {
     if (!self::$_instance instanceof self) {
         self::$_instance = new self();
     }
     //self::$_conexion->query("SET NAMES 'utf8'");
     return self::$_conexion;
 }