PHP 클래스 App\Http\Controllers\OrdersController

상속: extends Controller
파일 보기 프로젝트 열기: ant-vel/antVel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$order App\Repositories\OrderRepository The order repository instance.

공개 메소드들

메소드 설명
__construct ( OrderRepository $order ) : void Create a new controller instance.
addToOrder ( string $destination, integer $productId, Illuminate\Http\Request $request ) : Response Adds the selected product to the BASE cart.
addToOrderById ( [type] $orderId, [type] $productId, Illuminate\Http\Request $request ) Allows adding products to a specific order and create new wish lists.
cancel ( $orderId, Illuminate\Http\Request $request ) : Response cancels one of the user orders.
checkOut ( ) : Response Starts the checkout process.
checkOutResume ( integer $addressId ) : Response Starts the checkout process.
closeOrder ( $order_id ) Changes the status of an order to close, so the user can now check if received.
commentOrder ( $order_id ) : App\Http\Controllers\json function to action to deliver virtual products.
createWishList ( ) : view Show the create wish list form.
deliveryVirtualProduct ( $orderId, $productId, Illuminate\Http\Request $request, $ajax = true ) : App\Http\Controllers\json function to action to deliver virtual products.
destroy ( integer $order_id, string $type ) : void Remove the specified resource from storage.
fromGuestToUser ( $ordersController ) fromGuestToUser This method is able to transfer all the guest shopping cart user to an user cart order.
mailtest ( )
modalDetailsProductCart ( ) : view function, to lift the Modal to display the details product in the card (Only this seller).
moveFromOrder ( integer $origin, integer $destination, integer $productId ) : Redirects Removes the selected item from the cart, and stores it back in the Later Cart.
placeOrder ( $type ) : Response Starts the checkout process.
rateOrder ( $order_id ) function to action to rate both the order and its content.
rateProduct ( Illuminate\Http\Request $request )
rateSeller ( Illuminate\Http\Request $request )
removeFromOrder ( string $orderName, integer $productId, $idOrder = '' ) : Redirects Removes the selected item from the cart.
reports ( $type, $filter )
sendOrder ( $order_id ) Changes the status of an order to pending, so the process can start.
showCart ( ) : view Show the contents of the user Cart.
showDetailsProductCart ( $id, Illuminate\Http\Request $request ) : App\Http\Controllers\json get keys registered (Only this seller).
showOrder ( $id ) : view
showSellerOrder ( integer $id ) : Response Display the specified resource.
showWishList ( $id = '' ) : view Show the contents of a wish list.
startOrder ( $order_id ) Changes the status of an order to pending, so the process can start.
storeComment ( Illuminate\Http\Request $request ) : App\Http\Controllers\json function to action to deliver virtual products.
storeWishList ( Illuminate\Http\Request $request ) : Response Create the new wishList with a description.
updateQuantity ( $orderId, $orderDetailId, $newValue ) : Response this method is able to update the quantities values in the shopping cart.
usersOrders ( Illuminate\Http\Request $request ) : view Shows the seller wich orders he/she has pending.
wishListDirectory ( ) : view wish list directory.

비공개 메소드들

메소드 설명
addToCartVirtualsProduct ( $product, $email, $orderId, $quantity ) : view

메소드 상세

__construct() 공개 메소드

Create a new controller instance.
public __construct ( OrderRepository $order ) : void
$order App\Repositories\OrderRepository
리턴 void

addToOrder() 공개 메소드

Adds the selected product to the BASE cart.
public addToOrder ( string $destination, integer $productId, Illuminate\Http\Request $request ) : Response
$destination string type or order ('cart','later',etc)
$productId integer The id of the product to be added
$request Illuminate\Http\Request
리턴 Response

addToOrderById() 공개 메소드

Allows adding products to a specific order and create new wish lists.
public addToOrderById ( [type] $orderId, [type] $productId, Illuminate\Http\Request $request )
$orderId [type]
$productId [type]
$request Illuminate\Http\Request [laravel object]

cancel() 공개 메소드

cancels one of the user orders.
public cancel ( $orderId, Illuminate\Http\Request $request ) : Response
$request Illuminate\Http\Request
리턴 Response

checkOut() 공개 메소드

Starts the checkout process.
public checkOut ( ) : Response
리턴 Response

checkOutResume() 공개 메소드

Starts the checkout process.
public checkOutResume ( integer $addressId ) : Response
$addressId integer The address id selected to be copied
리턴 Response

closeOrder() 공개 메소드

