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

StyleInterface.php

Zuletzt modifiziert: 09.10.2024, 12:56 - Dateigröße: 3.18 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       * @param array $elements
039       */
040      public function listing(array $elements);
041   
042      /**
043       * Formats informational text.
044       *
045       * @param string|array $message
046       */
047      public function text($message);
048   
049      /**
050       * Formats a success result bar.
051       *
052       * @param string|array $message
053       */
054      public function success($message);
055   
056      /**
057       * Formats an error result bar.
058       *
059       * @param string|array $message
060       */
061      public function error($message);
062   
063      /**
064       * Formats an warning result bar.
065       *
066       * @param string|array $message
067       */
068      public function warning($message);
069   
070      /**
071       * Formats a note admonition.
072       *
073       * @param string|array $message
074       */
075      public function note($message);
076   
077      /**
078       * Formats a caution admonition.
079       *
080       * @param string|array $message
081       */
082      public function caution($message);
083   
084      /**
085       * Formats a table.
086       *
087       * @param array $headers
088       * @param array $rows
089       */
090      public function table(array $headers, array $rows);
091   
092      /**
093       * Asks a question.
094       *
095       * @param string        $question
096       * @param string|null   $default
097       * @param callable|null $validator
098       *
099       * @return string
100       */
101      public function ask($question, $default = null, $validator = null);
102   
103      /**
104       * Asks a question with the user input hidden.
105       *
106       * @param string        $question
107       * @param callable|null $validator
108       *
109       * @return string
110       */
111      public function askHidden($question, $validator = null);
112   
113      /**
114       * Asks for confirmation.
115       *
116       * @param string $question
117       * @param bool   $default
118       *
119       * @return bool
120       */
121      public function confirm($question, $default = true);
122   
123      /**
124       * Asks a choice question.
125       *
126       * @param string          $question
127       * @param array           $choices
128       * @param string|int|null $default
129       *
130       * @return string
131       */
132      public function choice($question, array $choices, $default = null);
133   
134      /**
135       * Add newline(s).
136       *
137       * @param int $count The number of newlines
138       */
139      public function newLine($count = 1);
140   
141      /**
142       * Starts the progress output.
143       *
144       * @param int $max Maximum steps (0 if unknown)
145       */
146      public function progressStart($max = 0);
147   
148      /**
149       * Advances the progress output X steps.
150       *
151       * @param int $step Number of steps to advance
152       */
153      public function progressAdvance($step = 1);
154   
155      /**
156       * Finishes the progress output.
157       */
158      public function progressFinish();
159  }
160