ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
PHPExcel_Cell_DataValidation Class Reference
+ Collaboration diagram for PHPExcel_Cell_DataValidation:

Public Member Functions

 __construct ()
 Create a new PHPExcel_Cell_DataValidation. More...
 
 getFormula1 ()
 Get Formula 1. More...
 
 setFormula1 ($value='')
 Set Formula 1. More...
 
 getFormula2 ()
 Get Formula 2. More...
 
 setFormula2 ($value='')
 Set Formula 2. More...
 
 getType ()
 Get Type. More...
 
 setType ($value=PHPExcel_Cell_DataValidation::TYPE_NONE)
 Set Type. More...
 
 getErrorStyle ()
 Get Error style. More...
 
 setErrorStyle ($value=PHPExcel_Cell_DataValidation::STYLE_STOP)
 Set Error style. More...
 
 getOperator ()
 Get Operator. More...
 
 setOperator ($value='')
 Set Operator. More...
 
 getAllowBlank ()
 Get Allow Blank. More...
 
 setAllowBlank ($value=false)
 Set Allow Blank. More...
 
 getShowDropDown ()
 Get Show DropDown. More...
 
 setShowDropDown ($value=false)
 Set Show DropDown. More...
 
 getShowInputMessage ()
 Get Show InputMessage. More...
 
 setShowInputMessage ($value=false)
 Set Show InputMessage. More...
 
 getShowErrorMessage ()
 Get Show ErrorMessage. More...
 
 setShowErrorMessage ($value=false)
 Set Show ErrorMessage. More...
 
 getErrorTitle ()
 Get Error title. More...
 
 setErrorTitle ($value='')
 Set Error title. More...
 
 getError ()
 Get Error. More...
 
 setError ($value='')
 Set Error. More...
 
 getPromptTitle ()
 Get Prompt title. More...
 
 setPromptTitle ($value='')
 Set Prompt title. More...
 
 getPrompt ()
 Get Prompt. More...
 
 setPrompt ($value='')
 Set Prompt. More...
 
 getHashCode ()
 Get hash code. More...
 
 __clone ()
 Implement PHP __clone to create a deep clone, not just a shallow copy. More...
 

Data Fields

const TYPE_NONE = 'none'
 
const TYPE_CUSTOM = 'custom'
 
const TYPE_DATE = 'date'
 
const TYPE_DECIMAL = 'decimal'
 
const TYPE_LIST = 'list'
 
const TYPE_TEXTLENGTH = 'textLength'
 
const TYPE_TIME = 'time'
 
const TYPE_WHOLE = 'whole'
 
const STYLE_STOP = 'stop'
 
const STYLE_WARNING = 'warning'
 
const STYLE_INFORMATION = 'information'
 
const OPERATOR_BETWEEN = 'between'
 
const OPERATOR_EQUAL = 'equal'
 
const OPERATOR_GREATERTHAN = 'greaterThan'
 
const OPERATOR_GREATERTHANOREQUAL = 'greaterThanOrEqual'
 
const OPERATOR_LESSTHAN = 'lessThan'
 
const OPERATOR_LESSTHANOREQUAL = 'lessThanOrEqual'
 
const OPERATOR_NOTBETWEEN = 'notBetween'
 
const OPERATOR_NOTEQUAL = 'notEqual'
 

Private Attributes

 $_formula1
 
 $_formula2
 
 $_type = PHPExcel_Cell_DataValidation::TYPE_NONE
 
 $_errorStyle = PHPExcel_Cell_DataValidation::STYLE_STOP
 
 $_operator
 
 $_allowBlank
 
 $_showDropDown
 
 $_showInputMessage
 
 $_showErrorMessage
 
 $_errorTitle
 
 $_error
 
 $_promptTitle
 
 $_prompt
 

Detailed Description

Definition at line 36 of file DataValidation.php.

Constructor & Destructor Documentation

◆ __construct()

PHPExcel_Cell_DataValidation::__construct ( )

Create a new PHPExcel_Cell_DataValidation.

Definition at line 157 of file DataValidation.php.

References STYLE_STOP, and TYPE_NONE.

158  {
159  // Initialise member variables
160  $this->_formula1 = '';
161  $this->_formula2 = '';
163  $this->_errorStyle = PHPExcel_Cell_DataValidation::STYLE_STOP;
164  $this->_operator = '';
165  $this->_allowBlank = FALSE;
166  $this->_showDropDown = FALSE;
167  $this->_showInputMessage = FALSE;
168  $this->_showErrorMessage = FALSE;
169  $this->_errorTitle = '';
170  $this->_error = '';
171  $this->_promptTitle = '';
172  $this->_prompt = '';
173  }

