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

OutputInterface.php

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


01  <?php
02   
03  /*
04   * This file is part of the Symfony package.
05   *
06   * (c) Fabien Potencier <fabien@symfony.com>
07   *
08   * For the full copyright and license information, please view the LICENSE
09   * file that was distributed with this source code.
10   */
11   
12  namespace Symfony\Component\Console\Output;
13   
14  use Symfony\Component\Console\Formatter\OutputFormatterInterface;
15   
16  /**
17   * OutputInterface is the interface implemented by all Output classes.
18   *
19   * @author Fabien Potencier <fabien@symfony.com>
20   */
21  interface OutputInterface
22  {
23      const VERBOSITY_QUIET = 16;
24      const VERBOSITY_NORMAL = 32;
25      const VERBOSITY_VERBOSE = 64;
26      const VERBOSITY_VERY_VERBOSE = 128;
27      const VERBOSITY_DEBUG = 256;
28   
29      const OUTPUT_NORMAL = 1;
30      const OUTPUT_RAW = 2;
31      const OUTPUT_PLAIN = 4;
32   
33      /**
34       * Writes a message to the output.
35       *
36       * @param string|array $messages The message as an array of lines or a single string
37       * @param bool         $newline  Whether to add a newline
38       * @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
39       */
40      public function write($messages, $newline = false, $options = 0);
41   
42      /**
43       * Writes a message to the output and adds a newline at the end.
44       *
45       * @param string|array $messages The message as an array of lines of a single string
46       * @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
47       */
48      public function writeln($messages, $options = 0);
49   
50      /**
51       * Sets the verbosity of the output.
52       *
53       * @param int $level The level of verbosity (one of the VERBOSITY constants)
54       */
55      public function setVerbosity($level);
56   
57      /**
58       * Gets the current verbosity of the output.
59       *
60       * @return int The current level of verbosity (one of the VERBOSITY constants)
61       */
62      public function getVerbosity();
63   
64      /**
65       * Sets the decorated flag.
66       *
67       * @param bool $decorated Whether to decorate the messages
68       */
69      public function setDecorated($decorated);
70   
71      /**
72       * Gets the decorated flag.
73       *
74       * @return bool true if the output will decorate messages, false otherwise
75       */
76      public function isDecorated();
77   
78      /**
79       * Sets output formatter.
80       *
81       * @param OutputFormatterInterface $formatter
82       */
83      public function setFormatter(OutputFormatterInterface $formatter);
84   
85      /**
86       * Returns current output formatter instance.
87       *
88       * @return OutputFormatterInterface
89       */
90      public function getFormatter();
91  }
92