PHP Класс App\Http\Controllers\InvoiceController

Наследование: extends Controller
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$clientRepo
$documentRepo
$entityType
$invoiceRepo
$invoiceService
$mailer
$paymentService
$recurringInvoiceService

Открытые методы

Метод Описание
__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.

Приватные методы

Метод Описание
emailInvoice ( $invoice, $pdfUpload )
emailRecurringInvoice ( &$invoice )
getViewModel ( $invoice )

Описание методов

__construct() публичный Метод

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() публичный Метод

Remove the specified resource from storage.
public bulk ( $entityType = ENTITY_INVOICE ) : Response
Результат Response

checkInvoiceNumber() публичный Метод

public checkInvoiceNumber ( $invoicePublicId = false )

cloneInvoice() публичный Метод

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

convertQuote() публичный Метод

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

create() публичный Метод

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

createRecurring() публичный Метод

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

edit() публичный Метод

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

getDatatable() публичный Метод

public getDatatable ( $clientPublicId = null )

getRecurringDatatable() публичный Метод

public getRecurringDatatable ( $clientPublicId = null )

index() публичный Метод

public index ( )

invoiceHistory() публичный Метод

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

show() публичный Метод

Display the specified resource.
public show ( $publicId ) : Response
Результат Response

store() публичный Метод

Store a newly created resource in storage.
public store ( CreateInvoiceRequest $request ) : Response
$request App\Http\Requests\CreateInvoiceRequest
Результат Response

update() публичный Метод

Update the specified resource in storage.
public update ( UpdateInvoiceRequest $request ) : Response
$request App\Http\Requests\UpdateInvoiceRequest
Результат Response

Описание свойств

$clientRepo защищенное свойство

protected $clientRepo

$documentRepo защищенное свойство

protected $documentRepo

$entityType защищенное свойство

protected $entityType

$invoiceRepo защищенное свойство

protected $invoiceRepo

$invoiceService защищенное свойство

protected $invoiceService

$mailer защищенное свойство

protected $mailer

$paymentService защищенное свойство

protected $paymentService

$recurringInvoiceService защищенное свойство

protected $recurringInvoiceService