PHP Class App\Http\Controllers\TaskController

Inheritance: extends Controller
Datei anzeigen Open project: hillelcoren/invoice-ninja Class Usage Examples

Protected Properties

Property Type Description
$entityType
$invoiceRepo App\Ninja\Repositories\InvoiceRepository
$taskRepo App\Ninja\Repositories\TaskRepository
$taskService App\services\TaskService

Public Methods

Method Description
__construct ( TaskRepository $taskRepo, InvoiceRepository $invoiceRepo, TaskService $taskService ) TaskController constructor.
bulk ( ) : Illuminate\Http\RedirectResponse
create ( App\Http\Requests\TaskRequest $request ) : Illuminate\Contracts\View\View Show the form for creating a new resource.
edit ( App\Http\Requests\TaskRequest $request ) : Illuminate\Contracts\View\View Show the form for editing the specified resource.
getDatatable ( null $clientPublicId = null ) : Illuminate\Http\JsonResponse
index ( ) : Illuminate\Contracts\View\View
show ( $publicId ) : Illuminate\Http\RedirectResponse
store ( App\Http\Requests\CreateTaskRequest $request ) : Illuminate\Http\RedirectResponse Store a newly created resource in storage.
update ( App\Http\Requests\UpdateTaskRequest $request ) : Illuminate\Http\RedirectResponse Update the specified resource in storage.

Private Methods

Method Description
checkTimezone ( )
getViewModel ( ) : array
save ( null $publicId = null ) : Illuminate\Http\RedirectResponse

Method Details

__construct() public method

TaskController constructor.
public __construct ( TaskRepository $taskRepo, InvoiceRepository $invoiceRepo, TaskService $taskService )
$taskRepo App\Ninja\Repositories\TaskRepository
$invoiceRepo App\Ninja\Repositories\InvoiceRepository
$taskService App\services\TaskService

bulk() public method

public bulk ( ) : Illuminate\Http\RedirectResponse
return Illuminate\Http\RedirectResponse

create() public method

Show the form for creating a new resource.
public create ( App\Http\Requests\TaskRequest $request ) : Illuminate\Contracts\View\View
$request App\Http\Requests\TaskRequest
return Illuminate\Contracts\View\View

edit() public method

Show the form for editing the specified resource.
public edit ( App\Http\Requests\TaskRequest $request ) : Illuminate\Contracts\View\View
$request App\Http\Requests\TaskRequest
return Illuminate\Contracts\View\View

getDatatable() public method

public getDatatable ( null $clientPublicId = null ) : Illuminate\Http\JsonResponse
$clientPublicId null
return Illuminate\Http\JsonResponse

index() public method

public index ( ) : Illuminate\Contracts\View\View
return Illuminate\Contracts\View\View

show() public method

public show ( $publicId ) : Illuminate\Http\RedirectResponse
$publicId
return Illuminate\Http\RedirectResponse

store() public method

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

update() public method

Update the specified resource in storage.
public update ( App\Http\Requests\UpdateTaskRequest $request ) : Illuminate\Http\RedirectResponse
$request App\Http\Requests\UpdateTaskRequest
return Illuminate\Http\RedirectResponse

Property Details

$entityType protected_oe property

protected $entityType

$invoiceRepo protected_oe property

protected InvoiceRepository,App\Ninja\Repositories $invoiceRepo
return App\Ninja\Repositories\InvoiceRepository

$taskRepo protected_oe property

protected TaskRepository,App\Ninja\Repositories $taskRepo
return App\Ninja\Repositories\TaskRepository

$taskService protected_oe property

protected TaskService,App\Services $taskService
return App\services\TaskService