Class lispa\amos\admin\controllers\UserProfileController
Class UserProfileController
Public Properties
Protected Properties
Public Methods
Protected Methods
Events
Event | Type | Description | Defined By |
---|---|---|---|
EVENT_AFTER_ACTION | yii\base\ActionEvent | An event raised right after executing a controller action. | yii\base\Controller |
EVENT_BEFORE_ACTION | yii\base\ActionEvent | An event raised right before executing a controller action. | yii\base\Controller |
Constants
Constant | Value | Description | Defined By |
---|---|---|---|
AFTER_FINDMODEL_EVENT | "afterFindModel" | lispa\amos\core\controllers\CrudController | |
BEFORE_FINDMODEL_EVENT | "beforeFindModel" | lispa\amos\core\controllers\CrudController |
Property Details
Method Details
public void actionAssociateFacilitator ( $id ) | ||
$id |
public string actionAssociatePrevalentPartnership ( $id ) | ||
$id |
public string|yii\web\Response actionCambiaPassword ( $id ) | ||
$id | integer |
Lists all active users that are a community manager for at least one community.
public string actionCommunityManagerUsers ( ) |
Section Contacts (in edit or view mode) on user profile tab network
public string|yii\web\Response actionContacts ( $id, $isUpdate = false ) | ||
$id | integer | |
$isUpdate | boolean | |
throws | yii\web\NotFoundHttpException |
---|
This action deactivate an user profile.
public yii\web\Response actionDeactivateAccount ( $id ) | ||
$id | integer | |
throws | yii\web\NotFoundHttpException |
---|
Action that check if there is already a default facilitator in the system.
public string actionDefFacilitatorPresent ( $id ) | ||
$id | integer | The user profile id (N.B. NOT THE USER ID!!!) |
throws | lispa\amos\admin\exceptions\AdminException | |
---|---|---|
throws | yii\web\NotFoundHttpException |
Override default delete because it is not allowed to delete a user profile. It can only be deactivated.
public yii\web\Response actionDelete ( $id ) | ||
$id | integer |
Revoke user authorization to connect to google $serviceName Delete all records created by service synchronization on user google account Delete data of user service previously stored in SocialAuth Services table
public string actionDisableGoogleService ( $id, $serviceName = 'calendar' ) | ||
$id | integer | |
$serviceName | string | |
throws | yii\web\NotFoundHttpException |
---|
This is a GDPR required function to allow user drop theri own account and all his data
public string|yii\web\Response actionDropAccount ( $id ) | ||
$id | integer | UserProfile |
throws | yii\web\NotFoundHttpException |
---|
Request authorization to user connect to $serviceName Stores authorization data in SocialAuthServices table Synchronize the requested service calling synchronizeGoogleService method of socialAuth module
public string actionEnableGoogleService ( $id = null, $serviceName = '' ) | ||
$id | integer|null | |
$serviceName | string | |
throws | yii\web\NotFoundHttpException |
---|
Lists all active users with "FACILITATOR" role.
public string actionFacilitatorUsers ( ) |
Given userProfile id, check if the specified $serviceName provided by $provider is active for the user.
Returns json, with enabled
public string actionGetSocialServiceStatus ( $id, $provider = 'google', $serviceName = '' ) | ||
$id | integer |
|
$provider | string | |
$serviceName | string | |
throws | yii\web\NotFoundHttpException |
---|
Given userProfile id, check if the specified $serviceName provided by $provider is active for the user.
Returns json, with enabled
public string actionGetSocialUser ( $id, $provider = '' ) | ||
$id |
|
|
$provider | null|string | |
throws | yii\web\NotFoundHttpException |
---|
Lists all inactive users.
public string actionInactiveUsers ( ) |
public string actionPasswordExpired ( $id ) | ||
$id | integer |
This action reactivate an user profile.
public yii\web\Response actionReactivateAccount ( $id ) | ||
$id | integer | |
throws | yii\web\NotFoundHttpException |
---|
public yii\web\Response actionRejectReactivationRequest ( $id ) | ||
$id | ||
throws | yii\web\NotFoundHttpException | |
---|---|---|
throws | yii\db\StaleObjectException |
public yii\web\Response actionRejectUserProfile ( $id ) | ||
$id | integer | The user id |
Remove association with prevalent partnership profile
public mixed|null actionRemovePrevalentPartnership ( $id ) | ||
$id |
public yii\web\Response actionSendCredentials ( $id ) | ||
$id | integer |
public void actionSpedisciCredenziali ( $id ) | ||
$id | integer |
public string actionUpdateProfile ( $id ) | ||
$id |
public yii\web\Response actionValidateUserProfile ( $id ) | ||
$id | integer | The user id |
Lists all active users that was validated at least once.
public string actionValidatedUsers ( ) |
public void afterAssociateOneToMany ( $event ) | ||
$event |
public void beforeAssociateOneToMany ( $event ) | ||
$event | yii\base\Event |
public void beforeRenderOneToMany ( $event ) | ||
$event | yii\base\Event |
public array behaviors ( ) |
public [] getAllOrganizations ( ) |
public array getAllOrganizationsForSelect ( ) |
This method return all enabled professional areas translated.
public array getAreas ( ) |
This method make the export columns array to set in the configurations of the DataProviderView widget.
public array getExportColumns ( $model ) | ||
$model | lispa\amos\admin\models\UserProfile |
public lispa\amos\admin\models\UserProfile[] getFacilitators ( ) |
public array getFacilitatorsForSelect ( ) |
This method return all enabled professional roles translated.
public array getRoles ( ) |
public array|null getWhiteListRoles ( ) |
public array getWorkflowStatuses ( $model ) | ||
$model | lispa\amos\admin\models\UserProfile |
public void init ( ) |
public boolean sendCredentialsMail ( $model ) | ||
$model | lispa\amos\admin\models\UserProfile |
public boolean sendPasswordResetMail ( $model ) | ||
$model | lispa\amos\admin\models\UserProfile |
In Icon view if we are in a network dashboard eg. community, projects, .
. view additional information related to current scope
public void setCwhScopeNetworkInfo ( $userId ) | ||
$userId | integer |
In Icon view if we are in a network dashboard eg. community, projects, .
. view additional information related to current scope
public void setCwhScopeNewtworkInfo ( $userId ) | ||
$userId | integer |