Verzeichnisstruktur phpBB-3.1.0
- Veröffentlicht
- 27.10.2014
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. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
OutputFormatterInterface.php
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 * @api
20 */
21 interface OutputFormatterInterface
22 {
23 /**
24 * Sets the decorated flag.
25 *
26 * @param bool $decorated Whether to decorate the messages or not
27 *
28 * @api
29 */
30 public function setDecorated($decorated);
31
32 /**
33 * Gets the decorated flag.
34 *
35 * @return bool true if the output will decorate messages, false otherwise
36 *
37 * @api
38 */
39 public function isDecorated();
40
41 /**
42 * Sets a new style.
43 *
44 * @param string $name The style name
45 * @param OutputFormatterStyleInterface $style The style instance
46 *
47 * @api
48 */
49 public function setStyle($name, OutputFormatterStyleInterface $style);
50
51 /**
52 * Checks if output formatter has style with specified name.
53 *
54 * @param string $name
55 *
56 * @return bool
57 *
58 * @api
59 */
60 public function hasStyle($name);
61
62 /**
63 * Gets style options from style with specified name.
64 *
65 * @param string $name
66 *
67 * @return OutputFormatterStyleInterface
68 *
69 * @api
70 */
71 public function getStyle($name);
72
73 /**
74 * Formats a message according to the given styles.
75 *
76 * @param string $message The message to style
77 *
78 * @return string The styled message
79 *
80 * @api
81 */
82 public function format($message);
83 }
84