Member Function Documentation

◆ __clone()

PHPExcel_Cell_DataValidation::__clone ( )

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

Definition at line 462 of file DataValidation.php.

References $key.

462  {
463  $vars = get_object_vars($this);
464  foreach ($vars as $key => $value) {
465  if (is_object($value)) {
466  $this->$key = clone $value;
467  } else {
468  $this->$key = $value;
469  }
470  }
471  }
$key
Definition: croninfo.php:18

◆ getAllowBlank()

PHPExcel_Cell_DataValidation::getAllowBlank ( )

Get Allow Blank.

Returns
boolean

Definition at line 280 of file DataValidation.php.

References $_allowBlank.

280  {
281  return $this->_allowBlank;
282  }

◆ getError()

PHPExcel_Cell_DataValidation::getError ( )

Get Error.

Returns
string

Definition at line 380 of file DataValidation.php.

References $_error.

380  {
381  return $this->_error;
382  }

◆ getErrorStyle()

PHPExcel_Cell_DataValidation::getErrorStyle ( )

Get Error style.

Returns
string

Definition at line 240 of file DataValidation.php.

References $_errorStyle.

240  {
241  return $this->_errorStyle;
242  }

◆ getErrorTitle()

PHPExcel_Cell_DataValidation::getErrorTitle ( )

Get Error title.

Returns
string

Definition at line 360 of file DataValidation.php.

References $_errorTitle.

360  {
361  return $this->_errorTitle;
362  }

◆ getFormula1()

PHPExcel_Cell_DataValidation::getFormula1 ( )

Get Formula 1.

Returns
string

Definition at line 180 of file DataValidation.php.

References $_formula1.

180  {
181  return $this->_formula1;
182  }

◆ getFormula2()

PHPExcel_Cell_DataValidation::getFormula2 ( )

Get Formula 2.

Returns
string

Definition at line 200 of file DataValidation.php.

References $_formula2.

200  {
201  return $this->_formula2;
202  }

◆ getHashCode()

PHPExcel_Cell_DataValidation::getHashCode ( )

Get hash code.

Returns
string Hash code

Definition at line 440 of file DataValidation.php.

References STYLE_STOP, and TYPE_NONE.

440  {
441  return md5(
442  $this->_formula1
443  . $this->_formula2
445  . $this->_errorStyle = PHPExcel_Cell_DataValidation::STYLE_STOP
446  . $this->_operator
447  . ($this->_allowBlank ? 't' : 'f')
448  . ($this->_showDropDown ? 't' : 'f')
449  . ($this->_showInputMessage ? 't' : 'f')
450  . ($this->_showErrorMessage ? 't' : 'f')
451  . $this->_errorTitle
452  . $this->_error
453  . $this->_promptTitle
454  . $this->_prompt
455  . __CLASS__
456  );
457  }

◆ getOperator()

PHPExcel_Cell_DataValidation::getOperator ( )

Get Operator.

Returns
string

Definition at line 260 of file DataValidation.php.

References $_operator.

260  {
261  return $this->_operator;
262  }

◆ getPrompt()

PHPExcel_Cell_DataValidation::getPrompt ( )

Get Prompt.

Returns
string

Definition at line 420 of file DataValidation.php.

References $_prompt.

420  {
421  return $this->_prompt;
422  }

◆ getPromptTitle()

PHPExcel_Cell_DataValidation::getPromptTitle ( )

Get Prompt title.

Returns
string

Definition at line 400 of file DataValidation.php.

References $_promptTitle.

400  {
401  return $this->_promptTitle;
402  }

◆ getShowDropDown()

PHPExcel_Cell_DataValidation::getShowDropDown ( )

Get Show DropDown.

Returns
boolean

Definition at line 300 of file DataValidation.php.

References $_showDropDown.

300  {
301  return $this->_showDropDown;
302  }

◆ getShowErrorMessage()

PHPExcel_Cell_DataValidation::getShowErrorMessage ( )

Get Show ErrorMessage.

Returns
boolean

Definition at line 340 of file DataValidation.php.

References $_showErrorMessage.

340  {
342  }

◆ getShowInputMessage()

PHPExcel_Cell_DataValidation::getShowInputMessage ( )

Get Show InputMessage.

Returns
boolean

Definition at line 320 of file DataValidation.php.

References $_showInputMessage.

320  {
322  }

◆ getType()

PHPExcel_Cell_DataValidation::getType ( )

Get Type.

Returns
string

Definition at line 220 of file DataValidation.php.

References $_type.

220  {
221  return $this->_type;
222  }

◆ setAllowBlank()

