Verzeichnisstruktur phpBB-3.2.0


Veröffentlicht
06.01.2017

So funktioniert es


Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück

Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

(Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

OutputStyle.php

Zuletzt modifiziert: 09.10.2024, 12:56 - Dateigröße: 2.30 KiB


001  <?php
002   
003  /*
004   * This file is part of the Symfony package.
005   *
006   * (c) Fabien Potencier <fabien@symfony.com>
007   *
008   * For the full copyright and license information, please view the LICENSE
009   * file that was distributed with this source code.
010   */
011   
012  namespace Symfony\Component\Console\Style;
013   
014  use Symfony\Component\Console\Formatter\OutputFormatterInterface;
015  use Symfony\Component\Console\Helper\ProgressBar;
016  use Symfony\Component\Console\Output\OutputInterface;
017   
018  /**
019   * Decorates output to add console style guide helpers.
020   *
021   * @author Kevin Bond <kevinbond@gmail.com>
022   */
023  abstract class OutputStyle implements OutputInterface, StyleInterface
024  {
025      private $output;
026   
027      /**
028       * @param OutputInterface $output
029       */
030      public function __construct(OutputInterface $output)
031      {
032          $this->output = $output;
033      }
034   
035      /**
036       * {@inheritdoc}
037       */
038      public function newLine($count = 1)
039      {
040          $this->output->write(str_repeat(PHP_EOL, $count));
041      }
042   
043      /**
044       * @param int $max
045       *
046       * @return ProgressBar
047       */
048      public function createProgressBar($max = 0)
049      {
050          return new ProgressBar($this->output, $max);
051      }
052   
053      /**
054       * {@inheritdoc}
055       */
056      public function write($messages, $newline = false, $type = self::OUTPUT_NORMAL)
057      {
058          $this->output->write($messages, $newline, $type);
059      }
060   
061      /**
062       * {@inheritdoc}
063       */
064      public function writeln($messages, $type = self::OUTPUT_NORMAL)
065      {
066          $this->output->writeln($messages, $type);
067      }
068   
069      /**
070       * {@inheritdoc}
071       */
072      public function setVerbosity($level)
073      {
074          $this->output->setVerbosity($level);
075      }
076   
077      /**
078       * {@inheritdoc}
079       */
080      public function getVerbosity()
081      {
082          return $this->output->getVerbosity();
083      }
084   
085      /**
086       * {@inheritdoc}
087       */
088      public function setDecorated($decorated)
089      {
090          $this->output->setDecorated($decorated);
091      }
092   
093      /**
094       * {@inheritdoc}
095       */
096      public function isDecorated()
097      {
098          return $this->output->isDecorated();
099      }
100   
101      /**
102       * {@inheritdoc}
103       */
104      public function setFormatter(OutputFormatterInterface $formatter)
105      {
106          $this->output->setFormatter($formatter);
107      }
108   
109      /**
110       * {@inheritdoc}
111       */
112      public function getFormatter()
113      {
114          return $this->output->getFormatter();
115      }
116  }
117