[ Index ]

PHP Cross Reference of phpBB-3.1.12-deutsch

title

Body

[close]

/phpbb/db/ -> html_migrator_output_handler.php (source)

   1  <?php
   2  /**
   3  *
   4  * This file is part of the phpBB Forum Software package.
   5  *
   6  * @copyright (c) phpBB Limited <https://www.phpbb.com>
   7  * @license GNU General Public License, version 2 (GPL-2.0)
   8  *
   9  * 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  }


Generated: Thu Jan 11 00:25:41 2018 Cross-referenced by PHPXref 0.7.1