Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe PlgContentEmailcloak
+ Graphe d'héritage de PlgContentEmailcloak:

Fonctions membres publiques

 onContentPrepare ($context, &$row, &$params, $page=0)
 

Fonctions membres protégées

 _getPattern ($link, $text)
 
 _addAttributesToEmail ($jsEmail, $before, $after)
 
 _cloak (&$text, &$params)
 

Description détaillée

Email cloack plugin class.

Depuis
1.5

Documentation des fonctions membres

◆ _addAttributesToEmail()

_addAttributesToEmail (   $jsEmail,
  $before,
  $after 
)
protected

Adds an attributes to the js cloaked email.

Paramètres
string$jsEmailJs cloaked email.
string$beforeAttributes before email.
string$afterAttributes after email.
Renvoie
string Js cloaked email with attributes.

◆ _cloak()

_cloak ( $text,
$params 
)
protected

Cloak all emails in text from spambots via Javascript.

Paramètres
string&$textThe string to be cloaked.
mixed&$paramsAdditional parameters. Parameter "mode" (integer, default 1) replaces addresses with "mailto:" links if nonzero.
Renvoie
boolean True on success.

Références $mode, et $text.

◆ _getPattern()

_getPattern (   $link,
  $text 
)
protected

Generate a search pattern based on link and text.

Paramètres
string$linkThe target of an email link.
string$textThe text enclosed by the link.
Renvoie
string A regular expression that matches a link containing the parameters.

Références $link, et $text.

◆ onContentPrepare()

onContentPrepare (   $context,
$row,
$params,
  $page = 0 
)

Plugin that cloaks all emails in content from spambots via Javascript.

Paramètres
string$contextThe context of the content being passed to the plugin.
mixed&$rowAn object with a "text" property or the string to be cloaked.
mixed&$paramsAdditional parameters. See {
Voir également
PlgContentEmailcloak()}.
Paramètres
integer$pageOptional page number. Unused. Defaults to zero.
Renvoie
boolean True on success.

Références $context, $params, et $row.


La documentation de cette classe a été générée à partir du fichier suivant :