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 |
show.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 namespace phpbb\console\command\extension;
14
15 use Symfony\Component\Console\Input\InputInterface;
16 use Symfony\Component\Console\Output\OutputInterface;
17 use Symfony\Component\Console\Style\SymfonyStyle;
18
19 class show extends command
20 {
21 protected function configure()
22 {
23 $this
24 ->setName('extension:show')
25 ->setDescription($this->user->lang('CLI_DESCRIPTION_LIST_EXTENSIONS'))
26 ;
27 }
28
29 protected function execute(InputInterface $input, OutputInterface $output)
30 {
31 $io = new SymfonyStyle($input, $output);
32
33 $this->manager->load_extensions();
34 $all = array_keys($this->manager->all_available());
35
36 if (empty($all))
37 {
38 $io->note($this->user->lang('CLI_EXTENSION_NOT_FOUND'));
39 return 3;
40 }
41
42 $enabled = array_keys($this->manager->all_enabled());
43 $io->section($this->user->lang('CLI_EXTENSIONS_ENABLED'));
44 $io->listing($enabled);
45
46 $disabled = array_keys($this->manager->all_disabled());
47 $io->section($this->user->lang('CLI_EXTENSIONS_DISABLED'));
48 $io->listing($disabled);
49
50 $purged = array_diff($all, $enabled, $disabled);
51 $io->section($this->user->lang('CLI_EXTENSIONS_AVAILABLE'));
52 $io->listing($purged);
53 }
54 }
55