ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
PhpOffice\PhpSpreadsheet\Cell\DataValidation Class Reference
+ Collaboration diagram for PhpOffice\PhpSpreadsheet\Cell\DataValidation:

Public Member Functions

 __construct ()
 Create a new 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)
 Set Type. More...
 
 getErrorStyle ()
 Get Error style. More...
 
 setErrorStyle ($value)
 Set Error style. More...
 
 getOperator ()
 Get Operator. More...
 
 setOperator ($value)
 Set Operator. More...
 
 getAllowBlank ()
 Get Allow Blank. More...
 
 setAllowBlank ($value)
 Set Allow Blank. More...
 
 getShowDropDown ()
 Get Show DropDown. More...
 
 setShowDropDown ($value)
 Set Show DropDown. More...
 
 getShowInputMessage ()
 Get Show InputMessage. More...
 
 setShowInputMessage ($value)
 Set Show InputMessage. More...
 
 getShowErrorMessage ()
 Get Show ErrorMessage. More...
 
 setShowErrorMessage ($value)
 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 = self::TYPE_NONE
 
 $errorStyle = self::STYLE_STOP
 
 $allowBlank = false
 
 $showDropDown = false
 
 $showInputMessage = false
 
 $showErrorMessage = false
 
 $errorTitle = ''
 
 $error = ''
 
 $promptTitle = ''
 
 $prompt = ''
 

Detailed Description

Definition at line 5 of file DataValidation.php.

Constructor & Destructor Documentation

◆ __construct()

PhpOffice\PhpSpreadsheet\Cell\DataValidation::__construct ( )

Create a new DataValidation.

Definition at line 126 of file DataValidation.php.

127  {
128  }

Member Function Documentation

◆ __clone()

PhpOffice\PhpSpreadsheet\Cell\DataValidation::__clone ( )

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

Definition at line 470 of file DataValidation.php.

References $key.

471  {
472  $vars = get_object_vars($this);
473  foreach ($vars as $key => $value) {
474  if (is_object($value)) {
475  $this->$key = clone $value;
476  } else {
477  $this->$key = $value;
478  }
479  }
480  }
$key
Definition: croninfo.php:18

◆ getAllowBlank()

PhpOffice\PhpSpreadsheet\Cell\DataValidation::getAllowBlank ( )

Get Allow Blank.

Returns
bool

Definition at line 255 of file DataValidation.php.

References PhpOffice\PhpSpreadsheet\Cell\DataValidation\$allowBlank.

◆ getError()

PhpOffice\PhpSpreadsheet\Cell\DataValidation::getError ( )

Get Error.

Returns
string

Definition at line 375 of file DataValidation.php.

References PhpOffice\PhpSpreadsheet\Cell\DataValidation\$error.

◆ getErrorStyle()

PhpOffice\PhpSpreadsheet\Cell\DataValidation::getErrorStyle ( )

Get Error style.

Returns
string

Definition at line 207 of file DataValidation.php.

References PhpOffice\PhpSpreadsheet\Cell\DataValidation\$errorStyle.

Referenced by PhpOffice\PhpSpreadsheet\Writer\Xls\CellDataValidation\errorStyle().

+ Here is the caller graph for this function:

◆ getErrorTitle()

PhpOffice\PhpSpreadsheet\Cell\DataValidation::getErrorTitle ( )

Get Error title.

Returns
string

Definition at line 351 of file DataValidation.php.

References PhpOffice\PhpSpreadsheet\Cell\DataValidation\$errorTitle.

◆ getFormula1()

PhpOffice\PhpSpreadsheet\Cell\DataValidation::getFormula1 ( )

Get Formula 1.

Returns
string

Definition at line 135 of file DataValidation.php.

References PhpOffice\PhpSpreadsheet\Cell\DataValidation\$formula1.

◆ getFormula2()

PhpOffice\PhpSpreadsheet\Cell\DataValidation::getFormula2 ( )

Get Formula 2.

Returns
string

Definition at line 159 of file DataValidation.php.

