PHP 클래스 Nette\Forms\Controls\TextBase

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

보호된 프로퍼티들

프로퍼티 타입 설명
$emptyValue string
$rawValue unfiltered submitted value

공개 메소드들

메소드 설명
addFilter ( $filter ) : self Appends input string filter callback.
addRule ( $validator, $message = NULL, $arg = NULL )
getControl ( )
getEmptyValue ( ) : string Returns the special value which is treated as empty string.
getValue ( ) : string Returns control's value.
setEmptyValue ( $value ) : self Sets the special value which is treated as empty string.
setMaxLength ( $length ) : self Sets the maximum number of allowed characters.
setNullable ( $value = TRUE ) : self Sets whether getValue() returns NULL instead of empty string.
setValue ( $value ) : self Sets control's value.
validate ( ) : void Performs the server side validation.

보호된 메소드들

메소드 설명
getRenderedValue ( ) : string | null

메소드 상세

addFilter() 공개 메소드

Appends input string filter callback.
public addFilter ( $filter ) : self
리턴 self

addRule() 공개 메소드

public addRule ( $validator, $message = NULL, $arg = NULL )

getControl() 공개 메소드

public getControl ( )

getEmptyValue() 공개 메소드

Returns the special value which is treated as empty string.
public getEmptyValue ( ) : string
리턴 string

getRenderedValue() 보호된 메소드

protected getRenderedValue ( ) : string | null
리턴 string | null

getValue() 공개 메소드

Returns control's value.
public getValue ( ) : string
리턴 string

setEmptyValue() 공개 메소드

Sets the special value which is treated as empty string.
public setEmptyValue ( $value ) : self
리턴 self

setMaxLength() 공개 메소드

Sets the maximum number of allowed characters.
public setMaxLength ( $length ) : self
리턴 self

setNullable() 공개 메소드

Sets whether getValue() returns NULL instead of empty string.
public setNullable ( $value = TRUE ) : self
리턴 self

setValue() 공개 메소드

Sets control's value.
public setValue ( $value ) : self
리턴 self

validate() 공개 메소드

Performs the server side validation.
public validate ( ) : void
리턴 void

프로퍼티 상세

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

protected string $emptyValue
리턴 string

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

unfiltered submitted value
protected $rawValue