PHP Class App\Http\Controllers\ClientController

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

Protected Properties

Property Type Description
$clientRepo
$clientService
$entityType

Public Methods

Method Description
__construct ( ClientRepository $clientRepo, ClientService $clientService )
bulk ( )
create ( App\Http\Requests\ClientRequest $request ) : Response Show the form for creating a new resource.
edit ( App\Http\Requests\ClientRequest $request ) : Response Show the form for editing the specified resource.
getDatatable ( )
index ( ) : Response Display a listing of the resource.
show ( App\Http\Requests\ClientRequest $request ) : Response Display the specified resource.
store ( App\Http\Requests\CreateClientRequest $request ) : Response Store a newly created resource in storage.
update ( App\Http\Requests\UpdateClientRequest $request ) : Response Update the specified resource in storage.

Private Methods

Method Description
getViewModel ( )

Method Details

__construct() public method

public __construct ( ClientRepository $clientRepo, ClientService $clientService )
$clientRepo App\Ninja\Repositories\ClientRepository
$clientService App\services\ClientService

bulk() public method

public bulk ( )

create() public method

Show the form for creating a new resource.
public create ( App\Http\Requests\ClientRequest $request ) : Response
$request App\Http\Requests\ClientRequest
return Response

edit() public method

Show the form for editing the specified resource.
public edit ( App\Http\Requests\ClientRequest $request ) : Response
$request App\Http\Requests\ClientRequest
return Response

getDatatable() public method

public getDatatable ( )

index() public method

Display a listing of the resource.
public index ( ) : Response
return Response

show() public method

Display the specified resource.
public show ( App\Http\Requests\ClientRequest $request ) : Response
$request App\Http\Requests\ClientRequest
return Response

store() public method

Store a newly created resource in storage.
public store ( App\Http\Requests\CreateClientRequest $request ) : Response
$request App\Http\Requests\CreateClientRequest
return Response

update() public method

Update the specified resource in storage.
public update ( App\Http\Requests\UpdateClientRequest $request ) : Response
$request App\Http\Requests\UpdateClientRequest
return Response

Property Details

$clientRepo protected_oe property

protected $clientRepo

$clientService protected_oe property

protected $clientService

$entityType protected_oe property

protected $entityType