PHP Class App\Http\Controllers\UserController

Inheritance: extends Controller
Afficher le fichier Open project: hillelcoren/invoice-ninja Class Usage Examples

Protected Properties

Свойство Type Description
$accountRepo
$contactMailer
$userMailer
$userService

Méthodes publiques

Méthode Description
__construct ( AccountRepository $accountRepo, ContactMailer $contactMailer, UserMailer $userMailer, UserService $userService )
bulk ( )
changePassword ( ) * public function logout() { if (Auth::check()) { if (!Auth::user()->registered) { $account = Auth::user()->account; $this->accountRepo->unlinkAccount($account); if ($account->company->accounts->count() == 1) { $account->company->forceDelete(); } $account->forceDelete(); } }
confirm ( string $code ) Attempt to confirm account with code
create ( ) Displays the form for account creation
edit ( $publicId )
forcePDFJS ( )
getDatatable ( )
index ( )
manageCompanies ( )
save ( $userPublicId = false ) Stores new account
saveSidebarState ( )
sendConfirmation ( $userPublicId )
setTheme ( )
store ( )
switchAccount ( $newUserId )
unlinkAccount ( $userAccountId, $userId )
update ( $publicId )

Method Details

__construct() public méthode

public __construct ( AccountRepository $accountRepo, ContactMailer $contactMailer, UserMailer $userMailer, UserService $userService )
$accountRepo App\Ninja\Repositories\AccountRepository
$contactMailer App\Ninja\Mailers\ContactMailer
$userMailer App\Ninja\Mailers\UserMailer
$userService App\services\UserService

bulk() public méthode

public bulk ( )

changePassword() public méthode

Auth::logout(); Session::flush(); return Redirect::to('/')->with('clearGuestKey', true); }
public changePassword ( )

confirm() public méthode

Attempt to confirm account with code
public confirm ( string $code )
$code string

create() public méthode

Displays the form for account creation
public create ( )

edit() public méthode

public edit ( $publicId )

forcePDFJS() public méthode

public forcePDFJS ( )

getDatatable() public méthode

public getDatatable ( )

index() public méthode

public index ( )

manageCompanies() public méthode

public manageCompanies ( )

save() public méthode

Stores new account
public save ( $userPublicId = false )

saveSidebarState() public méthode

public saveSidebarState ( )

sendConfirmation() public méthode

public sendConfirmation ( $userPublicId )

setTheme() public méthode

public setTheme ( )

store() public méthode

public store ( )

switchAccount() public méthode

public switchAccount ( $newUserId )

unlinkAccount() public méthode

public unlinkAccount ( $userAccountId, $userId )

update() public méthode

public update ( $publicId )

Property Details

$accountRepo protected_oe property

protected $accountRepo

$contactMailer protected_oe property

protected $contactMailer

$userMailer protected_oe property

protected $userMailer

$userService protected_oe property

protected $userService