This controller handles all actions related to Asset Maintenance for the Snipe-IT Asset Management application. More...

Public Member Functions | |
getIndex () | |
Returns a view that invokes the ajax tables which actually contains the content for the asset maintenances listing, which is generated in getDatatable. More... | |
getDatatable () | |
Generates the JSON response for asset maintenances listing view. More... | |
getCreate ($assetId=null) | |
Returns a form view to create a new asset maintenance. More... | |
postCreate () | |
Validates and stores the new asset maintenance. More... | |
getEdit ($assetMaintenanceId=null) | |
Returns a form view to edit a selected asset maintenance. More... | |
postEdit ($assetMaintenanceId=null) | |
Validates and stores an update to an asset maintenance. More... | |
getDelete ($assetMaintenanceId) | |
Delete an asset maintenance. More... | |
getView ($assetMaintenanceId) | |
View an asset maintenance. More... | |
Detailed Description
This controller handles all actions related to Asset Maintenance for the Snipe-IT Asset Management application.
- Version
- v2.0
Definition at line 30 of file AssetMaintenancesController.php.
Member Function Documentation
App\Http\Controllers\AssetMaintenancesController::getCreate | ( | $assetId = null | ) |
Returns a form view to create a new asset maintenance.
- See also
- AssetMaintenancesController::postCreate() method that stores the data
- Version
- v1.0
- Since
- [v1.8]
- Returns
- mixed
Definition at line 150 of file AssetMaintenancesController.php.
App\Http\Controllers\AssetMaintenancesController::getDatatable | ( | ) |
Generates the JSON response for asset maintenances listing view.
- See also
- AssetMaintenancesController::getIndex() method that generates view
- Version
- v1.0
- Since
- [v1.8]
- Returns
- String JSON
Definition at line 75 of file AssetMaintenancesController.php.
App\Http\Controllers\AssetMaintenancesController::getDelete | ( | $assetMaintenanceId | ) |
Delete an asset maintenance.
- Parameters
-
int $assetMaintenanceId
- Version
- v1.0
- Since
- [v1.8]
- Returns
- mixed
Definition at line 471 of file AssetMaintenancesController.php.
App\Http\Controllers\AssetMaintenancesController::getEdit | ( | $assetMaintenanceId = null | ) |
Returns a form view to edit a selected asset maintenance.
- See also
- AssetMaintenancesController::postEdit() method that stores the data
- Parameters
-
int $assetMaintenanceId
- Version
- v1.0
- Since
- [v1.8]
- Returns
- mixed
Definition at line 296 of file AssetMaintenancesController.php.
App\Http\Controllers\AssetMaintenancesController::getIndex | ( | ) |
Returns a view that invokes the ajax tables which actually contains the content for the asset maintenances listing, which is generated in getDatatable.
- Todo:
- This should be replaced with middleware and/or policies
- See also
- AssetMaintenancesController::getDatatable() method that generates the JSON response
- Version
- v1.0
- Since
- [v1.8]
- Returns
- View
Definition at line 59 of file AssetMaintenancesController.php.
App\Http\Controllers\AssetMaintenancesController::getView | ( | $assetMaintenanceId | ) |
View an asset maintenance.
- Parameters
-
int $assetMaintenanceId
- Version
- v1.0
- Since
- [v1.8]
- Returns
- View
Definition at line 499 of file AssetMaintenancesController.php.
App\Http\Controllers\AssetMaintenancesController::postCreate | ( | ) |
Validates and stores the new asset maintenance.
- See also
- AssetMaintenancesController::getCreate() method for the form
- Version
- v1.0
- Since
- [v1.8]
- Returns
- mixed
Definition at line 208 of file AssetMaintenancesController.php.
App\Http\Controllers\AssetMaintenancesController::postEdit | ( | $assetMaintenanceId = null | ) |
Validates and stores an update to an asset maintenance.
- See also
- AssetMaintenancesController::postEdit() method that stores the data
- Parameters
-
int $assetMaintenanceId
- Version
- v1.0
- Since
- [v1.8]
- Returns
- mixed
Definition at line 375 of file AssetMaintenancesController.php.
The documentation for this class was generated from the following file: