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. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
list_all.php
01 <?php
02 /**
03 *
04 * This file is part of the phpBB Forum Software package.
05 *
06 * @copyright (c) phpBB Limited <https://www.phpbb.com>
07 * @license GNU General Public License, version 2 (GPL-2.0)
08 *
09 * For full copyright and license information, please see
10 * the docs/CREDITS.txt file.
11 *
12 */
13
14 namespace phpbb\console\command\reparser;
15
16 use Symfony\Component\Console\Input\InputInterface;
17 use Symfony\Component\Console\Output\OutputInterface;
18 use Symfony\Component\Console\Style\SymfonyStyle;
19
20 class list_all extends \phpbb\console\command\command
21 {
22 /**
23 * @var string[] Names of the reparser services
24 */
25 protected $reparser_names;
26
27 /**
28 * Constructor
29 *
30 * @param \phpbb\user $user
31 * @param \phpbb\di\service_collection $reparsers
32 */
33 public function __construct(\phpbb\user $user, \phpbb\di\service_collection $reparsers)
34 {
35 parent::__construct($user);
36 $this->reparser_names = array();
37 foreach ($reparsers as $reparser)
38 {
39 // Store the names without the "text_reparser." prefix
40 $this->reparser_names[] = $reparser->get_name();
41 }
42 }
43
44 /**
45 * Sets the command name and description
46 *
47 * @return null
48 */
49 protected function configure()
50 {
51 $this
52 ->setName('reparser:list')
53 ->setDescription($this->user->lang('CLI_DESCRIPTION_REPARSER_LIST'))
54 ;
55 }
56
57 /**
58 * Executes the command reparser:list
59 *
60 * @param InputInterface $input
61 * @param OutputInterface $output
62 * @return integer
63 */
64 protected function execute(InputInterface $input, OutputInterface $output)
65 {
66 $io = new SymfonyStyle($input, $output);
67 $io->section($this->user->lang('CLI_DESCRIPTION_REPARSER_AVAILABLE'));
68 $io->listing($this->reparser_names);
69
70 return 0;
71 }
72 }
73