/** * @ singleton method used to instantiate class object * @ access public * @ return class instance */ public static function instance() { // check if class object is instantiated if (self::$_instance === NULL or !is_object(self::$_instance) or !self::$_instance instanceof EE_Import) { self::$_instance = new self(); } return self::$_instance; }
/** * Resets the importer * @return EE_Import */ public static function reset() { self::$_instance = null; return self::instance(); }