Class humhub\modules\content\widgets\richtext\HumHubRichTextProcessor

Inheritancehumhub\modules\content\widgets\richtext\HumHubRichTextProcessor » humhub\modules\content\widgets\richtext\AbstractRichTextProcessor » yii\base\BaseObject
Deprecated since version since 1.3 this hold the post-processing logic for the legacy humhub rich text

Legacy rich text processing logic.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
parseFiles() This function can be used to parse file-guid based links e.g. for auto attachment. humhub\modules\content\widgets\richtext\AbstractRichTextProcessor
parseMentioning() This function is called while processing the richtext content and is responsible for parsing and creating mentionings. humhub\modules\content\widgets\richtext\HumHubRichTextProcessor
parseOembed() This function is called while processing the Richtext content and will parse the given text for urls and preloads the oembed result. humhub\modules\content\widgets\richtext\HumHubRichTextProcessor
process() Executes post process logic humhub\modules\content\widgets\richtext\AbstractRichTextProcessor

Method Details

parseMentioning() public method

This function is called while processing the richtext content and is responsible for parsing and creating mentionings.

Richtext implementations have to provide their own parsing logic.

e.g:

$guids = someParserLogic();
return Mentioning::mention($guids, $record);
public array parseMentioning ( )
return array

List of successfully mentioned users

parseOembed() public method

This function is called while processing the Richtext content and will parse the given text for urls and preloads the oembed result.

Richtext subclasses have to provide their own parsing logic.

public void parseOembed ( )