You are here

public function MiniorangeCustomerProfile::__construct in Google Authenticator / 2 Factor Authentication - 2FA 8.2

Same name and namespace in other branches
  1. 8 src/MiniorangeCustomerProfile.php \Drupal\miniorange_2fa\MiniorangeCustomerProfile::__construct()

Constructor.

File

src/MiniorangeCustomerProfile.php, line 22
Contains constants class.

Class

MiniorangeCustomerProfile
@file This class represents User Profile.

Namespace

Drupal\miniorange_2fa

Code

public function __construct() {
  $variables_and_values = array(
    'mo_auth_customer_id',
    'mo_auth_customer_admin_email',
    'mo_auth_customer_api_key',
    'mo_auth_customer_admin_token',
    'mo_auth_customer_app_secret',
    'mo_auth_customer_admin_phone',
  );
  $mo_db_values = MoAuthUtilities::miniOrange_set_get_configurations($variables_and_values, 'GET');
  $this->customer_id = $mo_db_values['mo_auth_customer_id'];
  $this->registered_email = $mo_db_values['mo_auth_customer_admin_email'];
  $this->api_key = $mo_db_values['mo_auth_customer_api_key'];
  $this->token_key = $mo_db_values['mo_auth_customer_admin_token'];
  $this->app_secret = $mo_db_values['mo_auth_customer_app_secret'];
  $this->registered_phone = $mo_db_values['mo_auth_customer_admin_phone'];
}