diff options
Diffstat (limited to 'inc/poche/Url.class.php')
-rw-r--r-- | inc/poche/Url.class.php | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/inc/poche/Url.class.php b/inc/poche/Url.class.php deleted file mode 100644 index d9172b7d..00000000 --- a/inc/poche/Url.class.php +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | <?php | ||
2 | /** | ||
3 | * wallabag, self hostable application allowing you to not miss any content anymore | ||
4 | * | ||
5 | * @category wallabag | ||
6 | * @author Nicolas LÅ“uillet <nicolas@loeuillet.org> | ||
7 | * @copyright 2013 | ||
8 | * @license http://opensource.org/licenses/MIT 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 | |||
28 | public function isCorrect() { | ||
29 | return filter_var($this->url, FILTER_VALIDATE_URL) !== FALSE; | ||
30 | } | ||
31 | } \ No newline at end of file | ||