Public Member Functions | |
isValid ($value) | |
Data Fields | |
const | 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]){2}(\\+|-)([0-1][0-9]|2[0-3]):[0-5][0-9])?$/m' |
const | NOT_VALID = 'invalidSitemapLastmod' |
Protected Attributes | |
$_messageTemplates |
Definition at line 39 of file Lastmod.php.
isValid | ( | $ | value ) |
Validates if a string is valid as a sitemap lastmod
http://www.sitemaps.org/protocol.php#lastmoddef
string | $value | value to validate |
Implements Zend_Validate_Interface.
Definition at line 70 of file Lastmod.php.
$_messageTemplates [protected] |
array(
self::NOT_VALID => "'%value%' is not a valid sitemap lastmod",
)
Reimplemented from Zend_Validate_Abstract.
Definition at line 58 of file Lastmod.php.
const 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]){2}(\\+|-)([0-1][0-9]|2[0-3]):[0-5][0-9])?$/m' |
Regular expression to use when validating
Definition at line 45 of file Lastmod.php.
const NOT_VALID = 'invalidSitemapLastmod' |
Validation key for not valid
Definition at line 51 of file Lastmod.php.