PHP 클래스 app\http\controllers\FreeProductsController

상속: extends Controller
파일 보기 프로젝트 열기: ant-vel/antVel

공개 메소드들

메소드 설명
create ( $orderId ) : Response Show the form for creating a new resource.
destroy ( integer $id ) : Response Remove the specified resource from storage.
edit ( integer $id ) : Response Show the form for editing the specified resource.
getParentAndChildren ( [array] $select = ['id', 'description'], [integer] $limit = 5 ) build the free prodcuts tree where parent will be a free product and children are the products list associated.
index ( Illuminate\Http\Request $request ) : Response Display a listing of the resource.
myFreeProducts ( Illuminate\Http\Request $request )
show ( integer $id ) : View Return the product data free query view.
store ( Illuminate\Http\Request $request ) : Response Store a newly created resource in storage.
subscribe ( integer $id ) : Response Subscription free product, validating the conditions and validity of the same.
update ( integer $id ) : Response Update the specified resource in storage.

메소드 상세

create() 공개 메소드

Show the form for creating a new resource.
public create ( $orderId ) : Response
리턴 Response

destroy() 공개 메소드

Remove the specified resource from storage.
public destroy ( integer $id ) : Response
$id integer
리턴 Response

edit() 공개 메소드

Show the form for editing the specified resource.
public edit ( integer $id ) : Response
$id integer
리턴 Response

getParentAndChildren() 공개 정적인 메소드

build the free prodcuts tree where parent will be a free product and children are the products list associated.
public static getParentAndChildren ( [array] $select = ['id', 'description'], [integer] $limit = 5 )
$select [array]
$limit [integer]

index() 공개 메소드

Display a listing of the resource.
public index ( Illuminate\Http\Request $request ) : Response
$request Illuminate\Http\Request
리턴 Response

myFreeProducts() 공개 메소드

public myFreeProducts ( Illuminate\Http\Request $request )
$request Illuminate\Http\Request

show() 공개 메소드

Return the product data free query view.
public show ( integer $id ) : View
$id integer of freeproduct
리턴 View

store() 공개 메소드

Store a newly created resource in storage.
public store ( Illuminate\Http\Request $request ) : Response
$request Illuminate\Http\Request
리턴 Response

subscribe() 공개 메소드

Subscription free product, validating the conditions and validity of the same.
public subscribe ( integer $id ) : Response
$id integer
리턴 Response

update() 공개 메소드

Update the specified resource in storage.
public update ( integer $id ) : Response
$id integer
리턴 Response