public function AcquiaPurgeStateStorageDisk::__construct in Acquia Purge 7
Construct AcquiaPurgeStateStorageDisk.
Parameters
string $uri: The URI identifier to the file (on disk) to store state data in.
Overrides AcquiaPurgeStateStorageBase::__construct
File
- lib/
state/ AcquiaPurgeStateStorageDisk.php, line 33 - Contains AcquiaPurgeStateStorageDisk.
Class
- AcquiaPurgeStateStorageDisk
- File backed state storage.
Code
public function __construct($uri) {
$this->uri = $uri;
if (file_exists($this->uri)) {
if ($buffer = file_get_contents($this->uri)) {
if (parent::__construct(unserialize($buffer))) {
$this->raw = $buffer;
}
}
}
}