PHP 트레잇 Adldap\Laravel\Traits\ImportsUsers

파일 보기 프로젝트 열기: adldap2/adldap2-laravel

공개 메소드들

메소드 설명
createModel ( ) : Model Returns the authentication users model instance.

보호된 메소드들

메소드 설명
bindAdldapToModel ( User $user, Model $model ) : Model Binds the Adldap User instance to the Eloquent model instance by setting its adldapUser public property.
findOrCreateModelFromAdldap ( User $user ) : Model Finds an Eloquent model from the specified Adldap user.
getBindUserToModel ( ) : boolean Returns the configured bind user to model option for binding the Adldap user model instance to the laravel model.
getModelFromAdldap ( User $user, string | null $password = null ) : Model Returns an existing or new Eloquent user from the specified Adldap user instance.
getOnlyAllowImportedUsers ( ) : mixed Returns the configured option for only allowing manually imported users to authenticate.
getPasswordSync ( ) : boolean Returns the configured password sync configuration option.
getSyncAttributes ( ) : array Returns the configured sync attributes for filling the Laravel user model with active directory fields.
handleAttributeCallback ( User $user, string $callback ) : mixed Handles retrieving the value from an attribute callback.
handleAttributeRetrieval ( User $user, string $field ) : string | null Handles retrieving the specified field from the User model.
isAttributeCallback ( string $string ) : boolean Returns true / false if the specified string is a callback for an attribute handler.
newEloquentQuery ( string $key, string $username ) : Builder Returns a new Eloquent user query.
syncModelFromAdldap ( User $user, Model $model ) : Model Fills a models attributes by the specified Users attributes.
syncModelPassword ( Model $model, string $password ) : Model Syncs the models password with the specified password.

메소드 상세

bindAdldapToModel() 보호된 메소드

Binds the Adldap User instance to the Eloquent model instance by setting its adldapUser public property.
protected bindAdldapToModel ( User $user, Model $model ) : Model
$user Adldap\Models\User
$model Illuminate\Database\Eloquent\Model
리턴 Illuminate\Database\Eloquent\Model

createModel() 추상적인 공개 메소드

Returns the authentication users model instance.
abstract public createModel ( ) : Model
리턴 Illuminate\Database\Eloquent\Model

findOrCreateModelFromAdldap() 보호된 메소드

Finds an Eloquent model from the specified Adldap user.
protected findOrCreateModelFromAdldap ( User $user ) : Model
$user Adldap\Models\User
리턴 Illuminate\Database\Eloquent\Model

getBindUserToModel() 보호된 메소드

Returns the configured bind user to model option for binding the Adldap user model instance to the laravel model.
protected getBindUserToModel ( ) : boolean
리턴 boolean

getModelFromAdldap() 보호된 메소드

Returns an existing or new Eloquent user from the specified Adldap user instance.
protected getModelFromAdldap ( User $user, string | null $password = null ) : Model
$user Adldap\Models\User
$password string | null
리턴 Illuminate\Database\Eloquent\Model

getOnlyAllowImportedUsers() 보호된 메소드

Returns the configured option for only allowing manually imported users to authenticate.
protected getOnlyAllowImportedUsers ( ) : mixed
리턴 mixed

getPasswordSync() 보호된 메소드

Returns the configured password sync configuration option.
protected getPasswordSync ( ) : boolean
리턴 boolean

getSyncAttributes() 보호된 메소드

Returns the configured sync attributes for filling the Laravel user model with active directory fields.
protected getSyncAttributes ( ) : array
리턴 array

handleAttributeCallback() 보호된 메소드

Handles retrieving the value from an attribute callback.
protected handleAttributeCallback ( User $user, string $callback ) : mixed
$user Adldap\Models\User
$callback string
리턴 mixed

handleAttributeRetrieval() 보호된 메소드

Handles retrieving the specified field from the User model.
protected handleAttributeRetrieval ( User $user, string $field ) : string | null
$user Adldap\Models\User
$field string
리턴 string | null

isAttributeCallback() 보호된 메소드

Returns true / false if the specified string is a callback for an attribute handler.
protected isAttributeCallback ( string $string ) : boolean
$string string
리턴 boolean

newEloquentQuery() 보호된 메소드

Returns a new Eloquent user query.
protected newEloquentQuery ( string $key, string $username ) : Builder
$key string
$username string
리턴 Illuminate\Database\Eloquent\Builder

syncModelFromAdldap() 보호된 메소드

Fills a models attributes by the specified Users attributes.
protected syncModelFromAdldap ( User $user, Model $model ) : Model
$user Adldap\Models\User
$model Illuminate\Database\Eloquent\Model
리턴 Illuminate\Database\Eloquent\Model

syncModelPassword() 보호된 메소드

Syncs the models password with the specified password.
protected syncModelPassword ( Model $model, string $password ) : Model
$model Illuminate\Database\Eloquent\Model
$password string
리턴 Illuminate\Database\Eloquent\Model