1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-09 02:06:32 +02:00

[ticket/13847] Move quote generation to text_formatter.utils

PHPBB3-13847
This commit is contained in:
JoshyPHP
2015-05-17 20:15:06 +02:00
parent 6337407192
commit 8a077e0e94
5 changed files with 119 additions and 1 deletions

View File

@@ -28,6 +28,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
*