\Horde_Core_Text_Filter_Emails

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.

Summary

Methods
Properties
Constants
__construct()
No public properties found
No constants found
_regexCallback()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(array  $params = array()) 

Constructor.

Parameters

array $params

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()

_regexCallback(array  $matches) : string

Regular expression callback.

Parameters

array $matches

preg_replace_callback() matches.

Returns

string —

Replacement string.