PHP 클래스 Backend\Modules\Users\Engine\Model

파일 보기 프로젝트 열기: forkcms/forkcms 1 사용 예제들

공개 메소드들

메소드 설명
delete ( integer $id ) Mark the user as deleted and deactivate his account.
deleteResetPasswordSettings ( integer $id ) Deletes the reset_password_key and reset_password_timestamp for a given user ID
emailDeletedBefore ( string $email ) : boolean Was a user deleted before?
exists ( integer $id, boolean $active = true ) : boolean Does the user exist.
existsEmail ( string $email, integer $id = null ) : boolean Does a email already exist? If you specify a userId, the email with the given id will be ignored.
get ( integer $id ) : array Get all data for a given user
getCSVLineEndings ( ) : array Get the possible line endings for a CSV-file
getCSVSplitCharacters ( ) : array Get the possible CSV split characters
getDateFormats ( ) : array Fetch the list of date formats including examples of these formats.
getGroups ( ) : array Get user groups
getIdByEmail ( string $email ) : integer Get the user ID linked to a given email
getModuleGroupsRightsActions ( integer $userId ) : array Get all module action combinations a user has access to
getNumberFormats ( ) : array Fetch the list of number formats including examples of these formats.
getSetting ( integer $userId, string $setting ) : mixed Fetch a user setting for a specific user
getTimeFormats ( ) : array Fetch the list of time formats including examples of these formats.
getUsers ( ) : array Get all users
insert ( array $user, array $settings ) : integer Add a new user.
setSetting ( integer $userId, string $setting, string $value ) : mixed Set a user setting for a specific user
undoDelete ( string $email ) : boolean Restores a user
update ( array $user, array $settings ) Save the changes for a given user Remark: $user['id'] should be available
updatePassword ( User $user, string $password ) Update the user password

메소드 상세

delete() 공개 정적인 메소드

Mark the user as deleted and deactivate his account.
public static delete ( integer $id )
$id integer The userId to delete.

deleteResetPasswordSettings() 공개 정적인 메소드

Deletes the reset_password_key and reset_password_timestamp for a given user ID
public static deleteResetPasswordSettings ( integer $id )
$id integer The userId wherefore the reset-stuff should be deleted.

emailDeletedBefore() 공개 정적인 메소드

Was a user deleted before?
public static emailDeletedBefore ( string $email ) : boolean
$email string The e-mail address to check.
리턴 boolean

exists() 공개 정적인 메소드

Does the user exist.
public static exists ( integer $id, boolean $active = true ) : boolean
$id integer The userId to check for existence.
$active boolean Should the user be active also?
리턴 boolean

existsEmail() 공개 정적인 메소드

Does a email already exist? If you specify a userId, the email with the given id will be ignored.
public static existsEmail ( string $email, integer $id = null ) : boolean
$email string The email to check for.
$id integer The userId to be ignored.
리턴 boolean

get() 공개 정적인 메소드

Get all data for a given user
public static get ( integer $id ) : array
$id integer The userId to get the data for.
리턴 array

getCSVLineEndings() 공개 정적인 메소드

Get the possible line endings for a CSV-file
public static getCSVLineEndings ( ) : array
리턴 array

getCSVSplitCharacters() 공개 정적인 메소드

Get the possible CSV split characters
public static getCSVSplitCharacters ( ) : array
리턴 array

getDateFormats() 공개 정적인 메소드

Fetch the list of date formats including examples of these formats.
public static getDateFormats ( ) : array
리턴 array

getGroups() 공개 정적인 메소드

Get user groups
public static getGroups ( ) : array
리턴 array

getIdByEmail() 공개 정적인 메소드

Get the user ID linked to a given email
public static getIdByEmail ( string $email ) : integer
$email string The email for the user.
리턴 integer

getModuleGroupsRightsActions() 공개 정적인 메소드

Get all module action combinations a user has access to
public static getModuleGroupsRightsActions ( integer $userId ) : array
$userId integer The id of the user
리턴 array

getNumberFormats() 공개 정적인 메소드

Fetch the list of number formats including examples of these formats.
public static getNumberFormats ( ) : array
리턴 array

getSetting() 공개 정적인 메소드

Fetch a user setting for a specific user
public static getSetting ( integer $userId, string $setting ) : mixed
$userId integer The id of the user.
$setting string The name of the setting to get.
리턴 mixed

getTimeFormats() 공개 정적인 메소드

Fetch the list of time formats including examples of these formats.
public static getTimeFormats ( ) : array
리턴 array

getUsers() 공개 정적인 메소드

Get all users
public static getUsers ( ) : array
리턴 array

insert() 공개 정적인 메소드

Add a new user.
public static insert ( array $user, array $settings ) : integer
$user array The userdata.
$settings array The settings for the new user.
리턴 integer

setSetting() 공개 정적인 메소드

Set a user setting for a specific user
public static setSetting ( integer $userId, string $setting, string $value ) : mixed
$userId integer The id of the user.
$setting string The name of the setting to set.
$value string The value of the setting to set.
리턴 mixed

undoDelete() 공개 정적인 메소드

Restores a user
public static undoDelete ( string $email ) : boolean
$email string The e-mail address of the user to restore.
리턴 boolean

update() 공개 정적인 메소드

Save the changes for a given user Remark: $user['id'] should be available
public static update ( array $user, array $settings )
$user array The userdata.
$settings array The settings for the user.

updatePassword() 공개 정적인 메소드

Update the user password
public static updatePassword ( User $user, string $password )
$user Backend\Core\Engine\User An instance of BackendUser.
$password string The new password for the user.