]>
Commit | Line | Data |
---|---|---|
eb1af592 NL |
1 | <?php |
2 | /** | |
c95b78a8 | 3 | * wallabag, self hostable application allowing you to not miss any content anymore |
eb1af592 | 4 | * |
c95b78a8 NL |
5 | * @category wallabag |
6 | * @author Nicolas Lœuillet <nicolas@loeuillet.org> | |
eb1af592 NL |
7 | * @copyright 2013 |
8 | * @license http://www.wtfpl.net/ see COPYING file | |
9 | */ | |
10 | ||
11 | class Url | |
12 | { | |
13 | public $url; | |
14 | ||
15 | function __construct($url) | |
16 | { | |
17 | $this->url = base64_decode($url); | |
18 | } | |
19 | ||
20 | public function getUrl() { | |
21 | return $this->url; | |
22 | } | |
23 | ||
24 | public function setUrl($url) { | |
25 | $this->url = $url; | |
26 | } | |
27 | ||
ec397236 | 28 | public function isCorrect() { |
149df445 | 29 | return filter_var($this->url, FILTER_VALIDATE_URL) !== FALSE; |
eb1af592 | 30 | } |
eb1af592 | 31 | } |