class PHPExcel_Style_Conditional implements PHPExcel_IComparable

PHPExcelStyleConditional

Constants

CONDITION_NONE

CONDITION_CELLIS

CONDITION_CONTAINSTEXT

CONDITION_EXPRESSION

OPERATOR_NONE

OPERATOR_BEGINSWITH

OPERATOR_ENDSWITH

OPERATOR_EQUAL

OPERATOR_GREATERTHAN

OPERATOR_GREATERTHANOREQUAL

OPERATOR_LESSTHAN

OPERATOR_LESSTHANOREQUAL

OPERATOR_NOTEQUAL

OPERATOR_CONTAINSTEXT

OPERATOR_NOTCONTAINS

OPERATOR_BETWEEN

Methods

__construct()

Create a new PHPExcelStyleConditional

string
getConditionType()

Get Condition type

setConditionType(string $pValue = PHPExcel_Style_Conditional::CONDITION_NONE)

Set Condition type

string
getOperatorType()

Get Operator type

setOperatorType(string $pValue = PHPExcel_Style_Conditional::OPERATOR_NONE)

Set Operator type

string
getText()

Get text

setText(string $value = null)

Set text

string
getCondition() deprecated

Get Condition

setCondition(string $pValue = '') deprecated

Set Condition

string[]
getConditions()

Get Conditions

setConditions(string[] $pValue)

Set Conditions

addCondition(string $pValue = '')

Add Condition

getStyle()

Get Style

string
getHashCode()

Get hash code

__clone()

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

Details

at line 105
__construct()

Create a new PHPExcelStyleConditional

at line 120
string getConditionType()

Get Condition type

Return Value

string

at line 131
PHPExcel_Style_Conditional setConditionType(string $pValue = PHPExcel_Style_Conditional::CONDITION_NONE)

Set Condition type

Parameters

string $pValue PHPExcelStyleConditional condition type

Return Value

PHPExcel_Style_Conditional

at line 142
string getOperatorType()

Get Operator type

Return Value

string

at line 153
PHPExcel_Style_Conditional setOperatorType(string $pValue = PHPExcel_Style_Conditional::OPERATOR_NONE)

Set Operator type

Parameters

string $pValue PHPExcelStyleConditional operator type

Return Value

PHPExcel_Style_Conditional

at line 164
string getText()

Get text

Return Value

string

at line 175
PHPExcel_Style_Conditional setText(string $value = null)

Set text

Parameters

string $value

Return Value

PHPExcel_Style_Conditional

at line 187
string getCondition() deprecated

deprecated Deprecated, use getConditions instead

Get Condition

Return Value

string

at line 203
PHPExcel_Style_Conditional setCondition(string $pValue = '') deprecated

deprecated Deprecated, use setConditions instead

Set Condition

Parameters

string $pValue Condition

Return Value

PHPExcel_Style_Conditional

at line 217
string[] getConditions()

Get Conditions

Return Value

string[]

at line 228
PHPExcel_Style_Conditional setConditions(string[] $pValue)

Set Conditions

Parameters

string[] $pValue Condition

Return Value

PHPExcel_Style_Conditional

at line 243
PHPExcel_Style_Conditional addCondition(string $pValue = '')

Add Condition

Parameters

string $pValue Condition

Return Value

PHPExcel_Style_Conditional

at line 254
PHPExcel_Style getStyle()

Get Style

Return Value

PHPExcel_Style

at line 266
PHPExcel_Style_Conditional setStyle(PHPExcel_Style $pValue = null)

Set Style

Parameters

PHPExcel_Style $pValue

Return Value

PHPExcel_Style_Conditional

Exceptions

PHPExcel_Exception

at line 277
string getHashCode()

Get hash code

Return Value

string Hash code

at line 291
__clone()

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