ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
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.
 getConditionType ()
 Get Condition type.
 setConditionType ($pValue=PHPExcel_Style_Conditional::CONDITION_NONE)
 Set Condition type.
 getOperatorType ()
 Get Operator type.
 setOperatorType ($pValue=PHPExcel_Style_Conditional::OPERATOR_NONE)
 Set Operator type.
 getText ()
 Get text.
 setText ($value=null)
 Set text.
 getCondition ()
 Get Condition.
 setCondition ($pValue= '')
 Set Condition.
 getConditions ()
 Get Conditions.
 setConditions ($pValue)
 Set Conditions.
 addCondition ($pValue= '')
 Add Condition.
 getStyle ()
 Get Style.
 setStyle (PHPExcel_Style $pValue=null)
 Set Style.
 getHashCode ()
 Get hash code.
 __clone ()
 Implement PHP __clone to create a deep clone, not just a shallow copy.

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

PHPExcel_Style_Conditional::__construct ( )

Create a new PHPExcel_Style_Conditional.

Definition at line 96 of file Conditional.php.

References CONDITION_NONE, and OPERATOR_NONE.

{
// Initialise values
$this->_text = null;
$this->_condition = array();
$this->_style = new PHPExcel_Style();
}

Member Function Documentation

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.

{
$vars = get_object_vars($this);
foreach ($vars as $key => $value) {
if (is_object($value)) {
$this->$key = clone $value;
} else {
$this->$key = $value;
}
}
}
PHPExcel_Style_Conditional::addCondition (   $pValue = '')

Add Condition.

Parameters
string$pValueCondition
Returns
PHPExcel_Style_Conditional

Definition at line 223 of file Conditional.php.

{
$this->_condition[] = $pValue;
return $this;
}
PHPExcel_Style_Conditional::getCondition ( )

Get Condition.

Deprecated:
Deprecated, use getConditions instead
Returns
string

Definition at line 172 of file Conditional.php.

{
if (isset($this->_condition[0])) {
return $this->_condition[0];
}
return '';
}
PHPExcel_Style_Conditional::getConditions ( )

Get Conditions.

Returns
string[]

Definition at line 199 of file Conditional.php.

References $_condition.

{
}
PHPExcel_Style_Conditional::getConditionType ( )

Get Condition type.

Returns
string

Definition at line 111 of file Conditional.php.

References $_conditionType.

{
}
PHPExcel_Style_Conditional::getHashCode ( )

Get hash code.

Returns
string Hash code

Implements PHPExcel_IComparable.

Definition at line 254 of file Conditional.php.

{
return md5(
$this->_conditionType
. $this->_operatorType
. implode(';', $this->_condition)
. $this->_style->getHashCode()
. __CLASS__
);
}
PHPExcel_Style_Conditional::getOperatorType ( )

Get Operator type.

Returns
string

Definition at line 131 of file Conditional.php.

References $_operatorType.

{
}
PHPExcel_Style_Conditional::getStyle ( )

Get Style.

Returns
PHPExcel_Style

Definition at line 233 of file Conditional.php.

References $_style.

{
return $this->_style;
}
PHPExcel_Style_Conditional::getText ( )

Get text.

Returns
string

Definition at line 151 of file Conditional.php.

References $_text.

{
return $this->_text;
}
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 setConditions().

{
if (!is_array($pValue))
$pValue = array($pValue);
return $this->setConditions($pValue);
}

+ Here is the call graph for this function:

PHPExcel_Style_Conditional::setConditions (   $pValue)

Set Conditions.

Parameters
string[]$pValue Condition
Returns
PHPExcel_Style_Conditional

Definition at line 209 of file Conditional.php.

Referenced by setCondition().

{
if (!is_array($pValue))
$pValue = array($pValue);
$this->_condition = $pValue;
return $this;
}

+ Here is the caller graph for this function:

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.

{
$this->_conditionType = $pValue;
return $this;
}
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.

{
$this->_operatorType = $pValue;
return $this;
}
PHPExcel_Style_Conditional::setStyle ( PHPExcel_Style  $pValue = null)

Set Style.

Parameters
PHPExcel_Style$pValue
Exceptions
Exception
Returns
PHPExcel_Style_Conditional

Definition at line 244 of file Conditional.php.

{
$this->_style = $pValue;
return $this;
}
PHPExcel_Style_Conditional::setText (   $value = null)

Set text.

Parameters
string$value
Returns
PHPExcel_Style_Conditional

Definition at line 161 of file Conditional.php.

{
$this->_text = $value;
return $this;
}

Field Documentation

PHPExcel_Style_Conditional::$_condition = array()
private

Definition at line 84 of file Conditional.php.

Referenced by getConditions().

PHPExcel_Style_Conditional::$_conditionType
private

Definition at line 63 of file Conditional.php.

Referenced by getConditionType().

PHPExcel_Style_Conditional::$_operatorType
private

Definition at line 70 of file Conditional.php.

Referenced by getOperatorType().

PHPExcel_Style_Conditional::$_style
private

Definition at line 91 of file Conditional.php.

Referenced by getStyle().

PHPExcel_Style_Conditional::$_text
private

Definition at line 77 of file Conditional.php.

Referenced by getText().

const PHPExcel_Style_Conditional::CONDITION_CELLIS = 'cellIs'
const PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT = 'containsText'
const PHPExcel_Style_Conditional::CONDITION_EXPRESSION = 'expression'
const PHPExcel_Style_Conditional::CONDITION_NONE = 'none'
const PHPExcel_Style_Conditional::OPERATOR_BEGINSWITH = 'beginsWith'
const PHPExcel_Style_Conditional::OPERATOR_BETWEEN = 'between'

Definition at line 56 of file Conditional.php.

const PHPExcel_Style_Conditional::OPERATOR_CONTAINSTEXT = 'containsText'
const PHPExcel_Style_Conditional::OPERATOR_ENDSWITH = 'endsWith'
const PHPExcel_Style_Conditional::OPERATOR_EQUAL = 'equal'

Definition at line 48 of file Conditional.php.

const PHPExcel_Style_Conditional::OPERATOR_GREATERTHAN = 'greaterThan'

Definition at line 49 of file Conditional.php.

const PHPExcel_Style_Conditional::OPERATOR_GREATERTHANOREQUAL = 'greaterThanOrEqual'

Definition at line 50 of file Conditional.php.

const PHPExcel_Style_Conditional::OPERATOR_LESSTHAN = 'lessThan'

Definition at line 51 of file Conditional.php.

const PHPExcel_Style_Conditional::OPERATOR_LESSTHANOREQUAL = 'lessThanOrEqual'

Definition at line 52 of file Conditional.php.

const PHPExcel_Style_Conditional::OPERATOR_NONE = ''
const PHPExcel_Style_Conditional::OPERATOR_NOTCONTAINS = 'notContains'
const PHPExcel_Style_Conditional::OPERATOR_NOTEQUAL = 'notEqual'

Definition at line 53 of file Conditional.php.


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