This controller handles all actions related to Consumables for the Snipe-IT Asset Management application. More...
  
 Public Member Functions | |
| getIndex () | |
| Return a view to display component information.  More... | |
| getCreate () | |
| Return a view to display the form view to create a new consumable.  More... | |
| postCreate () | |
| Validate and store new consumable data.  More... | |
| getEdit ($consumableId=null) | |
| Returns a form view to edit a consumable.  More... | |
| postEdit ($consumableId=null) | |
| Returns a form view to edit a consumable.  More... | |
| getDelete ($consumableId) | |
| Delete a consumable.  More... | |
| getView ($consumableId=null) | |
| Return a view to display component information.  More... | |
| getCheckout ($consumableId) | |
| Return a view to checkout a consumable to a user.  More... | |
| postCheckout ($consumableId) | |
| Saves the checkout information.  More... | |
| getDatatable () | |
| Returns the JSON response containing the the consumables data.  More... | |
| getDataView ($consumableId) | |
| Returns a JSON response containing details on the users associated with this consumable.  More... | |
Detailed Description
This controller handles all actions related to Consumables for the Snipe-IT Asset Management application.
- Version
 - v1.0
 
Definition at line 28 of file ConsumablesController.php.
Member Function Documentation
| App\Http\Controllers\ConsumablesController::getCheckout | ( | $consumableId | ) | 
Return a view to checkout a consumable to a user.
- See also
 - ConsumablesController::postCheckout() method that stores the data.
 
- Since
 - [v1.0]
 
- Parameters
 - 
  
int $consumableId  
- Returns
 - View
 
Definition at line 255 of file ConsumablesController.php.
| App\Http\Controllers\ConsumablesController::getCreate | ( | ) | 
Return a view to display the form view to create a new consumable.
- See also
 - ConsumablesController::postCreate() method that stores the form data
 
- Since
 - [v1.0]
 
- Returns
 - View
 
Definition at line 52 of file ConsumablesController.php.
| App\Http\Controllers\ConsumablesController::getDatatable | ( | ) | 
Returns the JSON response containing the the consumables data.
- See also
 - ConsumablesController::getIndex() method that returns the view that consumes the JSON.
 
- Since
 - [v1.0]
 
- Parameters
 - 
  
int $consumableId  
- Returns
 - View
 
Definition at line 389 of file ConsumablesController.php.
| App\Http\Controllers\ConsumablesController::getDataView | ( | $consumableId | ) | 
Returns a JSON response containing details on the users associated with this consumable.
- See also
 - ConsumablesController::getView() method that returns the form.
 
- Since
 - [v1.0]
 
- Parameters
 - 
  
int $consumableId  
- Returns
 - View
 
Definition at line 469 of file ConsumablesController.php.
| App\Http\Controllers\ConsumablesController::getDelete | ( | $consumableId | ) | 
Delete a consumable.
- Parameters
 - 
  
int $consumableId  
- Since
 - [v1.0]
 
- Returns
 - Redirect
 
Definition at line 195 of file ConsumablesController.php.
| App\Http\Controllers\ConsumablesController::getEdit | ( | $consumableId = null | ) | 
Returns a form view to edit a consumable.
- Parameters
 - 
  
int $consumableId  
- See also
 - ConsumablesController::postEdit() method that stores the form data.
 
- Since
 - [v1.0]
 
- Returns
 - View
 
Definition at line 120 of file ConsumablesController.php.
| App\Http\Controllers\ConsumablesController::getIndex | ( | ) | 
Return a view to display component information.
- See also
 - ConsumablesController::getDatatable() method that generates the JSON response
 
- Since
 - [v1.0]
 
- Returns
 - View
 
Definition at line 38 of file ConsumablesController.php.
| App\Http\Controllers\ConsumablesController::getView | ( | $consumableId = null | ) | 
Return a view to display component information.
- See also
 - ConsumablesController::getDataView() method that generates the JSON response
 
- Since
 - [v1.0]
 
- Parameters
 - 
  
int $consumableId  
- Returns
 - View
 
Definition at line 223 of file ConsumablesController.php.
| App\Http\Controllers\ConsumablesController::postCheckout | ( | $consumableId | ) | 
Saves the checkout information.
- See also
 - ConsumablesController::getCheckout() method that returns the form.
 
- Since
 - [v1.0]
 
- Parameters
 - 
  
int $consumableId  
- Returns
 - Redirect
 
Definition at line 281 of file ConsumablesController.php.
| App\Http\Controllers\ConsumablesController::postCreate | ( | ) | 
Validate and store new consumable data.
- See also
 - ConsumablesController::getCreate() method that returns the form view
 
- Since
 - [v1.0]
 
- Returns
 - Redirect
 
Definition at line 75 of file ConsumablesController.php.
| App\Http\Controllers\ConsumablesController::postEdit | ( | $consumableId = null | ) | 
Returns a form view to edit a consumable.
- Parameters
 - 
  
int $consumableId  
- See also
 - ConsumablesController::getEdit() method that stores the form data.
 
- Since
 - [v1.0]
 
- Returns
 - Redirect
 
Definition at line 150 of file ConsumablesController.php.
The documentation for this class was generated from the following file:
          
          