/** * * @return Conexion */ public static function get_instance() { if (!self::$_instance instanceof self) { self::$_instance = new self(); } return self::$_instance; }
public static function getInstance() { if (!self::$_instance) { // If no instance then make one self::$_instance = new self(); } return self::$_instance; }
public static function getConexionPDO() { if (!self::$_instance instanceof self) { self::$_instance = new self(); } //self::$_conexion->query("SET NAMES 'utf8'"); return self::$_conexion; }