[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

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

(no description)

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

Defines 1 class

PlgUserTerms:: (3 methods):
  onContentPrepareForm()
  onUserBeforeSave()
  onUserAfterSave()


Class: PlgUserTerms  - X-Ref

An example custom terms and conditions plugin.

onContentPrepareForm(Form $form, $data)   X-Ref
Adds additional fields to the user registration 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



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