[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/plugins/user/profile/ -> profile.php (summary)

(no description)

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

Defines 1 class

PlgUserProfile:: (9 methods):
  onContentPrepareData()
  url()
  calendar()
  dob()
  tos()
  onContentPrepareForm()
  onUserBeforeSave()
  onUserAfterSave()
  onUserAfterDelete()


Class: PlgUserProfile  - X-Ref

An example custom profile plugin.

onContentPrepareData($context, $data)   X-Ref
Runs on content preparation

param: string  $context  The context for the data
param: object  $data     An object containing the data for the form.
return: boolean

url($value)   X-Ref
Returns an anchor tag generated from a given value

param: string  $value  URL to use
return: mixed|string

calendar($value)   X-Ref
Returns html markup showing a date picker

param: string  $value  valid date string
return: mixed

dob($value)   X-Ref
Returns the date of birth formatted and calculated using server timezone.

param: string  $value  valid date string
return: mixed

tos($value)   X-Ref
Return the translated strings yes or no depending on the value

param: boolean  $value  input value
return: string

onContentPrepareForm(Form $form, $data)   X-Ref
Adds additional fields to the user editing form

param: Form   $form  The form to be altered.
param: mixed  $data  The associated data for the form.
return: boolean

onUserBeforeSave($user, $isnew, $data)   X-Ref
Method is called before user data is stored in the database

param: array    $user   Holds the old user data.
param: boolean  $isnew  True if a new user is stored.
param: array    $data   Holds the new user data.
return: boolean

onUserAfterSave($data, $isNew, $result, $error)   X-Ref
Saves user profile data

param: array    $data    entered user data
param: boolean  $isNew   true if this is a new user
param: boolean  $result  true if saving the user worked
param: string   $error   error message
return: void

onUserAfterDelete($user, $success, $msg)   X-Ref
Remove all user profile information for the given user ID

Method is called after user data is deleted from the database

param: array    $user     Holds the user data
param: boolean  $success  True if user was successfully stored in the database
param: string   $msg      Message
return: void



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