174 return $this->sheet ||
177 $this->formatCells ||
178 $this->formatColumns ||
180 $this->insertColumns ||
182 $this->insertHyperlinks ||
183 $this->deleteColumns ||
185 $this->selectLockedCells ||
188 $this->pivotTables ||
211 $this->sheet = $pValue;
235 $this->objects = $pValue;
259 $this->scenarios = $pValue;
283 $this->formatCells = $pValue;
307 $this->formatColumns = $pValue;
331 $this->formatRows = $pValue;
355 $this->insertColumns = $pValue;
379 $this->insertRows = $pValue;
403 $this->insertHyperlinks = $pValue;
427 $this->deleteColumns = $pValue;
451 $this->deleteRows = $pValue;
475 $this->selectLockedCells = $pValue;
499 $this->sort = $pValue;
523 $this->autoFilter = $pValue;
547 $this->pivotTables = $pValue;
571 $this->selectUnlockedCells = $pValue;
596 if (!$pAlreadyHashed) {
602 $this->password = $pValue;
612 return base64_encode(random_bytes(16));
682 $vars = get_object_vars($this);
683 foreach ($vars as
$key => $value) {
684 if (is_object($value)) {
685 $this->
$key = clone $value;
687 $this->
$key = $value;
getSelectUnlockedCells()
Get SelectUnlockedCells.
const ALGORITHM_WHIRLPOOL
setScenarios($pValue)
Set Scenarios.
setSelectUnlockedCells($pValue)
Set SelectUnlockedCells.
__clone()
Implement PHP __clone to create a deep clone, not just a shallow copy.
setAutoFilter($pValue)
Set AutoFilter.
getInsertRows()
Get InsertRows.
getSelectLockedCells()
Get SelectLockedCells.
getFormatColumns()
Get FormatColumns.
setObjects($pValue)
Set Objects.
getScenarios()
Get Scenarios.
getPassword()
Get hashed password.
getDeleteRows()
Get DeleteRows.
getPivotTables()
Get PivotTables.
setAlgorithm(string $algorithm)
Set algorithm name.
static hashPassword(string $password, string $algorithm='', string $salt='', int $spinCount=10000)
Create a password hash from a given string by a specific algorithm.
setSalt(string $salt)
Set salt value.
const ALGORITHM_RIPEMD_128
setInsertRows($pValue)
Set InsertRows.
setPivotTables($pValue)
Set PivotTables.
setInsertHyperlinks($pValue)
Set InsertHyperlinks.
setFormatCells($pValue)
Set FormatCells.
setDeleteRows($pValue)
Set DeleteRows.
const ALGORITHM_RIPEMD_160
getSpinCount()
Get spin count.
getInsertHyperlinks()
Get InsertHyperlinks.
setInsertColumns($pValue)
Set InsertColumns.
setFormatColumns($pValue)
Set FormatColumns.
__construct()
Create a new Protection.
setSpinCount(int $spinCount)
Set spin count.
setFormatRows($pValue)
Set FormatRows.
generateSalt()
Create a pseudorandom string.
getFormatRows()
Get FormatRows.
setDeleteColumns($pValue)
Set DeleteColumns.
setPassword($pValue, $pAlreadyHashed=false)
Set Password.
setSort($pValue)
Set Sort.
getInsertColumns()
Get InsertColumns.
verify(string $password)
Verify that the given non-hashed password can "unlock" the protection.
setSheet($pValue)
Set Sheet.
getFormatCells()
Get FormatCells.
getAutoFilter()
Get AutoFilter.
getDeleteColumns()
Get DeleteColumns.
isProtectionEnabled()
Is some sort of protection enabled?
getAlgorithm()
Get algorithm name.
setSelectLockedCells($pValue)
Set SelectLockedCells.