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

Public Member Functions

 __construct ()
 Create a new PHPExcel_Worksheet_Protection. More...
 
 isProtectionEnabled ()
 Is some sort of protection enabled? More...
 
 getSheet ()
 Get Sheet. More...
 
 setSheet ($pValue=false)
 Set Sheet. More...
 
 getObjects ()
 Get Objects. More...
 
 setObjects ($pValue=false)
 Set Objects. More...
 
 getScenarios ()
 Get Scenarios. More...
 
 setScenarios ($pValue=false)
 Set Scenarios. More...
 
 getFormatCells ()
 Get FormatCells. More...
 
 setFormatCells ($pValue=false)
 Set FormatCells. More...
 
 getFormatColumns ()
 Get FormatColumns. More...
 
 setFormatColumns ($pValue=false)
 Set FormatColumns. More...
 
 getFormatRows ()
 Get FormatRows. More...
 
 setFormatRows ($pValue=false)
 Set FormatRows. More...
 
 getInsertColumns ()
 Get InsertColumns. More...
 
 setInsertColumns ($pValue=false)
 Set InsertColumns. More...
 
 getInsertRows ()
 Get InsertRows. More...
 
 setInsertRows ($pValue=false)
 Set InsertRows. More...
 
 getInsertHyperlinks ()
 Get InsertHyperlinks. More...
 
 setInsertHyperlinks ($pValue=false)
 Set InsertHyperlinks. More...
 
 getDeleteColumns ()
 Get DeleteColumns. More...
 
 setDeleteColumns ($pValue=false)
 Set DeleteColumns. More...
 
 getDeleteRows ()
 Get DeleteRows. More...
 
 setDeleteRows ($pValue=false)
 Set DeleteRows. More...
 
 getSelectLockedCells ()
 Get SelectLockedCells. More...
 
 setSelectLockedCells ($pValue=false)
 Set SelectLockedCells. More...
 
 getSort ()
 Get Sort. More...
 
 setSort ($pValue=false)
 Set Sort. More...
 
 getAutoFilter ()
 Get AutoFilter. More...
 
 setAutoFilter ($pValue=false)
 Set AutoFilter. More...
 
 getPivotTables ()
 Get PivotTables. More...
 
 setPivotTables ($pValue=false)
 Set PivotTables. More...
 
 getSelectUnlockedCells ()
 Get SelectUnlockedCells. More...
 
 setSelectUnlockedCells ($pValue=false)
 Set SelectUnlockedCells. More...
 
 getPassword ()
 Get Password (hashed) More...
 
 setPassword ($pValue='', $pAlreadyHashed=false)
 Set Password. More...
 
 __clone ()
 Implement PHP __clone to create a deep clone, not just a shallow copy. More...
 

Private Attributes

 $_sheet = false
 
 $_objects = false
 
 $_scenarios = false
 
 $_formatCells = false
 
 $_formatColumns = false
 
 $_formatRows = false
 
 $_insertColumns = false
 
 $_insertRows = false
 
 $_insertHyperlinks = false
 
 $_deleteColumns = false
 
 $_deleteRows = false
 
 $_selectLockedCells = false
 
 $_sort = false
 
 $_autoFilter = false
 
 $_pivotTables = false
 
 $_selectUnlockedCells = false
 
 $_password = ''
 

Detailed Description

Definition at line 36 of file Protection.php.

Constructor & Destructor Documentation

◆ __construct()

PHPExcel_Worksheet_Protection::__construct ( )

Create a new PHPExcel_Worksheet_Protection.

Definition at line 160 of file Protection.php.

161  {
162  }

Member Function Documentation

◆ __clone()

PHPExcel_Worksheet_Protection::__clone ( )

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

Definition at line 535 of file Protection.php.

535  {
536  $vars = get_object_vars($this);
537  foreach ($vars as $key => $value) {
538  if (is_object($value)) {
539  $this->$key = clone $value;
540  } else {
541  $this->$key = $value;
542  }
543  }
544  }

◆ getAutoFilter()

PHPExcel_Worksheet_Protection::getAutoFilter ( )

Get AutoFilter.

Returns
boolean

Definition at line 453 of file Protection.php.

References $_autoFilter.

453  {
454  return $this->_autoFilter;
455  }

◆ getDeleteColumns()

PHPExcel_Worksheet_Protection::getDeleteColumns ( )

Get DeleteColumns.

Returns
boolean

Definition at line 373 of file Protection.php.

References $_deleteColumns.

373  {
374  return $this->_deleteColumns;
375  }

◆ getDeleteRows()

PHPExcel_Worksheet_Protection::getDeleteRows ( )

