PHP Class app\http\controllers\FreeProductsController

Inheritance: extends Controller
Afficher le fichier Open project: ant-vel/antVel

Méthodes publiques

Méthode Description
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.

Method Details

create() public méthode

Show the form for creating a new resource.
public create ( $orderId ) : Response
Résultat Response

destroy() public méthode

Remove the specified resource from storage.
public destroy ( integer $id ) : Response
$id integer
Résultat Response

edit() public méthode

Show the form for editing the specified resource.
public edit ( integer $id ) : Response
$id integer
Résultat Response

getParentAndChildren() public static méthode

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() public méthode

Display a listing of the resource.
public index ( Illuminate\Http\Request $request ) : Response
$request Illuminate\Http\Request
Résultat Response

myFreeProducts() public méthode

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

show() public méthode

Return the product data free query view.
public show ( integer $id ) : View
$id integer of freeproduct
Résultat View

store() public méthode

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

subscribe() public méthode

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

update() public méthode

Update the specified resource in storage.
public update ( integer $id ) : Response
$id integer
Résultat Response