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

Public Member Functions

 isValid ($value)

Data Fields

const NOT_VALID = 'sitemapChangefreqNotValid'
const INVALID = 'sitemapChangefreqInvalid'

Protected Attributes

 $_messageTemplates
 $_changeFreqs

Detailed Description

Definition at line 39 of file Changefreq.php.


Member Function Documentation

isValid ( value)

Validates if a string is valid as a sitemap changefreq

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

Parameters:
string$valuevalue to validate
Returns:
boolean

Implements Zend_Validate_Interface.

Definition at line 76 of file Changefreq.php.

Here is the call graph for this function:


Field Documentation

$_changeFreqs [protected]
Initial value:
 array(
        'always',  'hourly', 'daily', 'weekly',
        'monthly', 'yearly', 'never'
    )

Definition at line 63 of file Changefreq.php.

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

Reimplemented from Zend_Validate_Abstract.

Definition at line 53 of file Changefreq.php.

const INVALID = 'sitemapChangefreqInvalid'

Definition at line 46 of file Changefreq.php.

const NOT_VALID = 'sitemapChangefreqNotValid'

Validation key for not valid

Definition at line 45 of file Changefreq.php.


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