/** * Obtains the singleton instance of xBoilerplate, creating if necessary. * * Your index.php should handle the post-instantiation initialisation by calling pageStart(). * * @static * @return an instantiated instance of xBoilerplate */ public static function getInstance() { if (self::$_instance == null) { self::$_instance = new xBoilerplate(); } return self::$_instance; }
/** * Triggers the overriding of the standard xBoilerplate singleton with this version. * @static * */ public static function overrideStandardXBoilerplate() { xBoilerplate::$_instance = new PvtTestXBoilerplate(); }