PHPExcel_Cell_DataValidation::setAllowBlank (   $value = false)

Set Allow Blank.

Parameters
boolean$value
Returns
PHPExcel_Cell_DataValidation

Definition at line 290 of file DataValidation.php.

290  {
291  $this->_allowBlank = $value;
292  return $this;
293  }

◆ setError()

PHPExcel_Cell_DataValidation::setError (   $value = '')

Set Error.

Parameters
string$value
Returns
PHPExcel_Cell_DataValidation

Definition at line 390 of file DataValidation.php.

390  {
391  $this->_error = $value;
392  return $this;
393  }

◆ setErrorStyle()

PHPExcel_Cell_DataValidation::setErrorStyle (   $value = PHPExcel_Cell_DataValidation::STYLE_STOP)

Set Error style.

Parameters
string$value
Returns
PHPExcel_Cell_DataValidation

Definition at line 250 of file DataValidation.php.

250  {
251  $this->_errorStyle = $value;
252  return $this;
253  }

◆ setErrorTitle()

PHPExcel_Cell_DataValidation::setErrorTitle (   $value = '')

Set Error title.

Parameters
string$value
Returns
PHPExcel_Cell_DataValidation

Definition at line 370 of file DataValidation.php.

370  {
371  $this->_errorTitle = $value;
372  return $this;
373  }

◆ setFormula1()

PHPExcel_Cell_DataValidation::setFormula1 (   $value = '')

Set Formula 1.

Parameters
string$value
Returns
PHPExcel_Cell_DataValidation

Definition at line 190 of file DataValidation.php.

190  {
191  $this->_formula1 = $value;
192  return $this;
193  }

◆ setFormula2()

PHPExcel_Cell_DataValidation::setFormula2 (   $value = '')

Set Formula 2.

Parameters
string$value
Returns
PHPExcel_Cell_DataValidation

Definition at line 210 of file DataValidation.php.

210  {
211  $this->_formula2 = $value;
212  return $this;
213  }

◆ setOperator()

PHPExcel_Cell_DataValidation::setOperator (   $value = '')

Set Operator.

Parameters
string$value
Returns
PHPExcel_Cell_DataValidation

Definition at line 270 of file DataValidation.php.

270  {
271  $this->_operator = $value;
272  return $this;
273  }

◆ setPrompt()

PHPExcel_Cell_DataValidation::setPrompt (   $value = '')

Set Prompt.

Parameters
string$value
Returns
PHPExcel_Cell_DataValidation

Definition at line 430 of file DataValidation.php.

430  {
431  $this->_prompt = $value;
432  return $this;
433  }

◆ setPromptTitle()

PHPExcel_Cell_DataValidation::setPromptTitle (   $value = '')

Set Prompt title.

Parameters
string$value
Returns
PHPExcel_Cell_DataValidation

Definition at line 410 of file DataValidation.php.

410  {
411  $this->_promptTitle = $value;
412  return $this;
413  }

◆ setShowDropDown()

PHPExcel_Cell_DataValidation::setShowDropDown (   $value = false)

Set Show DropDown.

Parameters
boolean$value
Returns
PHPExcel_Cell_DataValidation

Definition at line 310 of file DataValidation.php.

310  {
311  $this->_showDropDown = $value;
312  return $this;
313  }

◆ setShowErrorMessage()

PHPExcel_Cell_DataValidation::setShowErrorMessage (   $value = false)

Set Show ErrorMessage.

Parameters
boolean$value
Returns
PHPExcel_Cell_DataValidation

Definition at line 350 of file DataValidation.php.

350  {
351  $this->_showErrorMessage = $value;
352  return $this;
353  }

◆ setShowInputMessage()

PHPExcel_Cell_DataValidation::setShowInputMessage (   $value = false)

Set Show InputMessage.

Parameters
boolean$value
Returns
PHPExcel_Cell_DataValidation

Definition at line 330 of file DataValidation.php.

330  {
331  $this->_showInputMessage = $value;
332  return $this;
333  }

◆ setType()

PHPExcel_Cell_DataValidation::setType (   $value = PHPExcel_Cell_DataValidation::TYPE_NONE)

Set Type.

Parameters
string$value
Returns
PHPExcel_Cell_DataValidation

Definition at line 230 of file DataValidation.php.

230  {
231  $this->_type = $value;
232  return $this;
233  }

Field Documentation

◆ $_allowBlank

PHPExcel_Cell_DataValidation::$_allowBlank
private

Definition at line 103 of file DataValidation.php.

Referenced by getAllowBlank().

◆ $_error

PHPExcel_Cell_DataValidation::$_error
private

Definition at line 138 of file DataValidation.php.