Get DeleteRows.

Returns
boolean

Definition at line 393 of file Protection.php.

References $_deleteRows.

393  {
394  return $this->_deleteRows;
395  }

◆ getFormatCells()

PHPExcel_Worksheet_Protection::getFormatCells ( )

Get FormatCells.

Returns
boolean

Definition at line 253 of file Protection.php.

References $_formatCells.

253  {
254  return $this->_formatCells;
255  }

◆ getFormatColumns()

PHPExcel_Worksheet_Protection::getFormatColumns ( )

Get FormatColumns.

Returns
boolean

Definition at line 273 of file Protection.php.

References $_formatColumns.

273  {
274  return $this->_formatColumns;
275  }

◆ getFormatRows()

PHPExcel_Worksheet_Protection::getFormatRows ( )

Get FormatRows.

Returns
boolean

Definition at line 293 of file Protection.php.

References $_formatRows.

293  {
294  return $this->_formatRows;
295  }

◆ getInsertColumns()

PHPExcel_Worksheet_Protection::getInsertColumns ( )

Get InsertColumns.

Returns
boolean

Definition at line 313 of file Protection.php.

References $_insertColumns.

313  {
314  return $this->_insertColumns;
315  }

◆ getInsertHyperlinks()

PHPExcel_Worksheet_Protection::getInsertHyperlinks ( )

Get InsertHyperlinks.

Returns
boolean

Definition at line 353 of file Protection.php.

References $_insertHyperlinks.

353  {
355  }

◆ getInsertRows()

PHPExcel_Worksheet_Protection::getInsertRows ( )

Get InsertRows.

Returns
boolean

Definition at line 333 of file Protection.php.

References $_insertRows.

333  {
334  return $this->_insertRows;
335  }

◆ getObjects()

PHPExcel_Worksheet_Protection::getObjects ( )

Get Objects.

Returns
boolean

Definition at line 213 of file Protection.php.

References $_objects.

213  {
214  return $this->_objects;
215  }

◆ getPassword()

PHPExcel_Worksheet_Protection::getPassword ( )

Get Password (hashed)

Returns
string

Definition at line 513 of file Protection.php.

References $_password.

513  {
514  return $this->_password;
515  }

◆ getPivotTables()

PHPExcel_Worksheet_Protection::getPivotTables ( )

Get PivotTables.

Returns
boolean

Definition at line 473 of file Protection.php.

References $_pivotTables.

473  {
474  return $this->_pivotTables;
475  }

◆ getScenarios()

PHPExcel_Worksheet_Protection::getScenarios ( )

Get Scenarios.

Returns
boolean

Definition at line 233 of file Protection.php.

References $_scenarios.

233  {
234  return $this->_scenarios;
235  }

◆ getSelectLockedCells()

PHPExcel_Worksheet_Protection::getSelectLockedCells ( )

Get SelectLockedCells.

Returns
boolean

Definition at line 413 of file Protection.php.

References $_selectLockedCells.

413  {
415  }

◆ getSelectUnlockedCells()

PHPExcel_Worksheet_Protection::getSelectUnlockedCells ( )

Get SelectUnlockedCells.

Returns
boolean

Definition at line 493 of file Protection.php.

References $_selectUnlockedCells.

493  {
495  }

◆ getSheet()

PHPExcel_Worksheet_Protection::getSheet ( )

Get Sheet.

Returns
boolean

Definition at line 193 of file Protection.php.

References $_sheet.

193  {
194  return $this->_sheet;
195  }

◆ getSort()

PHPExcel_Worksheet_Protection::getSort ( )

Get Sort.

Returns
boolean

Definition at line 433 of file Protection.php.

References $_sort.

433  {
434  return $this->_sort;
435  }

◆ isProtectionEnabled()

PHPExcel_Worksheet_Protection::isProtectionEnabled ( )

Is some sort of protection enabled?

Returns
boolean

Definition at line 169 of file Protection.php.

References $_selectUnlockedCells.

169  {
170  return $this->_sheet ||
171  $this->_objects ||
172  $this->_scenarios ||
173  $this->_formatCells ||
174  $this->_formatColumns ||
175  $this->_formatRows ||
176  $this->_insertColumns ||
177  $this->_insertRows ||
178  $this->_insertHyperlinks ||
179  $this->_deleteColumns ||
180  $this->_deleteRows ||
181  $this->_selectLockedCells ||
182  $this->_sort ||
183  $this->_autoFilter ||
184  $this->_pivotTables ||
186  }

◆ setAutoFilter()

PHPExcel_Worksheet_Protection::setAutoFilter (   $pValue = false)

