PHP Class AcTasksController

Inheritance: extends AcBaseController
显示文件 Open project: efficiently/authority-controller

Protected Properties

Property Type Description
$acProject AcProject Parent resource AcProject instance
$acProjectModel AcProject Parent resource AcProject Repository
$acTask AcTask current AcTask instance
$acTaskModel AcTask AcTask Repository
$acTasks Illuminate\Database\Eloquent\Collection AcTask collection

Public Methods

Method Description
__construct ( AcProject $acProjectModel, AcTask $acTaskModel )
create ( integer $acProjectId ) : Response Show the form for creating a new resource.
destroy ( integer $acProjectId, integer $id ) : Response Remove the specified resource from storage.
edit ( integer $acProjectId, integer $id ) : Response Show the form for editing the specified resource.
index ( integer $acProjectId ) : Response Display a listing of the resource.
show ( integer $acProjectId, integer $id ) : Response Display the specified resource.
store ( integer $acProjectId ) : Response Store a newly created resource in storage.
update ( integer $acProjectId, integer $id ) : Response Update the specified resource in storage.

Method Details

__construct() public method

public __construct ( AcProject $acProjectModel, AcTask $acTaskModel )
$acProjectModel AcProject
$acTaskModel AcTask

create() public method

Show the form for creating a new resource.
public create ( integer $acProjectId ) : Response
$acProjectId integer
return Response

destroy() public method

Remove the specified resource from storage.
public destroy ( integer $acProjectId, integer $id ) : Response
$acProjectId integer
$id integer
return Response

edit() public method

Show the form for editing the specified resource.
public edit ( integer $acProjectId, integer $id ) : Response
$acProjectId integer
$id integer
return Response

index() public method

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

show() public method

Display the specified resource.
public show ( integer $acProjectId, integer $id ) : Response
$acProjectId integer
$id integer
return Response

store() public method

Store a newly created resource in storage.
public store ( integer $acProjectId ) : Response
$acProjectId integer
return Response

update() public method

Update the specified resource in storage.
public update ( integer $acProjectId, integer $id ) : Response
$acProjectId integer
$id integer
return Response

Property Details

$acProject protected_oe property

Parent resource AcProject instance
protected AcProject $acProject
return AcProject

$acProjectModel protected_oe property

Parent resource AcProject Repository
protected AcProject $acProjectModel
return AcProject

$acTask protected_oe property

current AcTask instance
protected AcTask $acTask
return AcTask

$acTaskModel protected_oe property

AcTask Repository
protected AcTask $acTaskModel
return AcTask

$acTasks protected_oe property

AcTask collection
protected Illuminate\Database\Eloquent\Collection $acTasks
return Illuminate\Database\Eloquent\Collection