]> git.mxchange.org Git - friendica-addons.git/blobdiff - dav/common/dav_carddav_backend_std.inc.php
Merge remote branch 'upstream/master'
[friendica-addons.git] / dav / common / dav_carddav_backend_std.inc.php
index c63a74f30aaeac0baf6cad3f6f4fd6fa47368f1f..e257d156bdb4f448d06f2f1c72ad6ff3d56cfd31 100644 (file)
 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
         */