00001 <?php 00026 require_once 'Zend/Validate/Abstract.php'; 00027 00031 require_once 'Zend/Uri.php'; 00032 00044 class Zend_Validate_Sitemap_Loc extends Zend_Validate_Abstract 00045 { 00050 const NOT_VALID = 'invalidSitemapLoc'; 00051 00057 protected $_messageTemplates = array( 00058 self::NOT_VALID => "'%value%' is not a valid sitemap location", 00059 ); 00060 00069 public function isValid($value) 00070 { 00071 $this->_setValue($value); 00072 00073 if (!is_string($value)) { 00074 return false; 00075 } 00076 00077 return Zend_Uri::check($value); 00078 } 00079 }