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

Fonctions membres publiques

 __construct (& $subject, $config)
 
 onContentPrepareData ($context, $data)
 
 onContentPrepareForm (Form $form, $data)
 
 onUserBeforeSave ($user, $isnew, $data)
 
 onUserAfterSave ($data, $isNew, $result, $error)
 
 onUserAfterDelete ($user, $success, $msg)
 

Fonctions membres publiques statiques

static url ($value)
 
static calendar ($value)
 
static dob ($value)
 
static tos ($value)
 

Attributs protégés

 $autoloadLanguage = true
 

Attributs privés

 $date = ''
 

Description détaillée

An example custom profile plugin.

Depuis
1.6

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( $subject,
  $config 
)

Constructor

Paramètres
object&$subjectThe object to observe
array$configAn array that holds the plugin configuration
Depuis
1.5

Références $config, et $subject.

Documentation des fonctions membres

◆ calendar()

static calendar (   $value)
static

Returns html markup showing a date picker

Paramètres
string$valuevalid date string
Renvoie
mixed

Références $value, et null.

◆ dob()

static dob (   $value)
static

Returns the date of birth formatted and calculated using server timezone.

Paramètres
string$valuevalid date string
Renvoie
mixed

Références $value.

◆ onContentPrepareData()

onContentPrepareData (   $context,
  $data 
)

Runs on content preparation

Paramètres
string$contextThe context for the data
object$dataAn object containing the data for the form.
Renvoie
boolean
Depuis
1.6

Références $context, $data, $db, $results, $userId, et null.

◆ onContentPrepareForm()

onContentPrepareForm ( Form  $form,
  $data 
)

Adds additional fields to the user editing form

Paramètres
Form$formThe form to be altered.
mixed$dataThe associated data for the form.
Renvoie
boolean
Depuis
1.6

Références $app, $field, $fields, $form, $name, et elseif.

◆ onUserAfterDelete()

onUserAfterDelete (   $user,
  $success,
  $msg 
)

Remove all user profile information for the given user ID

Method is called after user data is deleted from the database

Paramètres
array$userHolds the user data
boolean$successTrue if user was successfully stored in the database
string$msgMessage
Renvoie
boolean

Références $db, $user, et $userId.

◆ onUserAfterSave()

onUserAfterSave (   $data,
  $isNew,
  $result,
  $error 
)

Saves user profile data

Paramètres
array$dataentered user data
boolean$isNewtrue if this is a new user
boolean$resulttrue if saving the user worked
string$errorerror message
Renvoie
boolean

Références $data, $date, $db, $key, $query, $userId, et json_encode.

◆ onUserBeforeSave()

onUserBeforeSave (   $user,
  $isnew,
  $data 
)

Method is called before user data is stored in the database

Paramètres
array$userHolds the old user data.
boolean$isnewTrue if a new user is stored.
array$dataHolds the new user data.
Renvoie
boolean
Depuis
3.1
Exceptions
InvalidArgumentExceptionon invalid date.

Références $data, $date, $option, et $task.

◆ tos()

static tos (   $value)
static

Return the translated strings yes or no depending on the value

Paramètres
boolean$valueinput value
Renvoie
string

Références $value.

◆ url()

static url (   $value)
static

Returns an anchor tag generated from a given value

Paramètres
string$valueURL to use
Renvoie
mixed|string

Références $value, et htmlspecialchars.

Documentation des champs

◆ $autoloadLanguage

$autoloadLanguage = true
protected

◆ $date

$date = ''
private

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