/** * Main Automatic_DNS_Prefetch Instance * * Ensures only one instance of Automatic_DNS_Prefetch is loaded or can be loaded. * * @since 1.0.0 * @static * @see Automatic_DNS_Prefetch() * @return Main Automatic_DNS_Prefetch instance */ public static function instance($file = '', $version = '1.0.0') { if (is_null(self::$_instance)) { self::$_instance = new self($file, $version); } return self::$_instance; }
/** * Returns the main instance of Automatic_DNS_Prefetch to prevent the need to use globals. * * @since 1.0.0 * @return object Automatic_DNS_Prefetch */ function Automatic_DNS_Prefetch() { $instance = Automatic_DNS_Prefetch::instance(__FILE__, '1.0.0'); return $instance; }