ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
PHPExcel_Style_Conditional Class Reference
+ Inheritance diagram for PHPExcel_Style_Conditional:
+ Collaboration diagram for PHPExcel_Style_Conditional:

Public Member Functions

 __construct ()
 Create a new PHPExcel_Style_Conditional. More...
 
 getConditionType ()
 Get Condition type. More...
 
 setConditionType ($pValue=PHPExcel_Style_Conditional::CONDITION_NONE)
 Set Condition type. More...
 
 getOperatorType ()
 Get Operator type. More...
 
 setOperatorType ($pValue=PHPExcel_Style_Conditional::OPERATOR_NONE)
 Set Operator type. More...
 
 getText ()
 Get text. More...
 
 setText ($value=null)
 Set text. More...
 
 getCondition ()
 Get Condition. More...
 
 setCondition ($pValue='')
 Set Condition. More...
 
 getConditions ()
 Get Conditions. More...
 
 setConditions ($pValue)
 Set Conditions. More...
 
 addCondition ($pValue='')
 Add Condition. More...
 
 getStyle ()
 Get Style. More...
 
 setStyle (PHPExcel_Style $pValue=null)
 Set Style. More...
 
 getHashCode ()
 Get hash code. More...
 
 __clone ()
 Implement PHP __clone to create a deep clone, not just a shallow copy. More...
 

Data Fields

const CONDITION_NONE = 'none'
 
const CONDITION_CELLIS = 'cellIs'
 
const CONDITION_CONTAINSTEXT = 'containsText'
 
const CONDITION_EXPRESSION = 'expression'
 
const OPERATOR_NONE = ''
 
const OPERATOR_BEGINSWITH = 'beginsWith'
 
const OPERATOR_ENDSWITH = 'endsWith'
 
const OPERATOR_EQUAL = 'equal'
 
const OPERATOR_GREATERTHAN = 'greaterThan'
 
const OPERATOR_GREATERTHANOREQUAL = 'greaterThanOrEqual'
 
const OPERATOR_LESSTHAN = 'lessThan'
 
const OPERATOR_LESSTHANOREQUAL = 'lessThanOrEqual'
 
const OPERATOR_NOTEQUAL = 'notEqual'
 
const OPERATOR_CONTAINSTEXT = 'containsText'
 
const OPERATOR_NOTCONTAINS = 'notContains'
 
const OPERATOR_BETWEEN = 'between'
 

Private Attributes

 $_conditionType
 
 $_operatorType
 
 $_text
 
 $_condition = array()
 
 $_style
 

Detailed Description

Definition at line 36 of file Conditional.php.

Constructor & Destructor Documentation

◆ __construct()

PHPExcel_Style_Conditional::__construct ( )

Create a new PHPExcel_Style_Conditional.

Definition at line 96 of file Conditional.php.

References array, CONDITION_NONE, and OPERATOR_NONE.

97  {
98  // Initialise values
99  $this->_conditionType = PHPExcel_Style_Conditional::CONDITION_NONE;
100  $this->_operatorType = PHPExcel_Style_Conditional::OPERATOR_NONE;
101  $this->_text = null;
102  $this->_condition = array();
103  $this->_style = new PHPExcel_Style(FALSE, TRUE);
104  }
Create styles array
The data for the language used.

Member Function Documentation

◆ __clone()

PHPExcel_Style_Conditional::__clone ( )

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

Definition at line 267 of file Conditional.php.

267  {
268  $vars = get_object_vars($this);
269  foreach ($vars as $key => $value) {
270  if (is_object($value)) {
271  $this->$key = clone $value;
272  } else {
273  $this->$key = $value;
274  }
275  }
276  }

◆ addCondition()

PHPExcel_Style_Conditional::addCondition (   $pValue = '')

Add Condition.

Parameters
string$pValueCondition
Returns
PHPExcel_Style_Conditional

Definition at line 223 of file Conditional.php.

223  {
224  $this->_condition[] = $pValue;
225  return $this;
226  }

◆ getCondition()

PHPExcel_Style_Conditional::getCondition ( )

Get Condition.

Deprecated:
Deprecated, use getConditions instead
Returns
string

Definition at line 172 of file Conditional.php.

172  {
173  if (isset($this->_condition[0])) {
174  return $this->_condition[0];
175  }
176 
177  return '';
178  }

