wallabag/inc/poche/Url.class.php

31 lines
631 B
PHP
Raw Normal View History

2013-08-04 18:58:31 +00:00
<?php
/**
2014-01-28 09:36:04 +00:00
* wallabag, self hostable application allowing you to not miss any content anymore
2013-08-04 18:58:31 +00:00
*
2014-01-28 09:36:04 +00:00
* @category wallabag
* @author Nicolas Lœuillet <nicolas@loeuillet.org>
2013-08-04 18:58:31 +00:00
* @copyright 2013
* @license http://opensource.org/licenses/MIT see COPYING file
2013-08-04 18:58:31 +00: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 18:58:31 +00:00
}
}