Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Data Fields | |
const | XML_PATH_FORGOT_EMAIL_TEMPLATE = 'admin/emails/forgot_email_template' |
const | XML_PATH_FORGOT_EMAIL_IDENTITY = 'admin/emails/forgot_email_identity' |
const | XML_PATH_USER_NOTIFICATION_TEMPLATE = 'admin/emails/user_notification_template' |
const | XML_PATH_RESET_PASSWORD_TEMPLATE = 'admin/emails/reset_password_template' |
const | MESSAGE_ID_PASSWORD_EXPIRED = 'magento_user_password_expired' |
Protected Member Functions | |
_construct () | |
_willSavePassword () | |
validatePasswordChange () | |
createChangesDescriptionString () | |
sendUserNotificationEmail ($changes, $email=null) | |
_getEncodedPassword ($password) | |
![]() | |
_construct () | |
_init ($resourceModel) | |
_setResourceModel ($resourceName, $collectionName=null) | |
_getResource () | |
_getEventData () | |
_beforeLoad ($modelId, $field=null) | |
_afterLoad () | |
_hasModelChanged () | |
_getValidatorBeforeSave () | |
_createValidatorBeforeSave () | |
_getValidationRulesBeforeSave () | |
_clearReferences () | |
_clearData () | |
![]() | |
_getData ($key) | |
_underscore ($name) | |
Protected Attributes | |
$_eventPrefix = 'admin_user' | |
$_role | |
$_hasResources = true | |
$_userData = null | |
$_config | |
$_validatorObject | |
$_roleFactory | |
$_encryptor | |
$_transportBuilder | |
$_storeManager | |
$validationRules | |
![]() | |
$_eventPrefix = 'core_abstract' | |
$_eventObject = 'object' | |
$_idFieldName = 'id' | |
$_hasDataChanges = false | |
$_origData | |
$_isDeleted = false | |
$_resource | |
$_resourceCollection | |
$_resourceName | |
$_collectionName | |
$_cacheTag = false | |
$_dataSaveAllowed = true | |
$_isObjectNew = null | |
$_validatorBeforeSave = null | |
$_eventManager | |
$_cacheManager | |
$_registry | |
$_logger | |
$_appState | |
$_actionValidator | |
$storedData = [] | |
![]() | |
$_data = [] | |
Additional Inherited Members | |
![]() | |
static | $_underscoreCache = [] |
Admin user model
@api @method string getLogdate() @method \Magento\User\Model\User setLogdate(string $value) @method int getLognum() @method \Magento\User\Model\User setLognum(int $value) @method int getReloadAclFlag() @method \Magento\User\Model\User setReloadAclFlag(int $value) @method string getExtra() @method \Magento\User\Model\User setExtra(string $value) @SuppressWarnings(PHPMD.CouplingBetweenObjects) @SuppressWarnings(PHPMD.ExcessiveClassComplexity) @SuppressWarnings(PHPMD.LongVariable) @SuppressWarnings(PHPMD.ExcessivePublicCount) @api
__construct | ( | \Magento\Framework\Model\Context | $context, |
\Magento\Framework\Registry | $registry, | ||
\Magento\User\Helper\Data | $userData, | ||
\Magento\Backend\App\ConfigInterface | $config, | ||
\Magento\Framework\Validator\DataObjectFactory | $validatorObjectFactory, | ||
\Magento\Authorization\Model\RoleFactory | $roleFactory, | ||
\Magento\Framework\Mail\Template\TransportBuilder | $transportBuilder, | ||
\Magento\Framework\Encryption\EncryptorInterface | $encryptor, | ||
\Magento\Store\Model\StoreManagerInterface | $storeManager, | ||
UserValidationRules | $validationRules, | ||
\Magento\Framework\Model\ResourceModel\AbstractResource | $resource = null , |
||
\Magento\Framework\Data\Collection\AbstractDb | $resourceCollection = null , |
||
array | $data = [] , |
||
Json | $serializer = null , |
||
DeploymentConfig | $deploymentConfig = null , |
||
?NotificatorInterface | $notificator = null |
||
) |
\Magento\Framework\Model\Context | $context | |
\Magento\Framework\Registry | $registry | |
\Magento\User\Helper\Data | $userData | |
\Magento\Backend\App\ConfigInterface | $config | |
\Magento\Framework\Validator\DataObjectFactory | $validatorObjectFactory | |
\Magento\Authorization\Model\RoleFactory | $roleFactory | |
\Magento\Framework\Mail\Template\TransportBuilder | $transportBuilder | |
\Magento\Framework\Encryption\EncryptorInterface | $encryptor | |
\Magento\Store\Model\StoreManagerInterface | $storeManager | |
UserValidationRules | $validationRules | |
\Magento\Framework\Model\ResourceModel\AbstractResource | $resource | |
\Magento\Framework\Data\Collection\AbstractDb | $resourceCollection | |
array | $data | |
Json | $serializer | |
DeploymentConfig | null | $deploymentConfig | |
NotificatorInterface | null | $notificator | @SuppressWarnings(PHPMD.ExcessiveParameterList) |
Definition at line 166 of file User.php.
__sleep | ( | ) |
__wakeup | ( | ) |
Restoring required objects after serialization.
Definition at line 244 of file User.php.
|
protected |
|
protected |
Whether the password saving is going to occur
Definition at line 292 of file User.php.
afterSave | ( | ) |
authenticate | ( | $username, | |
$password | |||
) |
Authenticate user name and password and save loaded record
string | $username | |
string | $password |
Implements StorageInterface.
Definition at line 564 of file User.php.
beforeSave | ( | ) |
changeResetPasswordLinkToken | ( | $newToken | ) |
|
protected |
Create changes description string
Definition at line 495 of file User.php.
deleteFromRole | ( | ) |
getCreated | ( | ) |
getEmail | ( | ) |
getFirstName | ( | ) |
getInterfaceLocale | ( | ) |
getIsActive | ( | ) |
getLastName | ( | ) |
getModified | ( | ) |
getName | ( | $separator = ' ' | ) |
getPassword | ( | ) |
getRole | ( | ) |
getUserName | ( | ) |
hasAssigned2Role | ( | $user | ) |
hasAvailableResources | ( | ) |
Check if user has available resources
Implements StorageInterface.
Definition at line 745 of file User.php.
isResetPasswordLinkTokenExpired | ( | ) |
loadByUsername | ( | $username | ) |
Load user by its username
string | $username |
Definition at line 656 of file User.php.
login | ( | $username, | |
$password | |||
) |
Login user
string | $username | |
string | $password |
Implements StorageInterface.
Definition at line 629 of file User.php.
performIdentityCheck | ( | $passwordString | ) |
reload | ( | ) |
Reload current user
Implements StorageInterface.
Definition at line 642 of file User.php.
roleUserExists | ( | ) |
saveExtra | ( | $data | ) |
sendNotificationEmailsIfRequired | ( | ) |
Check changes and send notification emails.
NotificationExceptionInterface |
Definition at line 476 of file User.php.
sendPasswordResetConfirmationEmail | ( | ) |
Send email with reset password confirmation link.
sendPasswordResetNotificationEmail | ( | ) |
Send email to when password is resetting
NotificationExceptionInterface |
Definition at line 463 of file User.php.
|
protected |
Send user notification email.
string | $changes | |
string |
NotificationExceptionInterface |
Definition at line 528 of file User.php.
setCreated | ( | $created | ) |
@inheritDoc
Implements UserInterface.
Definition at line 853 of file User.php.
setEmail | ( | ) |
@inheritDoc
Implements UserInterface.
Definition at line 805 of file User.php.
setFirstName | ( | $firstName | ) |
@inheritDoc
Implements UserInterface.
Definition at line 773 of file User.php.
setHasAvailableResources | ( | $hasResources | ) |
Set user has available resources
bool | $hasResources |
Implements StorageInterface.
setInterfaceLocale | ( | $interfaceLocale | ) |
@inheritDoc
Implements UserInterface.
Definition at line 901 of file User.php.
setIsActive | ( | $isActive | ) |
@inheritDoc
Implements UserInterface.
Definition at line 885 of file User.php.
setLastName | ( | $lastName | ) |
@inheritDoc
Implements UserInterface.
Definition at line 789 of file User.php.
setModified | ( | $modified | ) |
@inheritDoc
Implements UserInterface.
Definition at line 869 of file User.php.
setPassword | ( | $password | ) |
@inheritDoc
Implements UserInterface.
Definition at line 837 of file User.php.
setUserName | ( | $userName | ) |
@inheritDoc
Implements UserInterface.
Definition at line 821 of file User.php.
|
protected |
verifyIdentity | ( | $password | ) |
|
protected |
|
protected |
const MESSAGE_ID_PASSWORD_EXPIRED = 'magento_user_password_expired' |
const XML_PATH_FORGOT_EMAIL_IDENTITY = 'admin/emails/forgot_email_identity' |
const XML_PATH_FORGOT_EMAIL_TEMPLATE = 'admin/emails/forgot_email_template' |
const XML_PATH_RESET_PASSWORD_TEMPLATE = 'admin/emails/reset_password_template' |
const XML_PATH_USER_NOTIFICATION_TEMPLATE = 'admin/emails/user_notification_template' |