X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=dav%2Fcommon%2Fdav_carddav_backend_std.inc.php;h=e257d156bdb4f448d06f2f1c72ad6ff3d56cfd31;hb=47396b1d284dffbb994233597cb9fca8a1e33be7;hp=c63a74f30aaeac0baf6cad3f6f4fd6fa47368f1f;hpb=915145fc2773bf7ac00ba58370de2c4abd4fc678;p=friendica-addons.git diff --git a/dav/common/dav_carddav_backend_std.inc.php b/dav/common/dav_carddav_backend_std.inc.php index c63a74f3..e257d156 100644 --- a/dav/common/dav_carddav_backend_std.inc.php +++ b/dav/common/dav_carddav_backend_std.inc.php @@ -14,6 +14,23 @@ class Sabre_CardDAV_Backend_Std extends Sabre_CardDAV_Backend_Abstract { + /** + * @var null|Sabre_CardDAV_Backend_Std + */ + private static $instance = null; + + /** + * @static + * @return Sabre_CardDAV_Backend_Std + */ + public static function getInstance() { + if (self::$instance == null) { + self::$instance = new Sabre_CardDAV_Backend_Std(); + } + return self::$instance; + } + + /** * Sets up the object */