clearFusionCMS 3.0.0
  • Package
  • Class
  • Tree
  • Deprecated

Packages

  • clearFusionCMS
    • module
      • cloudflare
      • comments
      • content
      • forms
      • members
      • search
  • fusionLib
  • None

Classes

  • cfApiController
  • cfBackendAdduserAction
  • cfBackendApikeysAction
  • cfBackendBrowsectntAction
  • cfBackendBrowsefilesAction
  • cfBackendClearcacheAction
  • cfBackendClearipblocksAction
  • cfBackendContentpermsAction
  • cfBackendContenttypesAction
  • cfBackendController
  • cfBackendControllerAction
  • cfBackendDashboardAction
  • cfBackendDocumentsAction
  • cfBackendDraftsAction
  • cfBackendEdituserAction
  • cfBackendElementsAction
  • cfBackendFilemgrAction
  • cfBackendFingerprintAction
  • cfBackendForgotpwdAction
  • cfBackendImagepreviewAction
  • cfBackendListusersAction
  • cfBackendLoginAction
  • cfBackendLogoutAction
  • cfBackendModulesAction
  • cfBackendMyprofileAction
  • cfBackendPrivatefilemgrAction
  • cfBackendResetpwdAction
  • cfBackendRolesAction
  • cfBackendSelectsiteAction
  • cfBackendSet403Action
  • cfBackendSet404Action
  • cfBackendSeterrorAction
  • cfBackendSethomeAction
  • cfBackendSetthemeAction
  • cfBackendSettingsAction
  • cfBackendSitemgrAction
  • cfBackendSocialimgsAction
  • cfConfirm
  • cfContent
  • cfContentController
  • cfContentTree
  • cfCron
  • cfCronController
  • cfCustomFieldList
  • cfCustomFields
  • cfDashboardMgr
  • cfDrafts
  • cfInstallController
  • cfNoticesEvent
  • cfNoticesEventMsg
  • cfPseudoCron
  • cfSearchHelper
  • cfSiteManager
  • cfSocialImagesMgr
  • cfTaskRunner
  • cfTaskSnippets
  • cfTemplateEngine
  • cfUserMgr
  • cfUserProfile
  • cfValidatorPageSlug
  • cfValidatorUserEmail
  • cfValidatorUsername
  • clearFusionCMS
  • contentApiV1
  • contentDrafts
  • errorController

Interfaces

  • cfInstallInterface
  • cfInstallUpdInterface
  • cfModuleSettingsInterface
  • cfUserProfileInterface

Exceptions

  • cfException
  • clearFusionCMSException

Class cfUserProfile

cfUserProfile Class

Class to build and operate the the form for editing user profiles, including module extensions to the user profile.

Package: clearFusionCMS
Copyright: Copyright (c) 2012 - 2016 clearFusionCMS. All rights reserved.
Located at system/app/cfUserProfile.php

Methods summary

public
# __construct( flDb $db, flUser $user, integer $where, integer $usernameChange = 0, boolean $allowDisplayName = false, boolean $with2FA = false, $withBio = false )

Construct the object.

Construct the object.

Parameters

$db
The database object.
$user
The user object or user id if admin editing the user rather than user self editing.
$where
Where the profile is being used, one of cfUserProfile::ADMIN, USEREDIT or REGISTRATION.
$usernameChange
Allows changing of the username, one of cfUserProfile::ALLOWCHANGE, ALLOWIFNOTSET
$allowDisplayName
Flags if the display name can be edited.
$with2FA
Flags if to display 2 Factor Authentication.
$withBio
public cfUserProfile
# setUser( flUser $user )

Set the user.

Set the user.

Parameters

$user
The user object or user id if admin editing the user rather than user self editing.

Returns

cfUserProfile
This object.
public
# process( flFrom $form )

Build and process the form.

Build and process the form.

Parameters

$form
The form object to use.
public
# addFields( flForm $form )

Add the fields to the form.

Add the fields to the form.

Parameters

$form
The form object.
public
# processFields( flForm $form )

Process the fields in the form.

Process the fields in the form.

Parameters

$form
The form object.

Constants summary

integer ADMIN

Editing/creating the profile in the admin.

Editing/creating the profile in the admin.

# 1
integer USEREDIT

User is editing their own profile.

User is editing their own profile.

# 2
integer REGISTRATION

User is registering their own profile.

User is registering their own profile.

# 3
integer USEREDITINMGR

User is editing their own profile within the manager interface.

User is editing their own profile within the manager interface.

# 4
integer ALLOWCHANGE

Allow username to be changed.

Allow username to be changed.

# 1
integer ALLOWIFNOTSET

Allow username to be changed if not set.

Allow username to be changed if not set.

# 2

Properties summary

protected flDb $db

The database object.

The database object.

#
protected flUser $user

The user object.

The user object.

#
protected integer $userId

The user id.

The user id.

#
protected array $exts

The extension fields.

The extension fields.

# array()
protected integer $where

Where the profile is being used.

Where the profile is being used.

#
protected integer $usernameChange

If username changes are allowed.

If username changes are allowed.

#
protected boolean $allowDisplayName

Flags if display name allowed.

Flags if display name allowed.

#
protected boolean $with2FA

Flags if with 2 Factor Authentication.

Flags if with 2 Factor Authentication.

#
protected boolean $withBio

Flags if with bio editing.

Flags if with bio editing.

#
clearFusionCMS 3.0.0 API documentation generated by ApiGen