web/lib/Zend/Validate/Sitemap/Loc.php
changeset 807 877f952ae2bd
parent 207 621fa6caec0c
child 1230 68c69c656a2c
equal deleted inserted replaced
805:5e7a0fedabdf 807:877f952ae2bd
    13  * to license@zend.com so we can send you a copy immediately.
    13  * to license@zend.com so we can send you a copy immediately.
    14  *
    14  *
    15  * @category   Zend
    15  * @category   Zend
    16  * @package    Zend_Validate
    16  * @package    Zend_Validate
    17  * @subpackage Sitemap
    17  * @subpackage Sitemap
    18  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    18  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    20  * @version    $Id: Loc.php 22668 2010-07-25 14:50:46Z thomas $
    20  * @version    $Id: Loc.php 24593 2012-01-05 20:35:02Z matthew $
    21  */
    21  */
    22 
    22 
    23 /**
    23 /**
    24  * @see Zend_Validate_Abstract
    24  * @see Zend_Validate_Abstract
    25  */
    25  */
    36  * @link       http://www.sitemaps.org/protocol.php Sitemaps XML format
    36  * @link       http://www.sitemaps.org/protocol.php Sitemaps XML format
    37  *
    37  *
    38  * @category   Zend
    38  * @category   Zend
    39  * @package    Zend_Validate
    39  * @package    Zend_Validate
    40  * @subpackage Sitemap
    40  * @subpackage Sitemap
    41  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    41  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    42  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    42  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    43  */
    43  */
    44 class Zend_Validate_Sitemap_Loc extends Zend_Validate_Abstract
    44 class Zend_Validate_Sitemap_Loc extends Zend_Validate_Abstract
    45 {
    45 {
    46     /**
    46     /**
    54      * Validation failure message template definitions
    54      * Validation failure message template definitions
    55      *
    55      *
    56      * @var array
    56      * @var array
    57      */
    57      */
    58     protected $_messageTemplates = array(
    58     protected $_messageTemplates = array(
    59         self::NOT_VALID => "'%value%' is no valid sitemap location",
    59         self::NOT_VALID => "'%value%' is not a valid sitemap location",
    60         self::INVALID   => "Invalid type given. String expected",
    60         self::INVALID   => "Invalid type given. String expected",
    61     );
    61     );
    62 
    62 
    63     /**
    63     /**
    64      * Validates if a string is valid as a sitemap location
    64      * Validates if a string is valid as a sitemap location