aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/textformatter/utils_interface.php
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2015-05-29 15:42:14 +0200
committerTristan Darricau <tristan.darricau@sensiolabs.com>2015-05-29 15:42:14 +0200
commitf5dbc3b6f269cb3841c20ad0096fcedb3dac7492 (patch)
tree5ca32d171af32f236d82cbf11cedfe3735c5fa3d /phpBB/phpbb/textformatter/utils_interface.php
parent3c3b099f88471e05358fe3c01bb74caac69e89e7 (diff)
parent64e1824abdb2a9c860e049f10ecc81c051160ff5 (diff)
downloadforums-f5dbc3b6f269cb3841c20ad0096fcedb3dac7492.tar
forums-f5dbc3b6f269cb3841c20ad0096fcedb3dac7492.tar.gz
forums-f5dbc3b6f269cb3841c20ad0096fcedb3dac7492.tar.bz2
forums-f5dbc3b6f269cb3841c20ad0096fcedb3dac7492.tar.xz
forums-f5dbc3b6f269cb3841c20ad0096fcedb3dac7492.zip
Merge pull request #3616 from s9e/ticket/13847
[ticket/13847] Move quote generation to text_formatter.utils
Diffstat (limited to 'phpBB/phpbb/textformatter/utils_interface.php')
-rw-r--r--phpBB/phpbb/textformatter/utils_interface.php12
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