/** * instantiate return a singleton object for the Debug class * * The method return a new object if it does not exist, otherwise return the existing object * @access public * @return Debug */ public static function instantiate() { if (self::$s_oInstance === null) { self::$s_oInstance = new BCRiantoInfoObject(); } if (self::$s_oxmlBCRiantoDoc === null) { self::$s_oxmlBCRiantoDoc = new DOMDocument(); self::$s_oxmlBCRiantoDoc->load("xml/contact.xml"); } return self::$s_oInstance; }