[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/zend/Zend/Validate/File/ -> WordCount.php (summary)

Zend Framework LICENSE

Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
License: http://framework.zend.com/license/new-bsd New BSD License
Version: $Id$
File Size: 101 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Zend_Validate_File_WordCount:: (2 methods):
  isValid()
  _throw()


Class: Zend_Validate_File_WordCount  - X-Ref

Validator for counting all words in a file

isValid($value, $file = null)   X-Ref
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).

param: string $value Filename to check for word count
param: array  $file  File data from Zend_File_Transfer
return: boolean

_throw($file, $errorType)   X-Ref
Throws an error of the given type

param: string $file
param: string $errorType
return: false



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1