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

StyleInterface.php

Zuletzt modifiziert: 02.04.2025, 15:03 - Dateigröße: 3.04 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  /**
015   * Output style helpers.
016   *
017   * @author Kevin Bond <kevinbond@gmail.com>
018   */
019  interface StyleInterface
020  {
021      /**
022       * Formats a command title.
023       *
024       * @param string $message
025       */
026      public function title($message);
027   
028      /**
029       * Formats a section title.
030       *
031       * @param string $message
032       */
033      public function section($message);
034   
035      /**
036       * Formats a list.
037       */
038      public function listing(array $elements);
039   
040      /**
041       * Formats informational text.
042       *
043       * @param string|array $message
044       */
045      public function text($message);
046   
047      /**
048       * Formats a success result bar.
049       *
050       * @param string|array $message
051       */
052      public function success($message);
053   
054      /**
055       * Formats an error result bar.
056       *
057       * @param string|array $message
058       */
059      public function error($message);
060   
061      /**
062       * Formats an warning result bar.
063       *
064       * @param string|array $message
065       */
066      public function warning($message);
067   
068      /**
069       * Formats a note admonition.
070       *
071       * @param string|array $message
072       */
073      public function note($message);
074   
075      /**
076       * Formats a caution admonition.
077       *
078       * @param string|array $message
079       */
080      public function caution($message);
081   
082      /**
083       * Formats a table.
084       */
085      public function table(array $headers, array $rows);
086   
087      /**
088       * Asks a question.
089       *
090       * @param string        $question
091       * @param string|null   $default
092       * @param callable|null $validator
093       *
094       * @return mixed
095       */
096      public function ask($question, $default = null, $validator = null);
097   
098      /**
099       * Asks a question with the user input hidden.
100       *
101       * @param string        $question
102       * @param callable|null $validator
103       *
104       * @return mixed
105       */
106      public function askHidden($question, $validator = null);
107   
108      /**
109       * Asks for confirmation.
110       *
111       * @param string $question
112       * @param bool   $default
113       *
114       * @return bool
115       */
116      public function confirm($question, $default = true);
117   
118      /**
119       * Asks a choice question.
120       *
121       * @param string          $question
122       * @param string|int|null $default
123       *
124       * @return mixed
125       */
126      public function choice($question, array $choices, $default = null);
127   
128      /**
129       * Add newline(s).
130       *
131       * @param int $count The number of newlines
132       */
133      public function newLine($count = 1);
134   
135      /**
136       * Starts the progress output.
137       *
138       * @param int $max Maximum steps (0 if unknown)
139       */
140      public function progressStart($max = 0);
141   
142      /**
143       * Advances the progress output X steps.
144       *
145       * @param int $step Number of steps to advance
146       */
147      public function progressAdvance($step = 1);
148   
149      /**
150       * Finishes the progress output.
151       */
152      public function progressFinish();
153  }
154