web/lib/Zend/Validate/Sitemap/Lastmod.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: Lastmod.php 22668 2010-07-25 14:50:46Z thomas $
    20  * @version    $Id: Lastmod.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  */
    31  * @link       http://www.sitemaps.org/protocol.php Sitemaps XML format
    31  * @link       http://www.sitemaps.org/protocol.php Sitemaps XML format
    32  *
    32  *
    33  * @category   Zend
    33  * @category   Zend
    34  * @package    Zend_Validate
    34  * @package    Zend_Validate
    35  * @subpackage Sitemap
    35  * @subpackage Sitemap
    36  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    36  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    37  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    37  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    38  */
    38  */
    39 class Zend_Validate_Sitemap_Lastmod extends Zend_Validate_Abstract
    39 class Zend_Validate_Sitemap_Lastmod extends Zend_Validate_Abstract
    40 {
    40 {
    41     /**
    41     /**
    55      * Validation failure message template definitions
    55      * Validation failure message template definitions
    56      *
    56      *
    57      * @var array
    57      * @var array
    58      */
    58      */
    59     protected $_messageTemplates = array(
    59     protected $_messageTemplates = array(
    60         self::NOT_VALID => "'%value%' is no valid sitemap lastmod",
    60         self::NOT_VALID => "'%value%' is not a valid sitemap lastmod",
    61         self::INVALID   => "Invalid type given. String expected",
    61         self::INVALID   => "Invalid type given. String expected",
    62     );
    62     );
    63 
    63 
    64     /**
    64     /**
    65      * Validates if a string is valid as a sitemap lastmod
    65      * Validates if a string is valid as a sitemap lastmod