Horde_Core_Text_Filter_Emails
extends Horde_Text_Filter_Emails
in package
The Horde_Text_Filter_Emails:: class finds email addresses in a block of text and turns them into links.
Copyright 2010-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Tags
Table of Contents
Methods
- __construct() : mixed
- Constructor.
- _regexCallback() : string
- Regular expression callback.
Methods
__construct()
Constructor.
public
__construct([array<string|int, mixed> $params = array() ]) : mixed
Parameters
- $params : array<string|int, mixed> = array()
-
Parameters (in addition to base Horde_Text_Filter_Emails parameters):
- always_mailto: (boolean) If true, a mailto: link is always generated. Only if no mail/compose registry API method exists otherwise. DEFAULT: false
- callback: (callback) Use this callback instead of the mail/compose API call. DEFAULT: Use mail/compose API call.
_regexCallback()
Regular expression callback.
protected
_regexCallback(array<string|int, mixed> $matches) : string
Parameters
- $matches : array<string|int, mixed>
-
preg_replace_callback() matches.
Return values
string —Replacement string.