You are here

protected function AutoloadCache::updateFile in Autoload 7.2

Dumps the autoloading class map to the file.

Return value

bool A status whether the file has been saved.

2 calls to AutoloadCache::updateFile()
AutoloadCache::rebuild in ./autoload.cache.inc
Rebuild the autoloading map.
AutoloadCache::__construct in ./autoload.cache.inc

File

./autoload.cache.inc, line 273
Autoload cache controller.

Class

AutoloadCache
Class AutoloadCache.

Code

protected function updateFile() {
  $reference = __METHOD__;
  $map = static::exportVariable($this->data);
  $data = <<<PHP
<?php

/**
 * @file
 * Auto-generated autoloading class map.
 *
 * @see {<span class="php-variable">$reference</span>}()
 */

return {<span class="php-variable">$map</span>};

PHP;
  return FALSE !== file_unmanaged_save_data($data, $this->file, FILE_EXISTS_REPLACE);
}