aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Entity/Entry.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2017-06-12 10:26:01 +0200
committerGitHub <noreply@github.com>2017-06-12 10:26:01 +0200
commit977ac0a1d6c5e42d0bb2cbb13eac6213fefbb175 (patch)
tree820044e9630a1e0db88d9838370b6e50e6e0b376 /src/Wallabag/CoreBundle/Entity/Entry.php
parent873f6b8e03079d11fab541aa5b0bc6f8fe2d645e (diff)
parentd9da186fb8427ca82d1fd7c4e2ef3f5032781f23 (diff)
downloadwallabag-977ac0a1d6c5e42d0bb2cbb13eac6213fefbb175.tar.gz
wallabag-977ac0a1d6c5e42d0bb2cbb13eac6213fefbb175.tar.zst
wallabag-977ac0a1d6c5e42d0bb2cbb13eac6213fefbb175.zip
Merge pull request #3208 from wallabag/is-public
Add ability to filter public entries & use it in the API
Diffstat (limited to 'src/Wallabag/CoreBundle/Entity/Entry.php')
-rw-r--r--src/Wallabag/CoreBundle/Entity/Entry.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/Entry.php b/src/Wallabag/CoreBundle/Entity/Entry.php
index 9a7dd4e7..a0503c39 100644
--- a/src/Wallabag/CoreBundle/Entity/Entry.php
+++ b/src/Wallabag/CoreBundle/Entity/Entry.php
@@ -685,6 +685,21 @@ 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 * Also used in the API.
690 *
691 * @VirtualProperty
692 * @SerializedName("is_public")
693 * @Groups({"entries_for_user"})
694 *
695 * @return bool
696 */
697 public function isPublic()
698 {
699 return null !== $this->uid;
700 }
701
702 /**
688 * @return string 703 * @return string
689 */ 704 */
690 public function getHttpStatus() 705 public function getHttpStatus()