Moodle  2.2.1
http://www.collinsharper.com
Zend_Validate_Sitemap_Lastmod Class Reference
Inheritance diagram for Zend_Validate_Sitemap_Lastmod:
Collaboration diagram for Zend_Validate_Sitemap_Lastmod:

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])(:[0-5][0-9])?(\\+|-)([0-1][0-9]|2[0-3]):[0-5][0-9])?$/'
const NOT_VALID = 'sitemapLastmodNotValid'
const INVALID = 'sitemapLastmodInvalid'

Protected Attributes

 $_messageTemplates

Detailed Description

Definition at line 39 of file Lastmod.php.


Member Function Documentation

isValid ( value)

Validates if a string is valid as a sitemap lastmod

http://www.sitemaps.org/protocol.php#lastmoddef

Parameters:
string$valuevalue to validate
Returns:
boolean

Implements Zend_Validate_Interface.

Definition at line 72 of file Lastmod.php.

Here is the call graph for this function:


Field Documentation

$_messageTemplates [protected]
Initial value:
 array(
        self::NOT_VALID => "'%value%' is no valid sitemap lastmod",
        self::INVALID   => "Invalid type given, the value should be a string",
    )

Reimplemented from Zend_Validate_Abstract.

Definition at line 59 of file Lastmod.php.

const INVALID = 'sitemapLastmodInvalid'

Definition at line 52 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])(:[0-5][0-9])?(\\+|-)([0-1][0-9]|2[0-3]):[0-5][0-9])?$/'

Regular expression to use when validating

Definition at line 45 of file Lastmod.php.

const NOT_VALID = 'sitemapLastmodNotValid'

Validation key for not valid

Definition at line 51 of file Lastmod.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations