[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/plugins/content/emailcloak/ -> emailcloak.php (summary)

(no description)

Copyright: (C) 2006 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 423 lines (17 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

PlgContentEmailcloak:: (3 methods):
  onContentPrepare()
  _getPattern()
  _cloak()


Class: PlgContentEmailcloak  - X-Ref

Email cloak plugin class.

onContentPrepare($context, &$row, &$params, $page = 0)   X-Ref
Plugin that cloaks all emails in content from spambots via Javascript.

param: string   $context  The context of the content being passed to the plugin.
param: mixed    &$row     An object with a "text" property or the string to be cloaked.
param: mixed    &$params  Additional parameters.
param: integer  $page     Optional page number. Unused. Defaults to zero.
return: void

_getPattern($link, $text)   X-Ref
Generate a search pattern based on link and text.

param: string  $link  The target of an email link.
param: string  $text  The text enclosed by the link.
return: string  A regular expression that matches a link containing the parameters.

_cloak(&$text, &$params)   X-Ref
Cloak all emails in text from spambots via Javascript.

param: string  &$text    The string to be cloaked.
param: mixed   &$params  Additional parameters. Parameter "mode" (integer, default 1)
return: void



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer