diff options
author | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2016-11-17 09:40:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-17 09:40:46 +0100 |
commit | 66336f65714433996bb5574662d50d9a8cf03aff (patch) | |
tree | 756e3b340815a321c10aacaab2a6d03046a53b9a /src/Wallabag/CoreBundle/Entity | |
parent | e042a5d78fc7676eb399f61d199e8ec0045fbd1f (diff) | |
parent | 9e2440fe15633532c2bf62feac1535a85d6eb840 (diff) | |
download | wallabag-66336f65714433996bb5574662d50d9a8cf03aff.tar.gz wallabag-66336f65714433996bb5574662d50d9a8cf03aff.tar.zst wallabag-66336f65714433996bb5574662d50d9a8cf03aff.zip |
Merge pull request #2547 from wallabag/add-option-markasread
Added a configuration to define the redirection after archiving an entry
Diffstat (limited to 'src/Wallabag/CoreBundle/Entity')
-rw-r--r-- | src/Wallabag/CoreBundle/Entity/Config.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/Config.php b/src/Wallabag/CoreBundle/Entity/Config.php index d0f0e3f3..bfc2fff8 100644 --- a/src/Wallabag/CoreBundle/Entity/Config.php +++ b/src/Wallabag/CoreBundle/Entity/Config.php | |||
@@ -16,6 +16,9 @@ use Wallabag\UserBundle\Entity\User; | |||
16 | */ | 16 | */ |
17 | class Config | 17 | class Config |
18 | { | 18 | { |
19 | const REDIRECT_TO_HOMEPAGE = 0; | ||
20 | const REDIRECT_TO_CURRENT_PAGE = 1; | ||
21 | |||
19 | /** | 22 | /** |
20 | * @var int | 23 | * @var int |
21 | * | 24 | * |
@@ -88,6 +91,13 @@ class Config | |||
88 | private $pocketConsumerKey; | 91 | private $pocketConsumerKey; |
89 | 92 | ||
90 | /** | 93 | /** |
94 | * @var int | ||
95 | * | ||
96 | * @ORM\Column(name="action_mark_as_read", type="integer", nullable=true) | ||
97 | */ | ||
98 | private $actionMarkAsRead; | ||
99 | |||
100 | /** | ||
91 | * @ORM\OneToOne(targetEntity="Wallabag\UserBundle\Entity\User", inversedBy="config") | 101 | * @ORM\OneToOne(targetEntity="Wallabag\UserBundle\Entity\User", inversedBy="config") |
92 | */ | 102 | */ |
93 | private $user; | 103 | private $user; |
@@ -310,6 +320,26 @@ class Config | |||
310 | } | 320 | } |
311 | 321 | ||
312 | /** | 322 | /** |
323 | * @return int | ||
324 | */ | ||
325 | public function getActionMarkAsRead() | ||
326 | { | ||
327 | return $this->actionMarkAsRead; | ||
328 | } | ||
329 | |||
330 | /** | ||
331 | * @param int $actionMarkAsRead | ||
332 | * | ||
333 | * @return Config | ||
334 | */ | ||
335 | public function setActionMarkAsRead($actionMarkAsRead) | ||
336 | { | ||
337 | $this->actionMarkAsRead = $actionMarkAsRead; | ||
338 | |||
339 | return $this; | ||
340 | } | ||
341 | |||
342 | /** | ||
313 | * @param TaggingRule $rule | 343 | * @param TaggingRule $rule |
314 | * | 344 | * |
315 | * @return Config | 345 | * @return Config |