You are here

function PHPExcel_DocumentSecurity::setRevisionsPassword in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.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

PHPExcel_DocumentSecurity

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;
}