Referenced by getError().

◆ $_errorStyle

PHPExcel_Cell_DataValidation::$_errorStyle = PHPExcel_Cell_DataValidation::STYLE_STOP
private

Definition at line 89 of file DataValidation.php.

Referenced by getErrorStyle().

◆ $_errorTitle

PHPExcel_Cell_DataValidation::$_errorTitle
private

Definition at line 131 of file DataValidation.php.

Referenced by getErrorTitle().

◆ $_formula1

PHPExcel_Cell_DataValidation::$_formula1
private

Definition at line 68 of file DataValidation.php.

Referenced by getFormula1().

◆ $_formula2

PHPExcel_Cell_DataValidation::$_formula2
private

Definition at line 75 of file DataValidation.php.

Referenced by getFormula2().

◆ $_operator

PHPExcel_Cell_DataValidation::$_operator
private

Definition at line 96 of file DataValidation.php.

Referenced by getOperator().

◆ $_prompt

PHPExcel_Cell_DataValidation::$_prompt
private

Definition at line 152 of file DataValidation.php.

Referenced by getPrompt().

◆ $_promptTitle

PHPExcel_Cell_DataValidation::$_promptTitle
private

Definition at line 145 of file DataValidation.php.

Referenced by getPromptTitle().

◆ $_showDropDown

PHPExcel_Cell_DataValidation::$_showDropDown
private

Definition at line 110 of file DataValidation.php.

Referenced by getShowDropDown().

◆ $_showErrorMessage

PHPExcel_Cell_DataValidation::$_showErrorMessage
private

Definition at line 124 of file DataValidation.php.

Referenced by getShowErrorMessage().

◆ $_showInputMessage

PHPExcel_Cell_DataValidation::$_showInputMessage
private

Definition at line 117 of file DataValidation.php.

Referenced by getShowInputMessage().

◆ $_type

PHPExcel_Cell_DataValidation::$_type = PHPExcel_Cell_DataValidation::TYPE_NONE
private

Definition at line 82 of file DataValidation.php.

Referenced by getType().

◆ OPERATOR_BETWEEN

const PHPExcel_Cell_DataValidation::OPERATOR_BETWEEN = 'between'

◆ OPERATOR_EQUAL

const PHPExcel_Cell_DataValidation::OPERATOR_EQUAL = 'equal'

◆ OPERATOR_GREATERTHAN

const PHPExcel_Cell_DataValidation::OPERATOR_GREATERTHAN = 'greaterThan'

◆ OPERATOR_GREATERTHANOREQUAL

const PHPExcel_Cell_DataValidation::OPERATOR_GREATERTHANOREQUAL = 'greaterThanOrEqual'

◆ OPERATOR_LESSTHAN

const PHPExcel_Cell_DataValidation::OPERATOR_LESSTHAN = 'lessThan'

◆ OPERATOR_LESSTHANOREQUAL

const PHPExcel_Cell_DataValidation::OPERATOR_LESSTHANOREQUAL = 'lessThanOrEqual'

◆ OPERATOR_NOTBETWEEN

const PHPExcel_Cell_DataValidation::OPERATOR_NOTBETWEEN = 'notBetween'

◆ OPERATOR_NOTEQUAL

const PHPExcel_Cell_DataValidation::OPERATOR_NOTEQUAL = 'notEqual'

◆ STYLE_INFORMATION

const PHPExcel_Cell_DataValidation::STYLE_INFORMATION = 'information'

◆ STYLE_STOP

const PHPExcel_Cell_DataValidation::STYLE_STOP = 'stop'

◆ STYLE_WARNING

const PHPExcel_Cell_DataValidation::STYLE_WARNING = 'warning'

◆ TYPE_CUSTOM

const PHPExcel_Cell_DataValidation::TYPE_CUSTOM = 'custom'

◆ TYPE_DATE

const PHPExcel_Cell_DataValidation::TYPE_DATE = 'date'

◆ TYPE_DECIMAL

const PHPExcel_Cell_DataValidation::TYPE_DECIMAL = 'decimal'

◆ TYPE_LIST

const PHPExcel_Cell_DataValidation::TYPE_LIST = 'list'

◆ TYPE_NONE

const PHPExcel_Cell_DataValidation::TYPE_NONE = 'none'

◆ TYPE_TEXTLENGTH

const PHPExcel_Cell_DataValidation::TYPE_TEXTLENGTH = 'textLength'

◆ TYPE_TIME

const PHPExcel_Cell_DataValidation::TYPE_TIME = 'time'

◆ TYPE_WHOLE

const PHPExcel_Cell_DataValidation::TYPE_WHOLE = 'whole'

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