Changes the status of an order to close, so the user can now check if received.
public closeOrder ( $order_id )

commentOrder() 공개 메소드

@param $order_id int
public commentOrder ( $order_id ) : App\Http\Controllers\json
리턴 App\Http\Controllers\json message error or message success

createWishList() 공개 메소드

Show the create wish list form.
public createWishList ( ) : view
리턴 view for orders.cart

deliveryVirtualProduct() 공개 메소드

@param $orderId int|string id order
public deliveryVirtualProduct ( $orderId, $productId, Illuminate\Http\Request $request, $ajax = true ) : App\Http\Controllers\json
$productId int|string id product @param $request Request object to validate the type of request @return json message error or message success
$request Illuminate\Http\Request
리턴 App\Http\Controllers\json

destroy() 공개 메소드

Remove the specified resource from storage.
public destroy ( integer $order_id, string $type ) : void
$order_id integer
$type string
리턴 void

fromGuestToUser() 공개 정적인 메소드

It happens when a guest user has a shopping cart and press in checkout button.
public static fromGuestToUser ( $ordersController )

mailtest() 공개 메소드

public mailtest ( )

modalDetailsProductCart() 공개 메소드

@return view
public modalDetailsProductCart ( ) : view
리턴 view

moveFromOrder() 공개 메소드

Removes the selected item from the cart, and stores it back in the Later Cart.
public moveFromOrder ( integer $origin, integer $destination, integer $productId ) : Redirects
$origin integer type of the origin order ('cart','later',etc)
$destination integer type of the destination order ('cart','later',etc)
$productId integer of the product
리턴 Redirects back to de cart

placeOrder() 공개 메소드

Starts the checkout process.
public placeOrder ( $type ) : Response
리턴 Response

rateOrder() 공개 메소드

@param $order_id int
public rateOrder ( $order_id )

rateProduct() 공개 메소드

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

rateSeller() 공개 메소드

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

removeFromOrder() 공개 메소드

Removes the selected item from the cart.
public removeFromOrder ( string $orderName, integer $productId, $idOrder = '' ) : Redirects
$orderName string type or order ('cart','later',etc)
$productId integer Product id to be removed from the order
리턴 Redirects back to de cart

reports() 공개 메소드

public reports ( $type, $filter )

sendOrder() 공개 메소드

Changes the status of an order to pending, so the process can start.
public sendOrder ( $order_id )

showCart() 공개 메소드

Show the contents of the user Cart.
public showCart ( ) : view
리턴 view for orders.cart

showDetailsProductCart() 공개 메소드

@param $id int|string id product
public showDetailsProductCart ( $id, Illuminate\Http\Request $request ) : App\Http\Controllers\json
$request Illuminate\Http\Request Request object to validate the type of request @return json
리턴 App\Http\Controllers\json

showOrder() 공개 메소드

public showOrder ( $id ) : view
리턴 view

showSellerOrder() 공개 메소드

Display the specified resource.
public showSellerOrder ( integer $id ) : Response
$id integer
리턴 Response

showWishList() 공개 메소드

Show the contents of a wish list.
public showWishList ( $id = '' ) : view
리턴 view for orders.wish

startOrder() 공개 메소드

Changes the status of an order to pending, so the process can start.
public startOrder ( $order_id )

storeComment() 공개 메소드

@param $order_id int
public storeComment ( Illuminate\Http\Request $request ) : App\Http\Controllers\json
$request Illuminate\Http\Request
리턴 App\Http\Controllers\json message error or message success

storeWishList() 공개 메소드

Create the new wishList with a description.
public storeWishList ( Illuminate\Http\Request $request ) : Response
$request Illuminate\Http\Request
리턴 Response JSON

updateQuantity() 공개 메소드

this method is able to update the quantities values in the shopping cart.
public updateQuantity ( $orderId, $orderDetailId, $newValue ) : Response
$orderId is the shopping cart order id
$orderDetailId is the shopping cart order details
$newValue is new quantity to be used in the update
리턴 Response

usersOrders() 공개 메소드

Shows the seller wich orders he/she has pending.
public usersOrders ( Illuminate\Http\Request $request ) : view
$request Illuminate\Http\Request
리턴 view

wishListDirectory() 공개 메소드

wish list directory.
public wishListDirectory ( ) : view
리턴 view for orders.cart

프로퍼티 상세

$order 보호되어 있는 프로퍼티

The order repository instance.
protected OrderRepository,App\Repositories $order
리턴 App\Repositories\OrderRepository