PHP Класс Adldap\Laravel\Commands\Import

Наследование: extends Illuminate\Console\Command, use trait Adldap\Laravel\Traits\ImportsUsers
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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