/** * Returns instance of progress bar for use by tool to convey current status to the user * * @param int $pn_total The maximum value of the progress bar. Defaults to zero if omitted. * @return ProgressBar */ public function getProgressBar($pn_total = null) { $o_progress = new ProgressBar($this->getMode(), $pn_total, $this->ops_job_id); if ($this->getMode() == 'CLI') { $o_progress->set('outputToTerminal', true); } return $o_progress; }