[ Index ]

PHP Cross Reference of phpBB-3.3.11-deutsch

title

Body

[close]

/phpbb/feed/ -> quote_helper.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\feed;
  15  
  16  /**
  17   * Modified quote_helper for feeds (basically just removing all attributes)
  18   */
  19  class quote_helper extends \phpbb\textformatter\s9e\quote_helper
  20  {
  21      /**
  22       * {@inheritdoc}
  23       */
  24  	public function inject_metadata($xml)
  25      {
  26          // In feeds we don't want any attributes, so delete all of them
  27          return \s9e\TextFormatter\Utils::replaceAttributes(
  28              $xml,
  29              'QUOTE',
  30              function ()
  31              {
  32                  return [];
  33              }
  34          );
  35      }
  36  }


Generated: Sat Nov 4 14:26:03 2023 Cross-referenced by PHPXref 0.7.1