Table of Contents
Interfaces
- WizardInterface
Constants
-
EXPRESSIONS
= [\PhpOffice\PhpSpreadsheet\Style\Conditional::OPERATOR_CONTAINSTEXT => 'NOT(ISERROR(SEARCH(%s,%s)))', \PhpOffice\PhpSpreadsheet\Style\Conditional::OPERATOR_NOTCONTAINS => 'ISERROR(SEARCH(%s,%s))', \PhpOffice\PhpSpreadsheet\Style\Conditional::OPERATOR_BEGINSWITH => 'LEFT(%s,LEN(%s))=%s', \PhpOffice\PhpSpreadsheet\Style\Conditional::OPERATOR_ENDSWITH => 'RIGHT(%s,LEN(%s))=%s']
-
MAGIC_OPERATIONS
= ['contains' => \PhpOffice\PhpSpreadsheet\Style\Conditional::OPERATOR_CONTAINSTEXT, 'doesntContain' => \PhpOffice\PhpSpreadsheet\Style\Conditional::OPERATOR_NOTCONTAINS, 'doesNotContain' => \PhpOffice\PhpSpreadsheet\Style\Conditional::OPERATOR_NOTCONTAINS, 'beginsWith' => \PhpOffice\PhpSpreadsheet\Style\Conditional::OPERATOR_BEGINSWITH, 'startsWith' => \PhpOffice\PhpSpreadsheet\Style\Conditional::OPERATOR_BEGINSWITH, 'endsWith' => \PhpOffice\PhpSpreadsheet\Style\Conditional::OPERATOR_ENDSWITH]
-
OPERATORS
= [\PhpOffice\PhpSpreadsheet\Style\Conditional::OPERATOR_CONTAINSTEXT => \PhpOffice\PhpSpreadsheet\Style\Conditional::CONDITION_CONTAINSTEXT, \PhpOffice\PhpSpreadsheet\Style\Conditional::OPERATOR_NOTCONTAINS => \PhpOffice\PhpSpreadsheet\Style\Conditional::CONDITION_NOTCONTAINSTEXT, \PhpOffice\PhpSpreadsheet\Style\Conditional::OPERATOR_BEGINSWITH => \PhpOffice\PhpSpreadsheet\Style\Conditional::CONDITION_BEGINSWITH, \PhpOffice\PhpSpreadsheet\Style\Conditional::OPERATOR_ENDSWITH => \PhpOffice\PhpSpreadsheet\Style\Conditional::CONDITION_ENDSWITH]
Properties
-
$cellRange
: string
-
$expression
: string
-
$operand
: string
-
$operandValueType
: string
-
$operator
: string
-
$referenceCell
: string
-
$referenceColumn
: int
-
$referenceRow
: int
-
$stopIfTrue
: bool
-
$style
: Style|null
Methods
-
__call()
: self
-
__construct()
: mixed
-
beginsWith()
: TextValue
-
contains()
: TextValue
-
doesNotContain()
: TextValue
-
doesntContain()
: TextValue
-
endsWith()
: TextValue
-
fromConditional()
: WizardInterface
-
getCellRange()
: string
-
getConditional()
: Conditional
-
getStopIfTrue()
: bool
-
getStyle()
: Style
-
reverseAdjustCellRef()
: string
-
setCellRange()
: void
-
setStopIfTrue()
: void
-
setStyle()
: void
-
startsWith()
: TextValue
-
adjustConditionsForCellReferences()
: array<string|int, mixed>
-
cellConditionCheck()
: string
-
conditionCellAdjustment()
: string
-
operand()
: void
-
operator()
: void
-
reverseCellAdjustment()
: string
-
setExpression()
: void
-
setReferenceCellForExpressions()
: void
-
validateOperand()
: string
-
wrapValue()
: string
EXPRESSIONS
protected
mixed
EXPRESSIONS
= [\PhpOffice\PhpSpreadsheet\Style\Conditional::OPERATOR_CONTAINSTEXT => 'NOT(ISERROR(SEARCH(%s,%s)))', \PhpOffice\PhpSpreadsheet\Style\Conditional::OPERATOR_NOTCONTAINS => 'ISERROR(SEARCH(%s,%s))', \PhpOffice\PhpSpreadsheet\Style\Conditional::OPERATOR_BEGINSWITH => 'LEFT(%s,LEN(%s))=%s', \PhpOffice\PhpSpreadsheet\Style\Conditional::OPERATOR_ENDSWITH => 'RIGHT(%s,LEN(%s))=%s']
MAGIC_OPERATIONS
protected
mixed
MAGIC_OPERATIONS
= ['contains' => \PhpOffice\PhpSpreadsheet\Style\Conditional::OPERATOR_CONTAINSTEXT, 'doesntContain' => \PhpOffice\PhpSpreadsheet\Style\Conditional::OPERATOR_NOTCONTAINS, 'doesNotContain' => \PhpOffice\PhpSpreadsheet\Style\Conditional::OPERATOR_NOTCONTAINS, 'beginsWith' => \PhpOffice\PhpSpreadsheet\Style\Conditional::OPERATOR_BEGINSWITH, 'startsWith' => \PhpOffice\PhpSpreadsheet\Style\Conditional::OPERATOR_BEGINSWITH, 'endsWith' => \PhpOffice\PhpSpreadsheet\Style\Conditional::OPERATOR_ENDSWITH]
OPERATORS
protected
mixed
OPERATORS
= [\PhpOffice\PhpSpreadsheet\Style\Conditional::OPERATOR_CONTAINSTEXT => \PhpOffice\PhpSpreadsheet\Style\Conditional::CONDITION_CONTAINSTEXT, \PhpOffice\PhpSpreadsheet\Style\Conditional::OPERATOR_NOTCONTAINS => \PhpOffice\PhpSpreadsheet\Style\Conditional::CONDITION_NOTCONTAINSTEXT, \PhpOffice\PhpSpreadsheet\Style\Conditional::OPERATOR_BEGINSWITH => \PhpOffice\PhpSpreadsheet\Style\Conditional::CONDITION_BEGINSWITH, \PhpOffice\PhpSpreadsheet\Style\Conditional::OPERATOR_ENDSWITH => \PhpOffice\PhpSpreadsheet\Style\Conditional::CONDITION_ENDSWITH]
$cellRange
protected
string
$cellRange
$expression
protected
string
$expression
$operand
protected
string
$operand
$operandValueType
protected
string
$operandValueType
$operator
protected
string
$operator
$referenceCell
protected
string
$referenceCell
$referenceColumn
protected
int
$referenceColumn
$referenceRow
protected
int
$referenceRow
$stopIfTrue
protected
bool
$stopIfTrue
= false
$style
protected
Style|null
$style
= null
__call()
public
__call(string $methodName, array<string|int, mixed> $arguments) : self
Parameters
-
$methodName
: string
-
-
$arguments
: array<string|int, mixed>
-
__construct()
public
__construct(string $cellRange) : mixed
Parameters
-
$cellRange
: string
-
beginsWith()
public
beginsWith([string $value = ][, string $operandValueType = Wizard::VALUE_TYPE_LITERAL ]) : TextValue
Parameters
-
$value
: string
=
-
-
$operandValueType
: string
= Wizard::VALUE_TYPE_LITERAL
-
contains()
public
contains([string $value = ][, string $operandValueType = Wizard::VALUE_TYPE_LITERAL ]) : TextValue
Parameters
-
$value
: string
=
-
-
$operandValueType
: string
= Wizard::VALUE_TYPE_LITERAL
-
doesNotContain()
public
doesNotContain([string $value = ][, string $operandValueType = Wizard::VALUE_TYPE_LITERAL ]) : TextValue
Parameters
-
$value
: string
=
-
-
$operandValueType
: string
= Wizard::VALUE_TYPE_LITERAL
-
doesntContain()
public
doesntContain([string $value = ][, string $operandValueType = Wizard::VALUE_TYPE_LITERAL ]) : TextValue
Parameters
-
$value
: string
=
-
-
$operandValueType
: string
= Wizard::VALUE_TYPE_LITERAL
-
endsWith()
public
endsWith([string $value = ][, string $operandValueType = Wizard::VALUE_TYPE_LITERAL ]) : TextValue
Parameters
-
$value
: string
=
-
-
$operandValueType
: string
= Wizard::VALUE_TYPE_LITERAL
-
fromConditional()
public
static fromConditional(Conditional $conditional[, string $cellRange = 'A1' ]) : WizardInterface
Parameters
-
$conditional
: Conditional
-
-
$cellRange
: string
= 'A1'
-
getCellRange()
public
getCellRange() : string
getConditional()
public
getConditional() : Conditional
getStopIfTrue()
public
getStopIfTrue() : bool
getStyle()
public
getStyle() : Style
reverseAdjustCellRef()
public
static reverseAdjustCellRef(string $condition, string $cellRange) : string
Parameters
-
$condition
: string
-
-
$cellRange
: string
-
setCellRange()
public
setCellRange(string $cellRange) : void
Parameters
-
$cellRange
: string
-
setStopIfTrue()
public
setStopIfTrue(bool $stopIfTrue) : void
Parameters
-
$stopIfTrue
: bool
-
setStyle()
public
setStyle(Style $style) : void
Parameters
-
$style
: Style
-
startsWith()
public
startsWith([string $value = ][, string $operandValueType = Wizard::VALUE_TYPE_LITERAL ]) : TextValue
Parameters
-
$value
: string
=
-
-
$operandValueType
: string
= Wizard::VALUE_TYPE_LITERAL
-
adjustConditionsForCellReferences()
protected
adjustConditionsForCellReferences(array<string|int, mixed> $conditions) : array<string|int, mixed>
Parameters
-
$conditions
: array<string|int, mixed>
-
Return values
array<string|int, mixed>
cellConditionCheck()
protected
cellConditionCheck(string $condition) : string
Parameters
-
$condition
: string
-
conditionCellAdjustment()
protected
conditionCellAdjustment(array<string|int, mixed> $matches) : string
Parameters
-
$matches
: array<string|int, mixed>
-
operand()
protected
operand(string $operand[, string $operandValueType = Wizard::VALUE_TYPE_LITERAL ]) : void
Parameters
-
$operand
: string
-
-
$operandValueType
: string
= Wizard::VALUE_TYPE_LITERAL
-
operator()
protected
operator(string $operator) : void
Parameters
-
$operator
: string
-
reverseCellAdjustment()
protected
static reverseCellAdjustment(array<string|int, mixed> $matches, int $referenceColumn, int $referenceRow) : string
Parameters
-
$matches
: array<string|int, mixed>
-
-
$referenceColumn
: int
-
-
$referenceRow
: int
-
setExpression()
protected
setExpression() : void
setReferenceCellForExpressions()
protected
setReferenceCellForExpressions(string $conditionalRange) : void
Parameters
-
$conditionalRange
: string
-
validateOperand()
protected
validateOperand(string $operand[, string $operandValueType = Wizard::VALUE_TYPE_LITERAL ]) : string
Parameters
-
$operand
: string
-
-
$operandValueType
: string
= Wizard::VALUE_TYPE_LITERAL
-
wrapValue()
protected
wrapValue(string $value) : string
Parameters
-
$value
: string
-