function PHPExcel_DocumentSecurity::setRevisionsPassword in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/DocumentSecurity.php \PHPExcel_DocumentSecurity::setRevisionsPassword()
Set RevisionsPassword
Parameters
string $pValue:
boolean $pAlreadyHashed If the password has already been hashed, set this to true:
Return value
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ DocumentSecurity.php, line 173
Class
- PHPExcel_DocumentSecurity
- PHPExcel_DocumentSecurity
Code
function setRevisionsPassword($pValue = '', $pAlreadyHashed = false) {
if (!$pAlreadyHashed) {
$pValue = PHPExcel_Shared_PasswordHasher::hashPassword($pValue);
}
$this->_revisionsPassword = $pValue;
return $this;
}