public function extract()
    {
        $content = '';
        $folder = tao_helpers_File::createTempDir();
        $zip = new ZipArchive();
        $source = $this->getExtractedSource();
        if ($zip->open($source) === true) {
            if (tao_helpers_File::checkWhetherArchiveIsBomb($zip)) {
                throw new \common_Exception(sprintf('Source "%s" seems to be a ZIP bomb', $source));
            }
            if ($zip->extractTo($folder)) {
                $content = $folder;
            }
            $zip->close();
        }

        return $content;
    }