diff options
author | JoshyPHP <s9e.dev@gmail.com> | 2015-05-17 20:15:06 +0200 |
---|---|---|
committer | JoshyPHP <s9e.dev@gmail.com> | 2015-05-25 21:33:17 +0200 |
commit | 8a077e0e943d87ee1d26b0501f0b9bcc472ab904 (patch) | |
tree | fb99c7d9752338aca49c322428b5d1eab3fb2503 /phpBB/phpbb/textformatter/utils_interface.php | |
parent | 633740719218b72bac45bbcdff64def8da483851 (diff) | |
download | forums-8a077e0e943d87ee1d26b0501f0b9bcc472ab904.tar forums-8a077e0e943d87ee1d26b0501f0b9bcc472ab904.tar.gz forums-8a077e0e943d87ee1d26b0501f0b9bcc472ab904.tar.bz2 forums-8a077e0e943d87ee1d26b0501f0b9bcc472ab904.tar.xz forums-8a077e0e943d87ee1d26b0501f0b9bcc472ab904.zip |
[ticket/13847] Move quote generation to text_formatter.utils
PHPBB3-13847
Diffstat (limited to 'phpBB/phpbb/textformatter/utils_interface.php')
-rw-r--r-- | phpBB/phpbb/textformatter/utils_interface.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/phpBB/phpbb/textformatter/utils_interface.php b/phpBB/phpbb/textformatter/utils_interface.php index 6d3fd13021..41a6ba2345 100644 --- a/phpBB/phpbb/textformatter/utils_interface.php +++ b/phpBB/phpbb/textformatter/utils_interface.php @@ -29,6 +29,18 @@ interface utils_interface public function clean_formatting($text); /** + * Create a quote block for given text + * + * Possible attributes: + * - author + * + * @param string $text Quote's text + * @param array $attributes Quote's attributes + * @return string Quote block to be used in a new post/text + */ + public function generate_quote($text, array $attributes = array()); + + /** * Get a list of quote authors, limited to the outermost quotes * * @param string $text Parsed text |