Set AutoFilter.

Parameters
boolean$pValue
Returns
PHPExcel_Worksheet_Protection

Definition at line 463 of file Protection.php.

463  {
464  $this->_autoFilter = $pValue;
465  return $this;
466  }

◆ setDeleteColumns()

PHPExcel_Worksheet_Protection::setDeleteColumns (   $pValue = false)

Set DeleteColumns.

Parameters
boolean$pValue
Returns
PHPExcel_Worksheet_Protection

Definition at line 383 of file Protection.php.

383  {
384  $this->_deleteColumns = $pValue;
385  return $this;
386  }

◆ setDeleteRows()

PHPExcel_Worksheet_Protection::setDeleteRows (   $pValue = false)

Set DeleteRows.

Parameters
boolean$pValue
Returns
PHPExcel_Worksheet_Protection

Definition at line 403 of file Protection.php.

403  {
404  $this->_deleteRows = $pValue;
405  return $this;
406  }

◆ setFormatCells()

PHPExcel_Worksheet_Protection::setFormatCells (   $pValue = false)

Set FormatCells.

Parameters
boolean$pValue
Returns
PHPExcel_Worksheet_Protection

Definition at line 263 of file Protection.php.

263  {
264  $this->_formatCells = $pValue;
265  return $this;
266  }

◆ setFormatColumns()

PHPExcel_Worksheet_Protection::setFormatColumns (   $pValue = false)

Set FormatColumns.

Parameters
boolean$pValue
Returns
PHPExcel_Worksheet_Protection

Definition at line 283 of file Protection.php.

283  {
284  $this->_formatColumns = $pValue;
285  return $this;
286  }

◆ setFormatRows()

PHPExcel_Worksheet_Protection::setFormatRows (   $pValue = false)

Set FormatRows.

Parameters
boolean$pValue
Returns
PHPExcel_Worksheet_Protection

Definition at line 303 of file Protection.php.

303  {
304  $this->_formatRows = $pValue;
305  return $this;
306  }

◆ setInsertColumns()

PHPExcel_Worksheet_Protection::setInsertColumns (   $pValue = false)

Set InsertColumns.

Parameters
boolean$pValue
Returns
PHPExcel_Worksheet_Protection

Definition at line 323 of file Protection.php.

323  {
324  $this->_insertColumns = $pValue;
325  return $this;
326  }

◆ setInsertHyperlinks()

PHPExcel_Worksheet_Protection::setInsertHyperlinks (   $pValue = false)

Set InsertHyperlinks.

Parameters
boolean$pValue
Returns
PHPExcel_Worksheet_Protection

Definition at line 363 of file Protection.php.

363  {
364  $this->_insertHyperlinks = $pValue;
365  return $this;
366  }

◆ setInsertRows()

PHPExcel_Worksheet_Protection::setInsertRows (   $pValue = false)

Set InsertRows.

Parameters
boolean$pValue
Returns
PHPExcel_Worksheet_Protection

Definition at line 343 of file Protection.php.

343  {
344  $this->_insertRows = $pValue;
345  return $this;
346  }

◆ setObjects()

PHPExcel_Worksheet_Protection::setObjects (   $pValue = false)

Set Objects.

Parameters
boolean$pValue
Returns
PHPExcel_Worksheet_Protection

Definition at line 223 of file Protection.php.

223  {
224  $this->_objects = $pValue;
225  return $this;
226  }

◆ setPassword()

PHPExcel_Worksheet_Protection::setPassword (   $pValue = '',
  $pAlreadyHashed = false 
)

Set Password.

Parameters
string$pValue
boolean$pAlreadyHashedIf the password has already been hashed, set this to true
Returns
PHPExcel_Worksheet_Protection

Definition at line 524 of file Protection.php.

References PHPExcel_Shared_PasswordHasher\hashPassword().

524  {
525  if (!$pAlreadyHashed) {
527  }
528  $this->_password = $pValue;
529  return $this;
530  }
static hashPassword($pPassword='')
Create a password hash from a given string.
+ Here is the call graph for this function:

◆ setPivotTables()

PHPExcel_Worksheet_Protection::setPivotTables (   $pValue = false)

Set PivotTables.

Parameters
boolean$pValue
Returns
PHPExcel_Worksheet_Protection

Definition at line 483 of file Protection.php.

483  {
484  $this->_pivotTables = $pValue;
485  return $this;
486  }

◆ setScenarios()

PHPExcel_Worksheet_Protection::setScenarios (   $pValue = false)

Set Scenarios.

Parameters
boolean$pValue
Returns
PHPExcel_Worksheet_Protection

