aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acm/acm_xcache.php
diff options
context:
space:
mode:
authorMatt Friedman <maf675@gmail.com>2013-10-20 14:30:29 -0700
committerMatt Friedman <maf675@gmail.com>2013-10-20 14:30:29 -0700
commit3c38f4e20a3efc035d5cf6f56ab9901150a10331 (patch)
treed18c28388b4c178183685e50a3cbe12b0828cc3c /phpBB/includes/acm/acm_xcache.php
parentcc4219159831b38232064bb63cb6c9a7ff851dc4 (diff)
parenteda35d15f8b140f878c5e9fb91b0b4e47219a181 (diff)
downloadforums-3c38f4e20a3efc035d5cf6f56ab9901150a10331.tar
forums-3c38f4e20a3efc035d5cf6f56ab9901150a10331.tar.gz
forums-3c38f4e20a3efc035d5cf6f56ab9901150a10331.tar.bz2
forums-3c38f4e20a3efc035d5cf6f56ab9901150a10331.tar.xz
forums-3c38f4e20a3efc035d5cf6f56ab9901150a10331.zip
[ticket/11936] Merge branch 'develop' into ticket/11936
PHPBB3-11936
Diffstat (limited to 'phpBB/includes/acm/acm_xcache.php')
0 files changed, 0 insertions, 0 deletions
) { $this->user = $user; parent::__construct(); } /** * Create a styled progress bar * * @param int $max Max value for the progress bar * @param SymfonyStyle $io Symfony style output decorator * @param OutputInterface $output The output stream, used to print messages * @param bool $message Should we display message output under the progress bar? * @return ProgressBar */ public function create_progress_bar($max, SymfonyStyle $io, OutputInterface $output, $message = false) { $progress = $io->createProgressBar($max); if ($output->getVerbosity() === OutputInterface::VERBOSITY_VERBOSE) { $progress->setFormat('<info>[%percent:3s%%]</info> %message%'); $progress->setOverwrite(false); } else if ($output->getVerbosity() >= OutputInterface::VERBOSITY_VERY_VERBOSE) { $progress->setFormat('<info>[%current:s%/%max:s%]</info><comment>[%elapsed%/%estimated%][%memory%]</comment> %message%'); $progress->setOverwrite(false); } else { $io->newLine(2); $progress->setFormat( " %current:s%/%max:s% %bar% %percent:3s%%\n" . " " . ($message ? '%message%' : ' ') . " %elapsed:6s%/%estimated:-6s% %memory:6s%\n"); $progress->setBarWidth(60); } if (!defined('PHP_WINDOWS_VERSION_BUILD')) { $progress->setEmptyBarCharacter('░'); // light shade character \u2591 $progress->setProgressCharacter(''); $progress->setBarCharacter('▓'); // dark shade character \u2593 } return $progress; } }