Class plgUserProfile

Description

An example custom profile plugin.

  • version: 1.6

Located in /plugins/user/profile/profile.php (line 18)

JObject
   |
   --JEvent
      |
      --JPlugin
         |
         --plgUserProfile
Method Summary
static void calendar ( $value)
static void tos ( $value)
static void url ( $value)
plgUserProfile __construct ( &$subject, array $config, object $subject)
boolean onContentPrepareData (string $context, int $data, object 2)
boolean onContentPrepareForm (JForm $form, array $data)
void onUserAfterDelete (array $user, boolean $success, string $msg)
void onUserAfterSave ( $data,  $isNew,  $result,  $error)
Variables

Inherited Variables

Inherited from JPlugin

JPlugin::$params
JPlugin::$_name
JPlugin::$_type

Inherited from JEvent

JEvent::$_subject

Inherited from JObject

JObject::$_errors
Methods
static method calendar (line 124)
  • access: public
static void calendar ( $value)
  • $value
static method tos (line 136)
  • access: public
static void tos ( $value)
  • $value
static method url (line 104)
  • access: public
static void url ( $value)
  • $value
Constructor __construct (line 28)

Constructor

  • since: 1.5
  • access: public
plgUserProfile __construct ( &$subject, array $config, object $subject)
  • object $subject: The object to observe
  • array $config: An array that holds the plugin configuration
  • &$subject

Redefinition of:
JPlugin::__construct()
Constructor
onContentPrepareData (line 43)
  • since: 1.6
boolean onContentPrepareData (string $context, int $data, object 2)
  • string $context: The context for the data
  • int $data: The user id
  • object 2
onContentPrepareForm (line 155)
  • since: 1.6
boolean onContentPrepareForm (JForm $form, array $data)
  • JForm $form: The form to be altered.
  • array $data: The associated data for the form.
onUserAfterDelete (line 307)

Remove all user profile information for the given user ID

Method is called after user data is deleted from the database

void onUserAfterDelete (array $user, boolean $success, string $msg)
  • array $user: Holds the user data
  • boolean $success: True if user was succesfully stored in the database
  • string $msg: Message
onUserAfterSave (line 246)
void onUserAfterSave ( $data,  $isNew,  $result,  $error)
  • $data
  • $isNew
  • $result
  • $error

Inherited Methods

Inherited From JPlugin

JPlugin::__construct()
JPlugin::loadLanguage()

Inherited From JEvent

JEvent::__construct()
JEvent::update()

Inherited From JObject

JObject::__construct()
JObject::def()
JObject::get()
JObject::getError()
JObject::getErrors()
JObject::getProperties()
JObject::set()
JObject::setError()
JObject::setProperties()
JObject::toString()
JObject::__toString()

Documentation generated on Mon, 25 Jun 2012 13:58:53 -0500 by phpDocumentor 1.4.4