aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Helper/Url.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-27 13:08:02 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-27 13:08:02 +0100
commitb9ec99e25b5972bb3d0702919519382ebc37dacc (patch)
treeba70a157b17cb0b64f52634296fdf6dd03c4edc5 /src/Wallabag/CoreBundle/Helper/Url.php
parentd692b3b08d26d3f945d52f6cf5e9f90335d74cdd (diff)
downloadwallabag-b9ec99e25b5972bb3d0702919519382ebc37dacc.tar.gz
wallabag-b9ec99e25b5972bb3d0702919519382ebc37dacc.tar.zst
wallabag-b9ec99e25b5972bb3d0702919519382ebc37dacc.zip
replace legacy calls with new one
Diffstat (limited to 'src/Wallabag/CoreBundle/Helper/Url.php')
-rw-r--r--src/Wallabag/CoreBundle/Helper/Url.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/Url.php b/src/Wallabag/CoreBundle/Helper/Url.php
new file mode 100644
index 00000000..b076e7c7
--- /dev/null
+++ b/src/Wallabag/CoreBundle/Helper/Url.php
@@ -0,0 +1,25 @@
1<?php
2
3namespace Wallabag\CoreBundle\Helper;
4
5class Url
6{
7 public $url;
8
9 function __construct($url)
10 {
11 $this->url = base64_decode($url);
12 }
13
14 public function getUrl() {
15 return $this->url;
16 }
17
18 public function setUrl($url) {
19 $this->url = $url;
20 }
21
22 public function isCorrect() {
23 return filter_var($this->url, FILTER_VALIDATE_URL) !== FALSE;
24 }
25} \ No newline at end of file