◆ getConditions()

PHPExcel_Style_Conditional::getConditions ( )

Get Conditions.

Returns
string[]

Definition at line 199 of file Conditional.php.

References $_condition.

Referenced by PHPExcel_Writer_Excel5_Worksheet\_writeCFRule().

199  {
200  return $this->_condition;
201  }
+ Here is the caller graph for this function:

◆ getConditionType()

PHPExcel_Style_Conditional::getConditionType ( )

Get Condition type.

Returns
string

Definition at line 111 of file Conditional.php.

References $_conditionType.

Referenced by PHPExcel_Writer_Excel5_Worksheet\_writeCFRule().

111  {
112  return $this->_conditionType;
113  }
+ Here is the caller graph for this function:

◆ getHashCode()

PHPExcel_Style_Conditional::getHashCode ( )

Get hash code.

Returns
string Hash code

Implements PHPExcel_IComparable.

Definition at line 254 of file Conditional.php.

254  {
255  return md5(
256  $this->_conditionType
257  . $this->_operatorType
258  . implode(';', $this->_condition)
259  . $this->_style->getHashCode()
260  . __CLASS__
261  );
262  }

◆ getOperatorType()

PHPExcel_Style_Conditional::getOperatorType ( )

Get Operator type.

Returns
string

Definition at line 131 of file Conditional.php.

References $_operatorType.

Referenced by PHPExcel_Writer_Excel5_Worksheet\_writeCFRule().

131  {
132  return $this->_operatorType;
133  }
+ Here is the caller graph for this function:

◆ getStyle()

PHPExcel_Style_Conditional::getStyle ( )

Get Style.

Returns
PHPExcel_Style

Definition at line 233 of file Conditional.php.

References $_style.

Referenced by PHPExcel_Writer_Excel5_Worksheet\_writeCFRule().

233  {
234  return $this->_style;
235  }
+ Here is the caller graph for this function:

◆ getText()

PHPExcel_Style_Conditional::getText ( )

Get text.

Returns
string

Definition at line 151 of file Conditional.php.

References $_text.

151  {
152  return $this->_text;
153  }

◆ setCondition()

PHPExcel_Style_Conditional::setCondition (   $pValue = '')

Set Condition.

Deprecated:
Deprecated, use setConditions instead
Parameters
string$pValueCondition
Returns
PHPExcel_Style_Conditional

Definition at line 187 of file Conditional.php.

References array, and setConditions().

187  {
188  if (!is_array($pValue))
189  $pValue = array($pValue);
190 
191  return $this->setConditions($pValue);
192  }
Create styles array
The data for the language used.
setConditions($pValue)
Set Conditions.
+ Here is the call graph for this function:

◆ setConditions()

PHPExcel_Style_Conditional::setConditions (   $pValue)

Set Conditions.

Parameters
string[]$pValue Condition
Returns
PHPExcel_Style_Conditional

Definition at line 209 of file Conditional.php.

References array.

Referenced by setCondition().

209  {
210  if (!is_array($pValue))
211  $pValue = array($pValue);
212 
213  $this->_condition = $pValue;
214  return $this;
215  }
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ setConditionType()

PHPExcel_Style_Conditional::setConditionType (   $pValue = PHPExcel_Style_Conditional::CONDITION_NONE)

Set Condition type.

Parameters
string$pValuePHPExcel_Style_Conditional condition type
Returns
PHPExcel_Style_Conditional

Definition at line 121 of file Conditional.php.

121  {
122  $this->_conditionType = $pValue;
123  return $this;
124  }

◆ setOperatorType()

PHPExcel_Style_Conditional::setOperatorType (   $pValue = PHPExcel_Style_Conditional::OPERATOR_NONE)

Set Operator type.

Parameters
string$pValuePHPExcel_Style_Conditional operator type
Returns
PHPExcel_Style_Conditional

Definition at line 141 of file Conditional.php.

141  {
142  $this->_operatorType = $pValue;
143  return $this;
144  }

◆ setStyle()

PHPExcel_Style_Conditional::setStyle ( PHPExcel_Style  $pValue = null)

Set Style.

Parameters
PHPExcel_Style$pValue
Exceptions
PHPExcel_Exception
Returns
PHPExcel_Style_Conditional

