102 $this->_condition =
array();
122 $this->_conditionType = $pValue;
142 $this->_operatorType = $pValue;
162 $this->_text = $value;
173 if (isset($this->_condition[0])) {
174 return $this->_condition[0];
188 if (!is_array($pValue))
189 $pValue =
array($pValue);
210 if (!is_array($pValue))
211 $pValue =
array($pValue);
213 $this->_condition = $pValue;
224 $this->_condition[] = $pValue;
245 $this->_style = $pValue;
256 $this->_conditionType
257 . $this->_operatorType
258 . implode(
';', $this->_condition)
259 . $this->_style->getHashCode()
268 $vars = get_object_vars($this);
269 foreach ($vars as $key => $value) {
270 if (is_object($value)) {
271 $this->$key = clone $value;
273 $this->$key = $value;
getOperatorType()
Get Operator type.
const CONDITION_CONTAINSTEXT
setConditionType($pValue=PHPExcel_Style_Conditional::CONDITION_NONE)
Set Condition type.
__construct()
Create a new PHPExcel_Style_Conditional.
addCondition($pValue='')
Add Condition.
setOperatorType($pValue=PHPExcel_Style_Conditional::OPERATOR_NONE)
Set Operator type.
const OPERATOR_CONTAINSTEXT
const OPERATOR_GREATERTHANOREQUAL
setText($value=null)
Set text.
__clone()
Implement PHP __clone to create a deep clone, not just a shallow copy.
getHashCode()
Get hash code.
setCondition($pValue='')
Set Condition.
const OPERATOR_LESSTHANOREQUAL
const OPERATOR_GREATERTHAN
Create styles array
The data for the language used.
const CONDITION_EXPRESSION
setStyle(PHPExcel_Style $pValue=null)
Set Style.
getCondition()
Get Condition.
const OPERATOR_BEGINSWITH
setConditions($pValue)
Set Conditions.
getConditionType()
Get Condition type.
const OPERATOR_NOTCONTAINS
getConditions()
Get Conditions.