]>
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 | 7 | * @copyright 2013 |
3602405e | 8 | * @license http://opensource.org/licenses/MIT see COPYING file |
eb1af592 NL |
9 | */ |
10 | ||
6ad93dff NL |
11 | namespace Wallabag\Wallabag; |
12 | ||
eb1af592 NL |
13 | class Url |
14 | { | |
15 | public $url; | |
16 | ||
17 | function __construct($url) | |
18 | { | |
19 | $this->url = base64_decode($url); | |
20 | } | |
21 | ||
22 | public function getUrl() { | |
23 | return $this->url; | |
24 | } | |
25 | ||
26 | public function setUrl($url) { | |
27 | $this->url = $url; | |
28 | } | |
29 | ||
ec397236 | 30 | public function isCorrect() { |
149df445 | 31 | return filter_var($this->url, FILTER_VALIDATE_URL) !== FALSE; |
eb1af592 | 32 | } |
eb1af592 | 33 | } |