Definition at line 244 of file Conditional.php.

244  {
245  $this->_style = $pValue;
246  return $this;
247  }

◆ setText()

PHPExcel_Style_Conditional::setText (   $value = null)

Set text.

Parameters
string$value
Returns
PHPExcel_Style_Conditional

Definition at line 161 of file Conditional.php.

161  {
162  $this->_text = $value;
163  return $this;
164  }

Field Documentation

◆ $_condition

PHPExcel_Style_Conditional::$_condition = array()
private

Definition at line 84 of file Conditional.php.

Referenced by getConditions().

◆ $_conditionType

PHPExcel_Style_Conditional::$_conditionType
private

Definition at line 63 of file Conditional.php.

Referenced by getConditionType().

◆ $_operatorType

PHPExcel_Style_Conditional::$_operatorType
private

Definition at line 70 of file Conditional.php.

Referenced by getOperatorType().

◆ $_style

PHPExcel_Style_Conditional::$_style
private

Definition at line 91 of file Conditional.php.

Referenced by getStyle().

◆ $_text

PHPExcel_Style_Conditional::$_text
private

Definition at line 77 of file Conditional.php.

Referenced by getText().

◆ CONDITION_CELLIS

◆ CONDITION_CONTAINSTEXT

const PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT = 'containsText'

◆ CONDITION_EXPRESSION

◆ CONDITION_NONE

const PHPExcel_Style_Conditional::CONDITION_NONE = 'none'

◆ OPERATOR_BEGINSWITH

const PHPExcel_Style_Conditional::OPERATOR_BEGINSWITH = 'beginsWith'

◆ OPERATOR_BETWEEN

const PHPExcel_Style_Conditional::OPERATOR_BETWEEN = 'between'

Definition at line 56 of file Conditional.php.

Referenced by PHPExcel_Writer_Excel5_Worksheet\_writeCFRule().

◆ OPERATOR_CONTAINSTEXT

const PHPExcel_Style_Conditional::OPERATOR_CONTAINSTEXT = 'containsText'

◆ OPERATOR_ENDSWITH

const PHPExcel_Style_Conditional::OPERATOR_ENDSWITH = 'endsWith'

◆ OPERATOR_EQUAL

const PHPExcel_Style_Conditional::OPERATOR_EQUAL = 'equal'

Definition at line 48 of file Conditional.php.

Referenced by PHPExcel_Writer_Excel5_Worksheet\_writeCFRule().

◆ OPERATOR_GREATERTHAN

const PHPExcel_Style_Conditional::OPERATOR_GREATERTHAN = 'greaterThan'

Definition at line 49 of file Conditional.php.

Referenced by PHPExcel_Writer_Excel5_Worksheet\_writeCFRule().

◆ OPERATOR_GREATERTHANOREQUAL

const PHPExcel_Style_Conditional::OPERATOR_GREATERTHANOREQUAL = 'greaterThanOrEqual'

Definition at line 50 of file Conditional.php.

Referenced by PHPExcel_Writer_Excel5_Worksheet\_writeCFRule().

◆ OPERATOR_LESSTHAN

const PHPExcel_Style_Conditional::OPERATOR_LESSTHAN = 'lessThan'

Definition at line 51 of file Conditional.php.

Referenced by PHPExcel_Writer_Excel5_Worksheet\_writeCFRule().

◆ OPERATOR_LESSTHANOREQUAL

const PHPExcel_Style_Conditional::OPERATOR_LESSTHANOREQUAL = 'lessThanOrEqual'

Definition at line 52 of file Conditional.php.

Referenced by PHPExcel_Writer_Excel5_Worksheet\_writeCFRule().

◆ OPERATOR_NONE

const PHPExcel_Style_Conditional::OPERATOR_NONE = ''

◆ OPERATOR_NOTCONTAINS

const PHPExcel_Style_Conditional::OPERATOR_NOTCONTAINS = 'notContains'

◆ OPERATOR_NOTEQUAL

const PHPExcel_Style_Conditional::OPERATOR_NOTEQUAL = 'notEqual'

Definition at line 53 of file Conditional.php.

Referenced by PHPExcel_Writer_Excel5_Worksheet\_writeCFRule().


The documentation for this class was generated from the following file: