Validate/Sitemap/Lastmod.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to license@zend.com so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Validate
- Subpackage
- Sitemap
- Version
- $Id$
\Zend_Validate_Sitemap_Lastmod
Package: Zend_Validate\Sitemap
Validates whether a given value is valid as a sitemap value
- Parent(s)
- \Zend_Validate_Abstract
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Link
- Sitemaps XML format
Constants
LASTMOD_REGEX
= '/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])(T([0-1][0-9]|2[0-3])(:[0-5][0-9])(:[0-5][0-9])?(\\+|-)([0-1][0-9]|2[0-3]):[0-5][0-9])?$/'
Regular expression to use when validating
Properties
array $_messageTemplates = array(self::NOT_VALID => "'%value%' is not a valid sitemap lastmod", self::INVALID => "Invalid type given. String expected")
Validation failure message template definitions
Default value
array(self::NOT_VALID => "'%value%' is not a valid sitemap lastmod", self::INVALID => "Invalid type given. String expected")
Details- Type
- array