wallabag/inc/poche/Url.class.php

31 lines
631 B
PHP
Raw Normal View History

2013-08-04 20:58:31 +02:00
<?php
/**
2014-01-28 10:36:04 +01:00
* wallabag, self hostable application allowing you to not miss any content anymore
2013-08-04 20:58:31 +02:00
*
2014-01-28 10:36:04 +01:00
* @category wallabag
* @author Nicolas Lœuillet <nicolas@loeuillet.org>
2013-08-04 20:58:31 +02:00
* @copyright 2013
* @license http://opensource.org/licenses/MIT see COPYING file
2013-08-04 20:58:31 +02:00
*/
class Url
{
public $url;
function __construct($url)
{
$this->url = base64_decode($url);
}
public function getUrl() {
return $this->url;
}
public function setUrl($url) {
$this->url = $url;
}
public function isCorrect() {
return filter_var($this->url, FILTER_VALIDATE_URL) !== FALSE;
2013-08-04 20:58:31 +02:00
}
}