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;
 
An exception for terminatinating execution or to throw for unit testing.
static hashPassword(string $password, string $algorithm='', string $salt='', int $spinCount=10000)
Create a password hash from a given string by a specific algorithm.
isProtectionEnabled()
Is some sort of protection enabled?
getSpinCount()
Get spin count.
setInsertColumns($pValue)
Set InsertColumns.
setDeleteColumns($pValue)
Set DeleteColumns.
getDeleteColumns()
Get DeleteColumns.
const ALGORITHM_RIPEMD_160
getPivotTables()
Get PivotTables.
setInsertRows($pValue)
Set InsertRows.
generateSalt()
Create a pseudorandom string.
setScenarios($pValue)
Set Scenarios.
getDeleteRows()
Get DeleteRows.
getScenarios()
Get Scenarios.
setInsertHyperlinks($pValue)
Set InsertHyperlinks.
const ALGORITHM_RIPEMD_128
__clone()
Implement PHP __clone to create a deep clone, not just a shallow copy.
setSelectUnlockedCells($pValue)
Set SelectUnlockedCells.
setSalt(string $salt)
Set salt value.
getSelectLockedCells()
Get SelectLockedCells.
setSheet($pValue)
Set Sheet.
setPassword($pValue, $pAlreadyHashed=false)
Set Password.
setDeleteRows($pValue)
Set DeleteRows.
getInsertColumns()
Get InsertColumns.
setSpinCount(int $spinCount)
Set spin count.
setSort($pValue)
Set Sort.
__construct()
Create a new Protection.
getInsertHyperlinks()
Get InsertHyperlinks.
getAlgorithm()
Get algorithm name.
setFormatColumns($pValue)
Set FormatColumns.
setFormatCells($pValue)
Set FormatCells.
getInsertRows()
Get InsertRows.
setObjects($pValue)
Set Objects.
setPivotTables($pValue)
Set PivotTables.
getFormatColumns()
Get FormatColumns.
verify(string $password)
Verify that the given non-hashed password can "unlock" the protection.
getAutoFilter()
Get AutoFilter.
setFormatRows($pValue)
Set FormatRows.
setAutoFilter($pValue)
Set AutoFilter.
const ALGORITHM_WHIRLPOOL
setAlgorithm(string $algorithm)
Set algorithm name.
getFormatCells()
Get FormatCells.
setSelectLockedCells($pValue)
Set SelectLockedCells.
getPassword()
Get hashed password.
getFormatRows()
Get FormatRows.
getSelectUnlockedCells()
Get SelectUnlockedCells.