Verzeichnisstruktur phpBB-3.3.15


Veröffentlicht
28.08.2024

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

OutputInterface.php

Zuletzt modifiziert: 02.04.2025, 15:03 - Dateigröße: 3.26 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\Output;
013   
014  use Symfony\Component\Console\Formatter\OutputFormatterInterface;
015   
016  /**
017   * OutputInterface is the interface implemented by all Output classes.
018   *
019   * @author Fabien Potencier <fabien@symfony.com>
020   */
021  interface OutputInterface
022  {
023      const VERBOSITY_QUIET = 16;
024      const VERBOSITY_NORMAL = 32;
025      const VERBOSITY_VERBOSE = 64;
026      const VERBOSITY_VERY_VERBOSE = 128;
027      const VERBOSITY_DEBUG = 256;
028   
029      const OUTPUT_NORMAL = 1;
030      const OUTPUT_RAW = 2;
031      const OUTPUT_PLAIN = 4;
032   
033      /**
034       * Writes a message to the output.
035       *
036       * @param string|array $messages The message as an array of strings or a single string
037       * @param bool         $newline  Whether to add a newline
038       * @param int          $options  A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL
039       */
040      public function write($messages, $newline = false, $options = 0);
041   
042      /**
043       * Writes a message to the output and adds a newline at the end.
044       *
045       * @param string|array $messages The message as an array of strings or a single string
046       * @param int          $options  A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL
047       */
048      public function writeln($messages, $options = 0);
049   
050      /**
051       * Sets the verbosity of the output.
052       *
053       * @param int $level The level of verbosity (one of the VERBOSITY constants)
054       */
055      public function setVerbosity($level);
056   
057      /**
058       * Gets the current verbosity of the output.
059       *
060       * @return int The current level of verbosity (one of the VERBOSITY constants)
061       */
062      public function getVerbosity();
063   
064      /**
065       * Returns whether verbosity is quiet (-q).
066       *
067       * @return bool true if verbosity is set to VERBOSITY_QUIET, false otherwise
068       */
069      public function isQuiet();
070   
071      /**
072       * Returns whether verbosity is verbose (-v).
073       *
074       * @return bool true if verbosity is set to VERBOSITY_VERBOSE, false otherwise
075       */
076      public function isVerbose();
077   
078      /**
079       * Returns whether verbosity is very verbose (-vv).
080       *
081       * @return bool true if verbosity is set to VERBOSITY_VERY_VERBOSE, false otherwise
082       */
083      public function isVeryVerbose();
084   
085      /**
086       * Returns whether verbosity is debug (-vvv).
087       *
088       * @return bool true if verbosity is set to VERBOSITY_DEBUG, false otherwise
089       */
090      public function isDebug();
091   
092      /**
093       * Sets the decorated flag.
094       *
095       * @param bool $decorated Whether to decorate the messages
096       */
097      public function setDecorated($decorated);
098   
099      /**
100       * Gets the decorated flag.
101       *
102       * @return bool true if the output will decorate messages, false otherwise
103       */
104      public function isDecorated();
105   
106      public function setFormatter(OutputFormatterInterface $formatter);
107   
108      /**
109       * Returns current output formatter instance.
110       *
111       * @return OutputFormatterInterface
112       */
113      public function getFormatter();
114  }
115