class CRM_Core_BAO_CMSUser

Class CRM_Core_BAO_CMSUser

Methods

static int
create(array $params, string $mail)

Create CMS user using Profile.

static FALSE|void
buildForm(CRM_Core_Form $form, int $gid, bool $emailPresent, const|int $action = CRM_Core_Action::NONE)

Create Form for CMS user using Profile.

static array|bool
formRule(array $fields, array $files, CRM_Core_Form $form)

Checks that there is a valid username & email optionally checks password is present & matches DB & gets the CMS to validate

Details

at line 53
static int create(array $params, string $mail)

Create CMS user using Profile.

Parameters

array $params
string $mail Email id for cms user.

Return Value

int contact id that has been created

at line 86
static FALSE|void buildForm(CRM_Core_Form $form, int $gid, bool $emailPresent, const|int $action = CRM_Core_Action::NONE)

Create Form for CMS user using Profile.

Parameters

CRM_Core_Form $form
int $gid Id of group of profile.
bool $emailPresent True if the profile field has email(primary).
const|int $action

Return Value

FALSE|void WTF

at line 170
static array|bool formRule(array $fields, array $files, CRM_Core_Form $form)

Checks that there is a valid username & email optionally checks password is present & matches DB & gets the CMS to validate

Parameters

array $fields Posted values of form.
array $files Uploaded files if any.
CRM_Core_Form $form

Return Value

array|bool