public function getArchivename($revision) { // Obtain the properties of the revision if (($info = $this->getRevision($revision)) === null) { return null; } // Check for archive name if (!isset($info['archivename'])) { // Return error message $this->error = array(); $this->error['file'] = 'This revision contains no archive name'; return null; } return $info['archivename']; }