API Documentation

Validate/File/WordCount.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Validate
version
$Id: WordCount.php 22697 2010-07-26 21:14:47Z alexander $
Classes
Zend_Validate_File_WordCount

Description

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.

Zend_Validate_File_WordCount

Extends from
Zend_Validate_File_Count
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Validate
Constants
TOO_MUCH
TOO_LESS
NOT_FOUND
Properties
$_messageTemplates
Methods
isValid
_throw

Description

Validator for counting all words in a file

Constants

TOO_MUCH

 TOO_MUCH = 'fileWordCountTooMuch'

Details

value
fileWordCountTooMuch

TOO_LESS

 TOO_LESS = 'fileWordCountTooLess'

Details

value
fileWordCountTooLess

NOT_FOUND

 NOT_FOUND = 'fileWordCountNotFound'

Details

value
fileWordCountNotFound

Properties

$_messageTemplates

array $_messageTemplates = 'array'

Details

$_messageTemplates
array
Error message templates
visibility
protected
default
array
final
false
static
false

Methods

_throw

_throw( string $file, string $errorType ) : false

Throws an error of the given type

Arguments
$file
string
$errorType
string
Output
false
Details
visibility
protected
final
false
static
false

isValid

isValid( string $value, array $file = null ) : boolean

Defined by Zend_Validate_Interface

Returns true if and only if the counted words are at least min and not bigger than max (when max is not null).

Arguments
$value
string
Filename to check for word count
$file
array
File data from Zend_File_Transfer
Output
boolean
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.