References PhpOffice\PhpSpreadsheet\Cell\DataValidation\$formula2.

◆ getHashCode()

PhpOffice\PhpSpreadsheet\Cell\DataValidation::getHashCode ( )

Get hash code.

Returns
string Hash code

Definition at line 447 of file DataValidation.php.

448  {
449  return md5(
450  $this->formula1 .
451  $this->formula2 .
452  $this->type .
453  $this->errorStyle .
454  $this->operator .
455  ($this->allowBlank ? 't' : 'f') .
456  ($this->showDropDown ? 't' : 'f') .
457  ($this->showInputMessage ? 't' : 'f') .
458  ($this->showErrorMessage ? 't' : 'f') .
459  $this->errorTitle .
460  $this->error .
461  $this->promptTitle .
462  $this->prompt .
463  __CLASS__
464  );
465  }

◆ getOperator()

PhpOffice\PhpSpreadsheet\Cell\DataValidation::getOperator ( )

Get Operator.

Returns
string

Definition at line 231 of file DataValidation.php.

Referenced by PhpOffice\PhpSpreadsheet\Writer\Xls\CellDataValidation\operator().

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

◆ getPrompt()

PhpOffice\PhpSpreadsheet\Cell\DataValidation::getPrompt ( )

Get Prompt.

Returns
string

Definition at line 423 of file DataValidation.php.

References PhpOffice\PhpSpreadsheet\Cell\DataValidation\$prompt.

◆ getPromptTitle()

PhpOffice\PhpSpreadsheet\Cell\DataValidation::getPromptTitle ( )

Get Prompt title.

Returns
string

Definition at line 399 of file DataValidation.php.

References PhpOffice\PhpSpreadsheet\Cell\DataValidation\$promptTitle.

◆ getShowDropDown()

PhpOffice\PhpSpreadsheet\Cell\DataValidation::getShowDropDown ( )

Get Show DropDown.

Returns
bool

Definition at line 279 of file DataValidation.php.

References PhpOffice\PhpSpreadsheet\Cell\DataValidation\$showDropDown.

◆ getShowErrorMessage()

PhpOffice\PhpSpreadsheet\Cell\DataValidation::getShowErrorMessage ( )

Get Show ErrorMessage.

Returns
bool

Definition at line 327 of file DataValidation.php.

References PhpOffice\PhpSpreadsheet\Cell\DataValidation\$showErrorMessage.

◆ getShowInputMessage()

PhpOffice\PhpSpreadsheet\Cell\DataValidation::getShowInputMessage ( )

Get Show InputMessage.

Returns
bool

Definition at line 303 of file DataValidation.php.

References PhpOffice\PhpSpreadsheet\Cell\DataValidation\$showInputMessage.

◆ getType()

PhpOffice\PhpSpreadsheet\Cell\DataValidation::getType ( )

Get Type.

Returns
string

Definition at line 183 of file DataValidation.php.

References PhpOffice\PhpSpreadsheet\Cell\DataValidation\$type.

Referenced by PhpOffice\PhpSpreadsheet\Writer\Xls\CellDataValidation\type().

+ Here is the caller graph for this function:

◆ setAllowBlank()

PhpOffice\PhpSpreadsheet\Cell\DataValidation::setAllowBlank (   $value)

Set Allow Blank.

Parameters
bool$value
Returns
$this

Definition at line 267 of file DataValidation.php.

268  {
269  $this->allowBlank = $value;
270 
271  return $this;
272  }

◆ setError()

PhpOffice\PhpSpreadsheet\Cell\DataValidation::setError (   $value)

Set Error.

Parameters
string$value
Returns
$this

Definition at line 387 of file DataValidation.php.

388  {
389  $this->error = $value;
390 
391  return $this;
392  }

◆ setErrorStyle()

PhpOffice\PhpSpreadsheet\Cell\DataValidation::setErrorStyle (   $value)

Set Error style.

Parameters
string$valuesee self::STYLE_*
Returns
$this

