function backup_migrate_destination::file_cache_get

cis7 destinations.inc backup_migrate_destination::file_cache_get()
cle7 destinations.inc backup_migrate_destination::file_cache_get()
elmsmedia7 destinations.inc backup_migrate_destination::file_cache_get()
icor7 destinations.inc backup_migrate_destination::file_cache_get()
meedjum_blog7 destinations.inc backup_migrate_destination::file_cache_get()
mooc7 destinations.inc backup_migrate_destination::file_cache_get()

Retrieve the file list.

1 call to backup_migrate_destination::file_cache_get()
backup_migrate_destination::list_files in sites/all/modules/ulmus/backup_migrate/includes/destinations.inc
List all the available files in the given destination with their destination specific id.

File

sites/all/modules/ulmus/backup_migrate/includes/destinations.inc, line 734
All of the destination handling code needed for Backup and Migrate.

Class

backup_migrate_destination
A base class for creating destinations.

Code

function file_cache_get() {
  backup_migrate_include('files');
  $cache = cache_get('backup_migrate_file_list:' . $this->get_id());
  if (!empty($cache->data) && $cache->created > (time() - $this->cache_expire)) {
    $this->fetch_time = $cache->created;
    return $cache->data;
  }
  $this->fetch_time = 0;
  return NULL;
}