Ejemplo n.º 1
0
 /**
  * Validates the URI. Uses the {@link \Bumble\Uri\UriParser} to parse the link. If the link is
  * successfully parsed, it return true, else false.
  * @param $value The url to parse.
  * @return True if valid, else false.
  */
 public function isValid($value)
 {
     parent::isValid($value);
     $parser = new \Bumble\Uri\UriParser();
     $this->URI = $parser->parse($value);
     if (!$this->URI) {
         $this->error(self::INVALID_URI, $value);
         return false;
     }
     if ($this->hasMessages()) {
         return false;
     }
     return true;
 }