ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 3.147.65.176 Web Server : Apache System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : nicngo5 ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/nicngo5/funds.upgrade.nicn.gov.ng/funds-upgraded/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Document/ |
Upload File : |
<?php namespace PhpOffice\PhpSpreadsheet\Document; use PhpOffice\PhpSpreadsheet\Shared\PasswordHasher; class Security { /** * LockRevision. * * @var bool */ private $lockRevision = false; /** * LockStructure. * * @var bool */ private $lockStructure = false; /** * LockWindows. * * @var bool */ private $lockWindows = false; /** * RevisionsPassword. * * @var string */ private $revisionsPassword = ''; /** * WorkbookPassword. * * @var string */ private $workbookPassword = ''; /** * Create a new Document Security instance. */ public function __construct() { } /** * Is some sort of document security enabled? */ public function isSecurityEnabled(): bool { return $this->lockRevision || $this->lockStructure || $this->lockWindows; } public function getLockRevision(): bool { return $this->lockRevision; } public function setLockRevision(?bool $pValue): self { if ($pValue !== null) { $this->lockRevision = $pValue; } return $this; } public function getLockStructure(): bool { return $this->lockStructure; } public function setLockStructure(?bool $pValue): self { if ($pValue !== null) { $this->lockStructure = $pValue; } return $this; } public function getLockWindows(): bool { return $this->lockWindows; } public function setLockWindows(?bool $pValue): self { if ($pValue !== null) { $this->lockWindows = $pValue; } return $this; } public function getRevisionsPassword(): string { return $this->revisionsPassword; } public function setRevisionsPassword(?string $pValue, bool $pAlreadyHashed = false): self { if ($pValue !== null) { if (!$pAlreadyHashed) { $pValue = PasswordHasher::hashPassword($pValue); } $this->revisionsPassword = $pValue; } return $this; } public function getWorkbookPassword(): string { return $this->workbookPassword; } public function setWorkbookPassword(?string $pValue, bool $pAlreadyHashed = false): self { if ($pValue !== null) { if (!$pAlreadyHashed) { $pValue = PasswordHasher::hashPassword($pValue); } $this->workbookPassword = $pValue; } return $this; } }