ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct () | |
Create a new Protection. More... | |
isProtectionEnabled () | |
Is some sort of protection enabled? More... | |
getSheet () | |
Get Sheet. More... | |
setSheet ($pValue) | |
Set Sheet. More... | |
getObjects () | |
Get Objects. More... | |
setObjects ($pValue) | |
Set Objects. More... | |
getScenarios () | |
Get Scenarios. More... | |
setScenarios ($pValue) | |
Set Scenarios. More... | |
getFormatCells () | |
Get FormatCells. More... | |
setFormatCells ($pValue) | |
Set FormatCells. More... | |
getFormatColumns () | |
Get FormatColumns. More... | |
setFormatColumns ($pValue) | |
Set FormatColumns. More... | |
getFormatRows () | |
Get FormatRows. More... | |
setFormatRows ($pValue) | |
Set FormatRows. More... | |
getInsertColumns () | |
Get InsertColumns. More... | |
setInsertColumns ($pValue) | |
Set InsertColumns. More... | |
getInsertRows () | |
Get InsertRows. More... | |
setInsertRows ($pValue) | |
Set InsertRows. More... | |
getInsertHyperlinks () | |
Get InsertHyperlinks. More... | |
setInsertHyperlinks ($pValue) | |
Set InsertHyperlinks. More... | |
getDeleteColumns () | |
Get DeleteColumns. More... | |
setDeleteColumns ($pValue) | |
Set DeleteColumns. More... | |
getDeleteRows () | |
Get DeleteRows. More... | |
setDeleteRows ($pValue) | |
Set DeleteRows. More... | |
getSelectLockedCells () | |
Get SelectLockedCells. More... | |
setSelectLockedCells ($pValue) | |
Set SelectLockedCells. More... | |
getSort () | |
Get Sort. More... | |
setSort ($pValue) | |
Set Sort. More... | |
getAutoFilter () | |
Get AutoFilter. More... | |
setAutoFilter ($pValue) | |
Set AutoFilter. More... | |
getPivotTables () | |
Get PivotTables. More... | |
setPivotTables ($pValue) | |
Set PivotTables. More... | |
getSelectUnlockedCells () | |
Get SelectUnlockedCells. More... | |
setSelectUnlockedCells ($pValue) | |
Set SelectUnlockedCells. More... | |
getPassword () | |
Get hashed password. More... | |
setPassword ($pValue, $pAlreadyHashed=false) | |
Set Password. More... | |
getAlgorithm () | |
Get algorithm name. More... | |
setAlgorithm (string $algorithm) | |
Set algorithm name. More... | |
getSalt () | |
Get salt value. More... | |
setSalt (string $salt) | |
Set salt value. More... | |
getSpinCount () | |
Get spin count. More... | |
setSpinCount (int $spinCount) | |
Set spin count. More... | |
verify (string $password) | |
Verify that the given non-hashed password can "unlock" the protection. More... | |
__clone () | |
Implement PHP __clone to create a deep clone, not just a shallow copy. More... | |
Data Fields | |
const | ALGORITHM_MD2 = 'MD2' |
const | ALGORITHM_MD4 = 'MD4' |
const | ALGORITHM_MD5 = 'MD5' |
const | ALGORITHM_SHA_1 = 'SHA-1' |
const | ALGORITHM_SHA_256 = 'SHA-256' |
const | ALGORITHM_SHA_384 = 'SHA-384' |
const | ALGORITHM_SHA_512 = 'SHA-512' |
const | ALGORITHM_RIPEMD_128 = 'RIPEMD-128' |
const | ALGORITHM_RIPEMD_160 = 'RIPEMD-160' |
const | ALGORITHM_WHIRLPOOL = 'WHIRLPOOL' |
Private Member Functions | |
generateSalt () | |
Create a pseudorandom string. 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 = '' | |
$algorithm = '' | |
$salt = '' | |
$spinCount = 10000 | |
Definition at line 7 of file Protection.php.
PhpOffice\PhpSpreadsheet\Worksheet\Protection::__construct | ( | ) |
PhpOffice\PhpSpreadsheet\Worksheet\Protection::__clone | ( | ) |
Implement PHP __clone to create a deep clone, not just a shallow copy.
Definition at line 680 of file Protection.php.
References $key.
|
private |
Create a pseudorandom string.
Definition at line 610 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\setPassword().
PhpOffice\PhpSpreadsheet\Worksheet\Protection::getAlgorithm | ( | ) |
Get algorithm name.
Definition at line 618 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$algorithm.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\setPassword(), and PhpOffice\PhpSpreadsheet\Worksheet\Protection\verify().
PhpOffice\PhpSpreadsheet\Worksheet\Protection::getAutoFilter | ( | ) |
Get AutoFilter.
Definition at line 509 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$autoFilter.
PhpOffice\PhpSpreadsheet\Worksheet\Protection::getDeleteColumns | ( | ) |
Get DeleteColumns.
Definition at line 413 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$deleteColumns.
PhpOffice\PhpSpreadsheet\Worksheet\Protection::getDeleteRows | ( | ) |
Get DeleteRows.
Definition at line 437 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$deleteRows.
PhpOffice\PhpSpreadsheet\Worksheet\Protection::getFormatCells | ( | ) |
Get FormatCells.
Definition at line 269 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$formatCells.
PhpOffice\PhpSpreadsheet\Worksheet\Protection::getFormatColumns | ( | ) |
Get FormatColumns.
Definition at line 293 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$formatColumns.
PhpOffice\PhpSpreadsheet\Worksheet\Protection::getFormatRows | ( | ) |
Get FormatRows.
Definition at line 317 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$formatRows.
PhpOffice\PhpSpreadsheet\Worksheet\Protection::getInsertColumns | ( | ) |
Get InsertColumns.
Definition at line 341 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$insertColumns.
PhpOffice\PhpSpreadsheet\Worksheet\Protection::getInsertHyperlinks | ( | ) |
Get InsertHyperlinks.
Definition at line 389 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$insertHyperlinks.
PhpOffice\PhpSpreadsheet\Worksheet\Protection::getInsertRows | ( | ) |
Get InsertRows.
Definition at line 365 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$insertRows.
PhpOffice\PhpSpreadsheet\Worksheet\Protection::getObjects | ( | ) |
Get Objects.
Definition at line 221 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$objects.
PhpOffice\PhpSpreadsheet\Worksheet\Protection::getPassword | ( | ) |
Get hashed password.
Definition at line 581 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$password.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\verify().
PhpOffice\PhpSpreadsheet\Worksheet\Protection::getPivotTables | ( | ) |
Get PivotTables.
Definition at line 533 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$pivotTables.
PhpOffice\PhpSpreadsheet\Worksheet\Protection::getSalt | ( | ) |
Get salt value.
Definition at line 634 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$salt.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\setPassword(), and PhpOffice\PhpSpreadsheet\Worksheet\Protection\verify().
PhpOffice\PhpSpreadsheet\Worksheet\Protection::getScenarios | ( | ) |
Get Scenarios.
Definition at line 245 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$scenarios.
PhpOffice\PhpSpreadsheet\Worksheet\Protection::getSelectLockedCells | ( | ) |
Get SelectLockedCells.
Definition at line 461 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$selectLockedCells.
PhpOffice\PhpSpreadsheet\Worksheet\Protection::getSelectUnlockedCells | ( | ) |
Get SelectUnlockedCells.
Definition at line 557 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$selectUnlockedCells.
PhpOffice\PhpSpreadsheet\Worksheet\Protection::getSheet | ( | ) |
Get Sheet.
Definition at line 197 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$sheet.
PhpOffice\PhpSpreadsheet\Worksheet\Protection::getSort | ( | ) |
Get Sort.
Definition at line 485 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$sort.
PhpOffice\PhpSpreadsheet\Worksheet\Protection::getSpinCount | ( | ) |
Get spin count.
Definition at line 650 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$spinCount.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\setPassword(), and PhpOffice\PhpSpreadsheet\Worksheet\Protection\verify().
PhpOffice\PhpSpreadsheet\Worksheet\Protection::isProtectionEnabled | ( | ) |
Is some sort of protection enabled?
Definition at line 172 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$selectUnlockedCells.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\verify().
PhpOffice\PhpSpreadsheet\Worksheet\Protection::setAlgorithm | ( | string | $algorithm | ) |
Set algorithm name.
Definition at line 626 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$algorithm.
PhpOffice\PhpSpreadsheet\Worksheet\Protection::setAutoFilter | ( | $pValue | ) |
PhpOffice\PhpSpreadsheet\Worksheet\Protection::setDeleteColumns | ( | $pValue | ) |
Set DeleteColumns.
bool | $pValue |
Definition at line 425 of file Protection.php.
PhpOffice\PhpSpreadsheet\Worksheet\Protection::setDeleteRows | ( | $pValue | ) |
PhpOffice\PhpSpreadsheet\Worksheet\Protection::setFormatCells | ( | $pValue | ) |
PhpOffice\PhpSpreadsheet\Worksheet\Protection::setFormatColumns | ( | $pValue | ) |
Set FormatColumns.
bool | $pValue |
Definition at line 305 of file Protection.php.
PhpOffice\PhpSpreadsheet\Worksheet\Protection::setFormatRows | ( | $pValue | ) |
PhpOffice\PhpSpreadsheet\Worksheet\Protection::setInsertColumns | ( | $pValue | ) |
Set InsertColumns.
bool | $pValue |
Definition at line 353 of file Protection.php.
PhpOffice\PhpSpreadsheet\Worksheet\Protection::setInsertHyperlinks | ( | $pValue | ) |
Set InsertHyperlinks.
bool | $pValue |
Definition at line 401 of file Protection.php.
PhpOffice\PhpSpreadsheet\Worksheet\Protection::setInsertRows | ( | $pValue | ) |
PhpOffice\PhpSpreadsheet\Worksheet\Protection::setObjects | ( | $pValue | ) |
PhpOffice\PhpSpreadsheet\Worksheet\Protection::setPassword | ( | $pValue, | |
$pAlreadyHashed = false |
|||
) |
Set Password.
string | $pValue | |
bool | $pAlreadyHashed | If the password has already been hashed, set this to true |
Definition at line 594 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$salt, PhpOffice\PhpSpreadsheet\Worksheet\Protection\generateSalt(), PhpOffice\PhpSpreadsheet\Worksheet\Protection\getAlgorithm(), PhpOffice\PhpSpreadsheet\Worksheet\Protection\getSalt(), PhpOffice\PhpSpreadsheet\Worksheet\Protection\getSpinCount(), PhpOffice\PhpSpreadsheet\Shared\PasswordHasher\hashPassword(), and PhpOffice\PhpSpreadsheet\Worksheet\Protection\setSalt().
PhpOffice\PhpSpreadsheet\Worksheet\Protection::setPivotTables | ( | $pValue | ) |
PhpOffice\PhpSpreadsheet\Worksheet\Protection::setSalt | ( | string | $salt | ) |
Set salt value.
Definition at line 642 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$salt.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\setPassword().
PhpOffice\PhpSpreadsheet\Worksheet\Protection::setScenarios | ( | $pValue | ) |
PhpOffice\PhpSpreadsheet\Worksheet\Protection::setSelectLockedCells | ( | $pValue | ) |
Set SelectLockedCells.
bool | $pValue |
Definition at line 473 of file Protection.php.
PhpOffice\PhpSpreadsheet\Worksheet\Protection::setSelectUnlockedCells | ( | $pValue | ) |
Set SelectUnlockedCells.
bool | $pValue |
Definition at line 569 of file Protection.php.
PhpOffice\PhpSpreadsheet\Worksheet\Protection::setSheet | ( | $pValue | ) |
PhpOffice\PhpSpreadsheet\Worksheet\Protection::setSort | ( | $pValue | ) |
PhpOffice\PhpSpreadsheet\Worksheet\Protection::setSpinCount | ( | int | $spinCount | ) |
Set spin count.
Definition at line 658 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Worksheet\Protection\$spinCount.
PhpOffice\PhpSpreadsheet\Worksheet\Protection::verify | ( | string | $password | ) |
Verify that the given non-hashed password can "unlock" the protection.
Definition at line 666 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\$hash, PhpOffice\PhpSpreadsheet\Worksheet\Protection\getAlgorithm(), PhpOffice\PhpSpreadsheet\Worksheet\Protection\getPassword(), PhpOffice\PhpSpreadsheet\Worksheet\Protection\getSalt(), PhpOffice\PhpSpreadsheet\Worksheet\Protection\getSpinCount(), PhpOffice\PhpSpreadsheet\Shared\PasswordHasher\hashPassword(), and PhpOffice\PhpSpreadsheet\Worksheet\Protection\isProtectionEnabled().
|
private |
Definition at line 144 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\getAlgorithm(), and PhpOffice\PhpSpreadsheet\Worksheet\Protection\setAlgorithm().
|
private |
Definition at line 116 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\getAutoFilter().
|
private |
Definition at line 88 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\getDeleteColumns().
|
private |
Definition at line 95 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\getDeleteRows().
|
private |
Definition at line 46 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\getFormatCells().
|
private |
Definition at line 53 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\getFormatColumns().
|
private |
Definition at line 60 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\getFormatRows().
|
private |
Definition at line 67 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\getInsertColumns().
|
private |
Definition at line 81 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\getInsertHyperlinks().
|
private |
Definition at line 74 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\getInsertRows().
|
private |
Definition at line 32 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\getObjects().
|
private |
Definition at line 137 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\getPassword().
|
private |
Definition at line 123 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\getPivotTables().
|
private |
Definition at line 151 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\getSalt(), PhpOffice\PhpSpreadsheet\Worksheet\Protection\setPassword(), and PhpOffice\PhpSpreadsheet\Worksheet\Protection\setSalt().
|
private |
Definition at line 39 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\getScenarios().
|
private |
Definition at line 102 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\getSelectLockedCells().
|
private |
Definition at line 130 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\getSelectUnlockedCells(), and PhpOffice\PhpSpreadsheet\Worksheet\Protection\isProtectionEnabled().
|
private |
Definition at line 25 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\getSheet().
|
private |
Definition at line 109 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\getSort().
|
private |
Definition at line 158 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Protection\getSpinCount(), and PhpOffice\PhpSpreadsheet\Worksheet\Protection\setSpinCount().
const PhpOffice\PhpSpreadsheet\Worksheet\Protection::ALGORITHM_MD2 = 'MD2' |
Definition at line 9 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Shared\PasswordHasher\getAlgorithm().
const PhpOffice\PhpSpreadsheet\Worksheet\Protection::ALGORITHM_MD4 = 'MD4' |
Definition at line 10 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Shared\PasswordHasher\getAlgorithm().
const PhpOffice\PhpSpreadsheet\Worksheet\Protection::ALGORITHM_MD5 = 'MD5' |
Definition at line 11 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Shared\PasswordHasher\getAlgorithm().
const PhpOffice\PhpSpreadsheet\Worksheet\Protection::ALGORITHM_RIPEMD_128 = 'RIPEMD-128' |
Definition at line 16 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Shared\PasswordHasher\getAlgorithm().
const PhpOffice\PhpSpreadsheet\Worksheet\Protection::ALGORITHM_RIPEMD_160 = 'RIPEMD-160' |
Definition at line 17 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Shared\PasswordHasher\getAlgorithm().
const PhpOffice\PhpSpreadsheet\Worksheet\Protection::ALGORITHM_SHA_1 = 'SHA-1' |
Definition at line 12 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Shared\PasswordHasher\getAlgorithm().
const PhpOffice\PhpSpreadsheet\Worksheet\Protection::ALGORITHM_SHA_256 = 'SHA-256' |
Definition at line 13 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Shared\PasswordHasher\getAlgorithm().
const PhpOffice\PhpSpreadsheet\Worksheet\Protection::ALGORITHM_SHA_384 = 'SHA-384' |
Definition at line 14 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Shared\PasswordHasher\getAlgorithm().
const PhpOffice\PhpSpreadsheet\Worksheet\Protection::ALGORITHM_SHA_512 = 'SHA-512' |
Definition at line 15 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Shared\PasswordHasher\getAlgorithm().
const PhpOffice\PhpSpreadsheet\Worksheet\Protection::ALGORITHM_WHIRLPOOL = 'WHIRLPOOL' |
Definition at line 18 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Shared\PasswordHasher\getAlgorithm().