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.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

(Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

html_migrator_output_handler.php

Zuletzt modifiziert: 09.10.2024, 12:52 - Dateigröße: 876.00 Bytes


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\db;
15   
16  use phpbb\user;
17   
18  class html_migrator_output_handler implements migrator_output_handler_interface
19  {
20      /**
21       * User object.
22       *
23       * @var user
24       */
25      private $user;
26   
27      /**
28       * Constructor
29       *
30       * @param user $user    User object
31       */
32      public function __construct(user $user)
33      {
34          $this->user = $user;
35      }
36   
37      /**
38       * {@inheritdoc}
39       */
40      public function write($message, $verbosity)
41      {
42          if ($verbosity <= migrator_output_handler_interface::VERBOSITY_VERBOSE)
43          {
44              $final_message = call_user_func_array(array($this->user, 'lang'), $message);
45              echo $final_message . "<br />\n";
46          }
47      }
48  }
49