replace legacy calls with new one

This commit is contained in:
Nicolas Lœuillet
2015-01-27 13:08:02 +01:00
parent d692b3b08d
commit b9ec99e25b
4 changed files with 169 additions and 3 deletions

View File

@ -0,0 +1,25 @@
<?php
namespace Wallabag\CoreBundle\Helper;
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;
}
}