PHP Class App\Http\Controllers\InvoiceController

Inheritance: extends Controller
显示文件 Open project: hillelcoren/invoice-ninja Class Usage Examples

Protected Properties

Property Type Description
$clientRepo
$documentRepo
$entityType
$invoiceRepo
$invoiceService
$mailer
$paymentService
$recurringInvoiceService

Public Methods

Method Description
__construct ( ContactMailer $mailer, InvoiceRepository $invoiceRepo, ClientRepository $clientRepo, InvoiceService $invoiceService, DocumentRepository $documentRepo, RecurringInvoiceService $recurringInvoiceService, PaymentService $paymentService )
bulk ( $entityType = ENTITY_INVOICE ) : Response Remove the specified resource from storage.
checkInvoiceNumber ( $invoicePublicId = false )
cloneInvoice ( App\Http\Requests\InvoiceRequest $request, $publicId )
convertQuote ( App\Http\Requests\InvoiceRequest $request )
create ( App\Http\Requests\InvoiceRequest $request, $clientPublicId, $isRecurring = false )
createRecurring ( App\Http\Requests\InvoiceRequest $request, $clientPublicId )
edit ( App\Http\Requests\InvoiceRequest $request, $publicId, $clone = false )
getDatatable ( $clientPublicId = null )
getRecurringDatatable ( $clientPublicId = null )
index ( )
invoiceHistory ( App\Http\Requests\InvoiceRequest $request )
show ( $publicId ) : Response Display the specified resource.
store ( CreateInvoiceRequest $request ) : Response Store a newly created resource in storage.
update ( UpdateInvoiceRequest $request ) : Response Update the specified resource in storage.

Private Methods

Method Description
emailInvoice ( $invoice, $pdfUpload )
emailRecurringInvoice ( &$invoice )
getViewModel ( $invoice )

Method Details

__construct() public method

public __construct ( ContactMailer $mailer, InvoiceRepository $invoiceRepo, ClientRepository $clientRepo, InvoiceService $invoiceService, DocumentRepository $documentRepo, RecurringInvoiceService $recurringInvoiceService, PaymentService $paymentService )
$mailer App\Ninja\Mailers\ContactMailer
$invoiceRepo App\Ninja\Repositories\InvoiceRepository
$clientRepo App\Ninja\Repositories\ClientRepository
$invoiceService App\services\InvoiceService
$documentRepo App\Ninja\Repositories\DocumentRepository
$recurringInvoiceService App\services\RecurringInvoiceService
$paymentService App\services\PaymentService

bulk() public method

Remove the specified resource from storage.
public bulk ( $entityType = ENTITY_INVOICE ) : Response
return Response

checkInvoiceNumber() public method

public checkInvoiceNumber ( $invoicePublicId = false )

cloneInvoice() public method

public cloneInvoice ( App\Http\Requests\InvoiceRequest $request, $publicId )
$request App\Http\Requests\InvoiceRequest

convertQuote() public method

public convertQuote ( App\Http\Requests\InvoiceRequest $request )
$request App\Http\Requests\InvoiceRequest

create() public method

public create ( App\Http\Requests\InvoiceRequest $request, $clientPublicId, $isRecurring = false )
$request App\Http\Requests\InvoiceRequest

createRecurring() public method

public createRecurring ( App\Http\Requests\InvoiceRequest $request, $clientPublicId )
$request App\Http\Requests\InvoiceRequest

edit() public method

public edit ( App\Http\Requests\InvoiceRequest $request, $publicId, $clone = false )
$request App\Http\Requests\InvoiceRequest

getDatatable() public method

public getDatatable ( $clientPublicId = null )

getRecurringDatatable() public method

public getRecurringDatatable ( $clientPublicId = null )

index() public method

public index ( )

invoiceHistory() public method

public invoiceHistory ( App\Http\Requests\InvoiceRequest $request )
$request App\Http\Requests\InvoiceRequest

show() public method

Display the specified resource.
public show ( $publicId ) : Response
return Response

store() public method

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

update() public method

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

Property Details

$clientRepo protected_oe property

protected $clientRepo

$documentRepo protected_oe property

protected $documentRepo

$entityType protected_oe property

protected $entityType

$invoiceRepo protected_oe property

protected $invoiceRepo

$invoiceService protected_oe property

protected $invoiceService

$mailer protected_oe property

protected $mailer

$paymentService protected_oe property

protected $paymentService

$recurringInvoiceService protected_oe property

protected $recurringInvoiceService