protected function filterValue($in) { if (!preg_match('~^(?:http|ftp)s?://~i', (string) $in)) { $in = 'http://' . $in; } return $in; }