PHP 클래스 Adldap\Laravel\Commands\Import

상속: extends Illuminate\Console\Command, use trait Adldap\Laravel\Traits\ImportsUsers
파일 보기 프로젝트 열기: adldap2/adldap2-laravel

보호된 프로퍼티들

프로퍼티 타입 설명
$description string The description of the console command.
$name string The name of the console command.

공개 메소드들

메소드 설명
createModel ( )
display ( array $users = [] ) : void Displays the given users in a table.
getArguments ( ) : array Get the console command arguments.
getFilter ( ) : string Returns the limitation filter for the user query.
getOptions ( ) : array Get the console command options.
getUsers ( ) : array Retrieves users to be imported.
handle ( ) : mixed Execute the console command.
import ( array $users = [] ) : integer Imports the specified users and returns the total number of users successfully imported.
isDeleting ( ) : boolean Returns true / false if users are being deleted if they are disabled in AD.
isLogging ( ) : boolean Returns true / false if the current import is being logged.

보호된 메소드들

메소드 설명
delete ( User $user, Model $model ) Soft deletes the specified model if the specified AD account is disabled.
save ( User $user, Model $model ) : boolean Saves the specified user with its model.

메소드 상세

createModel() 공개 메소드

public createModel ( )

delete() 보호된 메소드

Soft deletes the specified model if the specified AD account is disabled.
protected delete ( User $user, Model $model )
$user Adldap\Models\User
$model Illuminate\Database\Eloquent\Model

display() 공개 메소드

Displays the given users in a table.
public display ( array $users = [] ) : void
$users array
리턴 void

getArguments() 공개 메소드

Get the console command arguments.
public getArguments ( ) : array
리턴 array

getFilter() 공개 메소드

Returns the limitation filter for the user query.
public getFilter ( ) : string
리턴 string

getOptions() 공개 메소드

Get the console command options.
public getOptions ( ) : array
리턴 array

getUsers() 공개 메소드

Retrieves users to be imported.
public getUsers ( ) : array
리턴 array

handle() 공개 메소드

Execute the console command.
public handle ( ) : mixed
리턴 mixed

import() 공개 메소드

Imports the specified users and returns the total number of users successfully imported.
public import ( array $users = [] ) : integer
$users array
리턴 integer

isDeleting() 공개 메소드

Returns true / false if users are being deleted if they are disabled in AD.
public isDeleting ( ) : boolean
리턴 boolean

isLogging() 공개 메소드

Returns true / false if the current import is being logged.
public isLogging ( ) : boolean
리턴 boolean

save() 보호된 메소드

Saves the specified user with its model.
protected save ( User $user, Model $model ) : boolean
$user Adldap\Models\User
$model Illuminate\Database\Eloquent\Model
리턴 boolean

프로퍼티 상세

$description 보호되어 있는 프로퍼티

The description of the console command.
protected string $description
리턴 string

$name 보호되어 있는 프로퍼티

The name of the console command.
protected string $name
리턴 string