Validate/Sitemap/Changefreq.php

Show: PublicProtectedPrivateinherited
Table of Contents
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_Changefreq

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

>VConstant  NOT_VALID = 'sitemapChangefreqNotValid'
Validation key for not valid
>VConstant  INVALID = 'sitemapChangefreqInvalid'

Properties

>VPropertyprotectedarray $_changeFreqs = array('always', 'hourly', 'daily', 'weekly', 'monthly', 'yearly', 'never')
Valid change frequencies
Default valuearray('always', 'hourly', 'daily', 'weekly', 'monthly', 'yearly', 'never')Details
Type
array
>VPropertyprotectedarray $_messageTemplates = array(self::NOT_VALID => "'%value%' is not a valid sitemap changefreq", self::INVALID => "Invalid type given. String expected")
Validation failure message template definitions
Default valuearray(self::NOT_VALID => "'%value%' is not a valid sitemap changefreq", self::INVALID => "Invalid type given. String expected")Details
Type
array

Methods

methodpublicisValid(string $value) : boolean

Validates if a string is valid as a sitemap changefreq

Parameters
NameTypeDescription
$valuestring

value to validate

Returns
TypeDescription
boolean
Details
Link
 
Documentation was generated by phpDocumentor 2.2.0 .