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