Definition at line 219 of file DataValidation.php.

220  {
221  $this->errorStyle = $value;
222 
223  return $this;
224  }

◆ setErrorTitle()

PhpOffice\PhpSpreadsheet\Cell\DataValidation::setErrorTitle (   $value)

Set Error title.

Parameters
string$value
Returns
$this

Definition at line 363 of file DataValidation.php.

364  {
365  $this->errorTitle = $value;
366 
367  return $this;
368  }

◆ setFormula1()

PhpOffice\PhpSpreadsheet\Cell\DataValidation::setFormula1 (   $value)

Set Formula 1.

Parameters
string$value
Returns
$this

Definition at line 147 of file DataValidation.php.

148  {
149  $this->formula1 = $value;
150 
151  return $this;
152  }

◆ setFormula2()

PhpOffice\PhpSpreadsheet\Cell\DataValidation::setFormula2 (   $value)

Set Formula 2.

Parameters
string$value
Returns
$this

Definition at line 171 of file DataValidation.php.

172  {
173  $this->formula2 = $value;
174 
175  return $this;
176  }

◆ setOperator()

PhpOffice\PhpSpreadsheet\Cell\DataValidation::setOperator (   $value)

Set Operator.

Parameters
string$value
Returns
$this

Definition at line 243 of file DataValidation.php.

244  {
245  $this->operator = $value;
246 
247  return $this;
248  }

◆ setPrompt()

PhpOffice\PhpSpreadsheet\Cell\DataValidation::setPrompt (   $value)

Set Prompt.

Parameters
string$value
Returns
$this

Definition at line 435 of file DataValidation.php.

436  {
437  $this->prompt = $value;
438 
439  return $this;
440  }

◆ setPromptTitle()

PhpOffice\PhpSpreadsheet\Cell\DataValidation::setPromptTitle (   $value)

Set Prompt title.

Parameters
string$value
Returns
$this

Definition at line 411 of file DataValidation.php.

412  {
413  $this->promptTitle = $value;
414 
415  return $this;
416  }

◆ setShowDropDown()

PhpOffice\PhpSpreadsheet\Cell\DataValidation::setShowDropDown (   $value)

Set Show DropDown.

Parameters
bool$value
Returns
$this

Definition at line 291 of file DataValidation.php.

292  {
293  $this->showDropDown = $value;
294 
295  return $this;
296  }

◆ setShowErrorMessage()

PhpOffice\PhpSpreadsheet\Cell\DataValidation::setShowErrorMessage (   $value)

Set Show ErrorMessage.

Parameters
bool$value
Returns
$this

Definition at line 339 of file DataValidation.php.

340  {
341  $this->showErrorMessage = $value;
342 
343  return $this;
344  }

◆ setShowInputMessage()

PhpOffice\PhpSpreadsheet\Cell\DataValidation::setShowInputMessage (   $value)

Set Show InputMessage.

Parameters
bool$value
Returns
$this

Definition at line 315 of file DataValidation.php.

316  {
317  $this->showInputMessage = $value;
318 
319  return $this;
320  }

◆ setType()

PhpOffice\PhpSpreadsheet\Cell\DataValidation::setType (   $value)

Set Type.

Parameters
string$value
Returns
$this

Definition at line 195 of file DataValidation.php.

196  {
197  $this->type = $value;
198 
199  return $this;
200  }

Field Documentation

◆ $allowBlank

PhpOffice\PhpSpreadsheet\Cell\DataValidation::$allowBlank = false
private

◆ $error

PhpOffice\PhpSpreadsheet\Cell\DataValidation::$error = ''
private

◆ $errorStyle

PhpOffice\PhpSpreadsheet\Cell\DataValidation::$errorStyle = self::STYLE_STOP
private

◆ $errorTitle

PhpOffice\PhpSpreadsheet\Cell\DataValidation::$errorTitle = ''
private

◆ $formula1

PhpOffice\PhpSpreadsheet\Cell\DataValidation::$formula1 = ''
private

◆ $formula2

