Constants

TYPE_NONE

TYPE_NONE = 'none'

TYPE_CUSTOM

TYPE_CUSTOM = 'custom'

TYPE_DATE

TYPE_DATE = 'date'

TYPE_DECIMAL

TYPE_DECIMAL = 'decimal'

TYPE_LIST

TYPE_LIST = 'list'

TYPE_TEXTLENGTH

TYPE_TEXTLENGTH = 'textLength'

TYPE_TIME

TYPE_TIME = 'time'

TYPE_WHOLE

TYPE_WHOLE = 'whole'

STYLE_STOP

STYLE_STOP = 'stop'

STYLE_WARNING

STYLE_WARNING = 'warning'

STYLE_INFORMATION

STYLE_INFORMATION = 'information'

OPERATOR_BETWEEN

OPERATOR_BETWEEN = 'between'

OPERATOR_EQUAL

OPERATOR_EQUAL = 'equal'

OPERATOR_GREATERTHAN

OPERATOR_GREATERTHAN = 'greaterThan'

OPERATOR_GREATERTHANOREQUAL

OPERATOR_GREATERTHANOREQUAL = 'greaterThanOrEqual'

OPERATOR_LESSTHAN

OPERATOR_LESSTHAN = 'lessThan'

OPERATOR_LESSTHANOREQUAL

OPERATOR_LESSTHANOREQUAL = 'lessThanOrEqual'

OPERATOR_NOTBETWEEN

OPERATOR_NOTBETWEEN = 'notBetween'

OPERATOR_NOTEQUAL

OPERATOR_NOTEQUAL = 'notEqual'

Properties

$formula1

$formula1 : string

Formula 1.

Type

string

$formula2

$formula2 : string

Formula 2.

Type

string

$type

$type : string

Type.

Type

string

$errorStyle

$errorStyle : string

Error style.

Type

string

$operator

$operator : string

Operator.

Type

string

$allowBlank

$allowBlank : bool

Allow Blank.

Type

bool

$showDropDown

$showDropDown : bool

Show DropDown.

Type

bool

$showInputMessage

$showInputMessage : bool

Show InputMessage.

Type

bool

$showErrorMessage

$showErrorMessage : bool

Show ErrorMessage.

Type

bool

$errorTitle

$errorTitle : string

Error title.

Type

string

$error

$error : string

Error.

Type

string

$promptTitle

$promptTitle : string

Prompt title.

Type

string

$prompt

$prompt : string

Prompt.

Type

string

Methods

__construct()

__construct() : mixed

Create a new DataValidation.

Returns

mixed —

getFormula1()

getFormula1() : string

Get Formula 1.

Returns

string —

setFormula1()

setFormula1(string  $value) : $this

Set Formula 1.

Parameters

string $value

Returns

$this —

getFormula2()

getFormula2() : string

Get Formula 2.

Returns

string —

setFormula2()

setFormula2(string  $value) : $this

Set Formula 2.

Parameters

string $value

Returns

$this —

getType()

getType() : string

Get Type.

Returns

string —

setType()

setType(string  $value) : $this

Set Type.

Parameters

string $value

Returns

$this —

getErrorStyle()

getErrorStyle() : string

Get Error style.

Returns

string —

setErrorStyle()

setErrorStyle(string  $value) : $this

Set Error style.

Parameters

string $value

see self::STYLE_*

Returns

$this —

getOperator()

getOperator() : string

Get Operator.

Returns

string —

setOperator()

setOperator(string  $value) : $this

Set Operator.

Parameters

string $value

Returns

$this —

getAllowBlank()

getAllowBlank() : bool

Get Allow Blank.

Returns

bool —

setAllowBlank()

setAllowBlank(bool  $value) : $this

Set Allow Blank.

Parameters

bool $value

Returns

$this —

getShowDropDown()

getShowDropDown() : bool

Get Show DropDown.

Returns

bool —

setShowDropDown()

setShowDropDown(bool  $value) : $this

Set Show DropDown.

Parameters

bool $value

Returns

$this —

getShowInputMessage()

getShowInputMessage() : bool

Get Show InputMessage.

Returns

bool —

setShowInputMessage()

setShowInputMessage(bool  $value) : $this

Set Show InputMessage.

Parameters

bool $value

Returns

$this —

getShowErrorMessage()

getShowErrorMessage() : bool

Get Show ErrorMessage.

Returns

bool —

setShowErrorMessage()

setShowErrorMessage(bool  $value) : $this

Set Show ErrorMessage.

Parameters

bool $value

Returns

$this —

getErrorTitle()

getErrorTitle() : string

Get Error title.

Returns

string —

setErrorTitle()

setErrorTitle(string  $value) : $this

Set Error title.

Parameters

string $value

Returns

$this —

getError()

getError() : string

Get Error.

Returns

string —

setError()

setError(string  $value) : $this

Set Error.

Parameters

string $value

Returns

$this —

getPromptTitle()

getPromptTitle() : string

Get Prompt title.

Returns

string —

setPromptTitle()

setPromptTitle(string  $value) : $this

Set Prompt title.

Parameters

string $value

Returns

$this —

getPrompt()

getPrompt() : string

Get Prompt.

Returns

string —

setPrompt()

setPrompt(string  $value) : $this

Set Prompt.

Parameters

string $value

Returns

$this —

getHashCode()

getHashCode() : string

Get hash code.

Returns

string —

Hash code

__clone()

__clone() : mixed

Implement PHP __clone to create a deep clone, not just a shallow copy.

Returns

mixed —