[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/zend/Zend/Validate/ -> StringLength.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: 253 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Zend_Validate_StringLength:: (8 methods):
  __construct()
  getMin()
  setMin()
  getMax()
  setMax()
  getEncoding()
  setEncoding()
  isValid()


Class: Zend_Validate_StringLength  - X-Ref


__construct($options = array()   X-Ref
Sets validator options

param: integer|array|Zend_Config $options
return: void

getMin()   X-Ref
Returns the min option

return: integer

setMin($min)   X-Ref
Sets the min option

param: integer $min
return: Zend_Validate_StringLength Provides a fluent interface

getMax()   X-Ref
Returns the max option

return: integer|null

setMax($max)   X-Ref
Sets the max option

param: integer|null $max
return: Zend_Validate_StringLength Provides a fluent interface

getEncoding()   X-Ref
Returns the actual encoding

return: string

setEncoding($encoding = null)   X-Ref
Sets a new encoding to use

param: string $encoding
return: Zend_Validate_StringLength

isValid($value)   X-Ref
Defined by Zend_Validate_Interface

Returns true if and only if the string length of $value is at least the min option and
no greater than the max option (when the max option is not null).

param: string $value
return: boolean



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