Class humhub\modules\user\models\Profile

Inheritancehumhub\modules\user\models\Profile » yii\db\ActiveRecord

This is the model class for table "profile".

Public Methods

Hide inherited methods

MethodDescriptionDefined By
attributeLabels() humhub\modules\user\models\Profile
beforeSave() humhub\modules\user\models\Profile
columnExists() Checks if the given column name already exists on the profile table. humhub\modules\user\models\Profile
getFormDefinition() Returns the Profile as CForm humhub\modules\user\models\Profile
getProfileFieldCategories() Returns all profile field categories with some user data humhub\modules\user\models\Profile
getProfileFields() Returns all profile fields with user data by given category humhub\modules\user\models\Profile
getUser() humhub\modules\user\models\Profile
rules() humhub\modules\user\models\Profile
scenarios() humhub\modules\user\models\Profile
softDelete() Soft delete will empty all profile fields except these defined in the module configuration. humhub\modules\user\models\Profile
tableName() humhub\modules\user\models\Profile

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
SCENARIO_EDIT_ADMIN 'editAdmin' humhub\modules\user\models\Profile
SCENARIO_EDIT_PROFILE 'editProfile' humhub\modules\user\models\Profile
SCENARIO_REGISTRATION 'registration' humhub\modules\user\models\Profile

Method Details

attributeLabels() public method

public void attributeLabels ( )
beforeSave() public method

public void beforeSave ( $insert )
$insert
columnExists() public static method

Checks if the given column name already exists on the profile table.

public static Boolean columnExists ( $name )
$name String
getFormDefinition() public method

Returns the Profile as CForm

public void getFormDefinition ( )
getProfileFieldCategories() public method

Returns all profile field categories with some user data

public humhub\modules\user\models\ProfileFieldCategory[] getProfileFieldCategories ( )
getProfileFields() public method

Returns all profile fields with user data by given category

public humhub\modules\user\models\ProfileField[] getProfileFields ( humhub\modules\user\models\ProfileFieldCategory $category null )
$category humhub\modules\user\models\ProfileFieldCategory
getUser() public method

public void getUser ( )
rules() public method

public void rules ( )
scenarios() public method

public void scenarios ( )
softDelete() public method

Soft delete will empty all profile fields except these defined in the module configuration.

public void softDelete ( )
tableName() public static method

public static void tableName ( )