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 PlgUserContactCreator
+ Graphe d'héritage de PlgUserContactCreator:

Fonctions membres publiques

 onUserAfterSave ($user, $isnew, $success, $msg)
 

Fonctions membres protégées

 generateAliasAndName ($alias, $name, $categoryId)
 
 getContactTable ()
 

Attributs protégés

 $autoloadLanguage = true
 

Description détaillée

Class for Contact Creator

A tool to automatically create and synchronise contacts with a user

Depuis
1.6

Documentation des fonctions membres

◆ generateAliasAndName()

generateAliasAndName (   $alias,
  $name,
  $categoryId 
)
protected

Method to change the name & alias if alias is already in use

Paramètres
string$aliasThe alias.
string$nameThe name.
integer$categoryIdCategory identifier
Renvoie
array Contains the modified title and alias.
Depuis
3.2.3

Références $name.

◆ getContactTable()

getContactTable ( )
protected

Get an instance of the contact table

Renvoie
ContactTableContact
Depuis
3.2.3

Références JPATH_ADMINISTRATOR.

◆ onUserAfterSave()

onUserAfterSave (   $user,
  $isnew,
  $success,
  $msg 
)

Utility method to act on a user after it has been saved.

This method creates a contact for the saved user

Paramètres
array$userHolds the new user data.
boolean$isnewTrue if a new user is stored.
boolean$successTrue if user was successfully stored in the database.
string$msgMessage.
Renvoie
boolean
Depuis
1.6

Try to pre-load a contact for this user. Apparently only possible if other plugin creates it Note: $user_id is cleaned above

Références $name, $user, et JError\raiseWarning().

Documentation des champs

◆ $autoloadLanguage

$autoloadLanguage = true
protected

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