getItemDirectory()->readStream('qti.xml'); $zipToRoot = isset($options['zipToRoot']) ? (bool)$options['zipToRoot'] : false; if ($zipToRoot) { $this->addFile($location, ''); } else { $this->addFile($location, basename($location)); } } }