Definition at line 243 of file Protection.php.

243  {
244  $this->_scenarios = $pValue;
245  return $this;
246  }

◆ setSelectLockedCells()

PHPExcel_Worksheet_Protection::setSelectLockedCells (   $pValue = false)

Set SelectLockedCells.

Parameters
boolean$pValue
Returns
PHPExcel_Worksheet_Protection

Definition at line 423 of file Protection.php.

423  {
424  $this->_selectLockedCells = $pValue;
425  return $this;
426  }

◆ setSelectUnlockedCells()

PHPExcel_Worksheet_Protection::setSelectUnlockedCells (   $pValue = false)

Set SelectUnlockedCells.

Parameters
boolean$pValue
Returns
PHPExcel_Worksheet_Protection

Definition at line 503 of file Protection.php.

503  {
504  $this->_selectUnlockedCells = $pValue;
505  return $this;
506  }

◆ setSheet()

PHPExcel_Worksheet_Protection::setSheet (   $pValue = false)

Set Sheet.

Parameters
boolean$pValue
Returns
PHPExcel_Worksheet_Protection

Definition at line 203 of file Protection.php.

203  {
204  $this->_sheet = $pValue;
205  return $this;
206  }

◆ setSort()

PHPExcel_Worksheet_Protection::setSort (   $pValue = false)

Set Sort.

Parameters
boolean$pValue
Returns
PHPExcel_Worksheet_Protection

Definition at line 443 of file Protection.php.

443  {
444  $this->_sort = $pValue;
445  return $this;
446  }

Field Documentation

◆ $_autoFilter

PHPExcel_Worksheet_Protection::$_autoFilter = false
private

Definition at line 134 of file Protection.php.

Referenced by getAutoFilter().

◆ $_deleteColumns

PHPExcel_Worksheet_Protection::$_deleteColumns = false
private

Definition at line 106 of file Protection.php.

Referenced by getDeleteColumns().

◆ $_deleteRows

PHPExcel_Worksheet_Protection::$_deleteRows = false
private

Definition at line 113 of file Protection.php.

Referenced by getDeleteRows().

◆ $_formatCells

PHPExcel_Worksheet_Protection::$_formatCells = false
private

Definition at line 64 of file Protection.php.

Referenced by getFormatCells().

◆ $_formatColumns

PHPExcel_Worksheet_Protection::$_formatColumns = false
private

Definition at line 71 of file Protection.php.

Referenced by getFormatColumns().

◆ $_formatRows

PHPExcel_Worksheet_Protection::$_formatRows = false
private

Definition at line 78 of file Protection.php.

Referenced by getFormatRows().

◆ $_insertColumns

PHPExcel_Worksheet_Protection::$_insertColumns = false
private

Definition at line 85 of file Protection.php.

Referenced by getInsertColumns().

◆ $_insertHyperlinks

PHPExcel_Worksheet_Protection::$_insertHyperlinks = false
private

Definition at line 99 of file Protection.php.

Referenced by getInsertHyperlinks().

◆ $_insertRows

PHPExcel_Worksheet_Protection::$_insertRows = false
private

Definition at line 92 of file Protection.php.

Referenced by getInsertRows().

◆ $_objects

PHPExcel_Worksheet_Protection::$_objects = false
private

Definition at line 50 of file Protection.php.

Referenced by getObjects().

◆ $_password

PHPExcel_Worksheet_Protection::$_password = ''
private

Definition at line 155 of file Protection.php.

Referenced by getPassword().

◆ $_pivotTables

PHPExcel_Worksheet_Protection::$_pivotTables = false
private

Definition at line 141 of file Protection.php.

Referenced by getPivotTables().

◆ $_scenarios

PHPExcel_Worksheet_Protection::$_scenarios = false
private

Definition at line 57 of file Protection.php.

Referenced by getScenarios().

◆ $_selectLockedCells

PHPExcel_Worksheet_Protection::$_selectLockedCells = false
private

Definition at line 120 of file Protection.php.

Referenced by getSelectLockedCells().

◆ $_selectUnlockedCells

PHPExcel_Worksheet_Protection::$_selectUnlockedCells = false
private

Definition at line 148 of file Protection.php.

Referenced by getSelectUnlockedCells(), and isProtectionEnabled().

◆ $_sheet

PHPExcel_Worksheet_Protection::$_sheet = false
private

Definition at line 43 of file Protection.php.

Referenced by getSheet().

◆ $_sort

PHPExcel_Worksheet_Protection::$_sort = false
private

Definition at line 127 of file Protection.php.

Referenced by getSort().


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