]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Bookmark/classes/Bookmark.php
Woops, put the bookmark get* functions in the wrong file.
[quix0rs-gnu-social.git] / plugins / Bookmark / classes / Bookmark.php
index 95518631a3468cfb7536f646ec17d4cf44675335..87e81240d07b0bd9280e4401a1e82a7b3b1c2618 100644 (file)
@@ -97,6 +97,24 @@ class Bookmark extends Managed_DataObject
         return self::getByPK(array('uri' => $stored->getUri()));
     }
 
+    public function getDescription()
+    {
+        return $this->description;
+    }
+
+    public function getTitle()
+    {
+        return $this->title;
+    }
+
+    public function getUrl()
+    {
+        if (empty($this->url)) {
+            throw new InvalidUrlException($this->url);
+        }
+        return $this->url;
+    }
+
     /**
      * Get the bookmark that a user made for an URL
      *