PHP Class App\Http\Controllers\UserController

Inheritance: extends Controller
ファイルを表示 Open project: hillelcoren/invoice-ninja Class Usage Examples

Protected Properties

Property Type Description
$accountRepo
$contactMailer
$userMailer
$userService

Public Methods

Method 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 method

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 method

public bulk ( )

changePassword() public method

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

confirm() public method

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

create() public method

Displays the form for account creation
public create ( )

edit() public method

public edit ( $publicId )

forcePDFJS() public method

public forcePDFJS ( )

getDatatable() public method

public getDatatable ( )

index() public method

public index ( )

manageCompanies() public method

public manageCompanies ( )

save() public method

Stores new account
public save ( $userPublicId = false )

saveSidebarState() public method

public saveSidebarState ( )

sendConfirmation() public method

public sendConfirmation ( $userPublicId )

setTheme() public method

public setTheme ( )

store() public method

public store ( )

switchAccount() public method

public switchAccount ( $newUserId )

unlinkAccount() public method

public unlinkAccount ( $userAccountId, $userId )

update() public method

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