aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Entity/Entry.php
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2017-06-10 15:00:52 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2017-06-10 15:00:52 +0200
commite8911f7c09fa9d8009d7c7ee9fb0c181d2ffbc31 (patch)
treeb778069a347addc274496020f9c2bc9327320d0d /src/Wallabag/CoreBundle/Entity/Entry.php
parent873f6b8e03079d11fab541aa5b0bc6f8fe2d645e (diff)
downloadwallabag-e8911f7c09fa9d8009d7c7ee9fb0c181d2ffbc31.tar.gz
wallabag-e8911f7c09fa9d8009d7c7ee9fb0c181d2ffbc31.tar.zst
wallabag-e8911f7c09fa9d8009d7c7ee9fb0c181d2ffbc31.zip
Add isPublic filter on entries
Diffstat (limited to 'src/Wallabag/CoreBundle/Entity/Entry.php')
-rw-r--r--src/Wallabag/CoreBundle/Entity/Entry.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/Entry.php b/src/Wallabag/CoreBundle/Entity/Entry.php
index 9a7dd4e7..365030c7 100644
--- a/src/Wallabag/CoreBundle/Entity/Entry.php
+++ b/src/Wallabag/CoreBundle/Entity/Entry.php
@@ -685,6 +685,16 @@ class Entry
685 } 685 }
686 686
687 /** 687 /**
688 * Used in the entries filter so it's more explicit for the end user than the uid.
689 *
690 * @return bool
691 */
692 public function isPublic()
693 {
694 return null !== $this->uid;
695 }
696
697 /**
688 * @return string 698 * @return string
689 */ 699 */
690 public function getHttpStatus() 700 public function getHttpStatus()