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

OutputFormatterInterface.php

Zuletzt modifiziert: 09.10.2024, 12:56 - Dateigröße: 1.59 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\Formatter;
 13   
 14  /**
 15   * Formatter interface for console output.
 16   *
 17   * @author Konstantin Kudryashov <ever.zet@gmail.com>
 18   */
 19  interface OutputFormatterInterface
 20  {
 21      /**
 22       * Sets the decorated flag.
 23       *
 24       * @param bool $decorated Whether to decorate the messages or not
 25       */
 26      public function setDecorated($decorated);
 27   
 28      /**
 29       * Gets the decorated flag.
 30       *
 31       * @return bool true if the output will decorate messages, false otherwise
 32       */
 33      public function isDecorated();
 34   
 35      /**
 36       * Sets a new style.
 37       *
 38       * @param string                        $name  The style name
 39       * @param OutputFormatterStyleInterface $style The style instance
 40       */
 41      public function setStyle($name, OutputFormatterStyleInterface $style);
 42   
 43      /**
 44       * Checks if output formatter has style with specified name.
 45       *
 46       * @param string $name
 47       *
 48       * @return bool
 49       */
 50      public function hasStyle($name);
 51   
 52      /**
 53       * Gets style options from style with specified name.
 54       *
 55       * @param string $name
 56       *
 57       * @return OutputFormatterStyleInterface
 58       */
 59      public function getStyle($name);
 60   
 61      /**
 62       * Formats a message according to the given styles.
 63       *
 64       * @param string $message The message to style
 65       *
 66       * @return string The styled message
 67       */
 68      public function format($message);
 69  }
 70