PhpOffice\PhpSpreadsheet\Cell\DataValidation::$formula2 = ''
private

◆ $prompt

PhpOffice\PhpSpreadsheet\Cell\DataValidation::$prompt = ''
private

◆ $promptTitle

PhpOffice\PhpSpreadsheet\Cell\DataValidation::$promptTitle = ''
private

◆ $showDropDown

PhpOffice\PhpSpreadsheet\Cell\DataValidation::$showDropDown = false
private

◆ $showErrorMessage

PhpOffice\PhpSpreadsheet\Cell\DataValidation::$showErrorMessage = false
private

◆ $showInputMessage

PhpOffice\PhpSpreadsheet\Cell\DataValidation::$showInputMessage = false
private

◆ $type

PhpOffice\PhpSpreadsheet\Cell\DataValidation::$type = self::TYPE_NONE
private

◆ OPERATOR_BETWEEN

const PhpOffice\PhpSpreadsheet\Cell\DataValidation::OPERATOR_BETWEEN = 'between'

◆ OPERATOR_EQUAL

const PhpOffice\PhpSpreadsheet\Cell\DataValidation::OPERATOR_EQUAL = 'equal'

◆ OPERATOR_GREATERTHAN

const PhpOffice\PhpSpreadsheet\Cell\DataValidation::OPERATOR_GREATERTHAN = 'greaterThan'

◆ OPERATOR_GREATERTHANOREQUAL

const PhpOffice\PhpSpreadsheet\Cell\DataValidation::OPERATOR_GREATERTHANOREQUAL = 'greaterThanOrEqual'

◆ OPERATOR_LESSTHAN

const PhpOffice\PhpSpreadsheet\Cell\DataValidation::OPERATOR_LESSTHAN = 'lessThan'

◆ OPERATOR_LESSTHANOREQUAL

const PhpOffice\PhpSpreadsheet\Cell\DataValidation::OPERATOR_LESSTHANOREQUAL = 'lessThanOrEqual'

◆ OPERATOR_NOTBETWEEN

const PhpOffice\PhpSpreadsheet\Cell\DataValidation::OPERATOR_NOTBETWEEN = 'notBetween'

◆ OPERATOR_NOTEQUAL

const PhpOffice\PhpSpreadsheet\Cell\DataValidation::OPERATOR_NOTEQUAL = 'notEqual'

◆ STYLE_INFORMATION

const PhpOffice\PhpSpreadsheet\Cell\DataValidation::STYLE_INFORMATION = 'information'

◆ STYLE_STOP

const PhpOffice\PhpSpreadsheet\Cell\DataValidation::STYLE_STOP = 'stop'

◆ STYLE_WARNING

const PhpOffice\PhpSpreadsheet\Cell\DataValidation::STYLE_WARNING = 'warning'

◆ TYPE_CUSTOM

const PhpOffice\PhpSpreadsheet\Cell\DataValidation::TYPE_CUSTOM = 'custom'

◆ TYPE_DATE

const PhpOffice\PhpSpreadsheet\Cell\DataValidation::TYPE_DATE = 'date'

◆ TYPE_DECIMAL

const PhpOffice\PhpSpreadsheet\Cell\DataValidation::TYPE_DECIMAL = 'decimal'

◆ TYPE_LIST

const PhpOffice\PhpSpreadsheet\Cell\DataValidation::TYPE_LIST = 'list'

◆ TYPE_NONE

const PhpOffice\PhpSpreadsheet\Cell\DataValidation::TYPE_NONE = 'none'

◆ TYPE_TEXTLENGTH

const PhpOffice\PhpSpreadsheet\Cell\DataValidation::TYPE_TEXTLENGTH = 'textLength'

◆ TYPE_TIME

const PhpOffice\PhpSpreadsheet\Cell\DataValidation::TYPE_TIME = 'time'

◆ TYPE_WHOLE

const PhpOffice\PhpSpreadsheet\Cell\DataValidation::TYPE_WHOLE = 'whole'

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