PHP 클래스 Zend_Validate_StringLength

상속: extends Zend_Validate_Abstract
파일 보기 프로젝트 열기: kimai/kimai 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_encoding string | null Encoding to use
$_max integer | null If null, there is no maximum length
$_messageTemplates array
$_messageVariables array
$_min integer Minimum length

공개 메소드들

메소드 설명
__construct ( integer | array | Zend_Config $options = [] ) Sets validator options
getEncoding ( ) : string Returns the actual encoding
getMax ( ) : integer | null Returns the max option
getMin ( ) : integer Returns the min option
isValid ( string $value ) : boolean Defined by Zend_Validate_Interface
setEncoding ( string $encoding = null ) : Zend_Validate_StringLength Sets a new encoding to use
setMax ( integer | null $max ) : Zend_Validate_StringLength Sets the max option
setMin ( integer $min ) : Zend_Validate_StringLength Sets the min option

메소드 상세

__construct() 공개 메소드

Sets validator options
public __construct ( integer | array | Zend_Config $options = [] )
$options integer | array | Zend_Config

getEncoding() 공개 메소드

Returns the actual encoding
public getEncoding ( ) : string
리턴 string

getMax() 공개 메소드

Returns the max option
public getMax ( ) : integer | null
리턴 integer | null

getMin() 공개 메소드

Returns the min option
public getMin ( ) : integer
리턴 integer

isValid() 공개 메소드

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).
public isValid ( string $value ) : boolean
$value string
리턴 boolean

setEncoding() 공개 메소드

Sets a new encoding to use
public setEncoding ( string $encoding = null ) : Zend_Validate_StringLength
$encoding string
리턴 Zend_Validate_StringLength

setMax() 공개 메소드

Sets the max option
public setMax ( integer | null $max ) : Zend_Validate_StringLength
$max integer | null
리턴 Zend_Validate_StringLength Provides a fluent interface

setMin() 공개 메소드

Sets the min option
public setMin ( integer $min ) : Zend_Validate_StringLength
$min integer
리턴 Zend_Validate_StringLength Provides a fluent interface

프로퍼티 상세

$_encoding 보호되어 있는 프로퍼티

Encoding to use
protected string|null $_encoding
리턴 string | null

$_max 보호되어 있는 프로퍼티

If null, there is no maximum length
protected int|null $_max
리턴 integer | null

$_messageTemplates 보호되어 있는 프로퍼티

protected array $_messageTemplates
리턴 array

$_messageVariables 보호되어 있는 프로퍼티

protected array $_messageVariables
리턴 array

$_min 보호되어 있는 프로퍼티

Minimum length
protected int $_min
리턴 integer