Search Results
This controller handles all actions related to Manufacturers 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 manufacturers listing, which is generated in getDatatable. More... | |
getCreate () | |
Returns a view that displays a form to create a new manufacturer. More... | |
postCreate () | |
Validates and stores the data for a new manufacturer. More... | |
getEdit ($manufacturerId=null) | |
Returns a view that displays a form to edit a manufacturer. More... | |
postEdit ($manufacturerId=null) | |
Validates and stores the updated manufacturer data. More... | |
getDelete ($manufacturerId) | |
Deletes a manufacturer. More... | |
getView ($manufacturerId=null) | |
Returns a view that invokes the ajax tables which actually contains the content for the manufacturers detail listing, which is generated in getDatatable. More... | |
getDatatable () | |
Generates the JSON used to display the manufacturer listings. More... | |
getDataView ($manufacturerId) | |
Generates the JSON used to display the manufacturer detail. More... | |
Detailed Description
This controller handles all actions related to Manufacturers for the Snipe-IT Asset Management application.
Definition at line 20 of file ManufacturersController.php.
Member Function Documentation
App\Http\Controllers\ManufacturersController::getCreate | ( | ) |
Returns a view that displays a form to create a new manufacturer.
- Since
- [v1.0]
- Returns
- View
Definition at line 46 of file ManufacturersController.php.
App\Http\Controllers\ManufacturersController::getDatatable | ( | ) |
Generates the JSON used to display the manufacturer listings.
- Since
- [v1.0]
- Returns
- String JSON
Definition at line 196 of file ManufacturersController.php.
App\Http\Controllers\ManufacturersController::getDataView | ( | $manufacturerId | ) |
Generates the JSON used to display the manufacturer detail.
This JSON returns data on all of the assets with the specified manufacturer ID number.
- Parameters
-
int $manufacturerId
- Since
- [v1.0]
- Returns
- String JSON
Definition at line 257 of file ManufacturersController.php.
App\Http\Controllers\ManufacturersController::getDelete | ( | $manufacturerId | ) |
Deletes a manufacturer.
- Parameters
-
int $manufacturerId
- Since
- [v1.0]
- Returns
- View
Definition at line 135 of file ManufacturersController.php.
App\Http\Controllers\ManufacturersController::getEdit | ( | $manufacturerId = null | ) |
Returns a view that displays a form to edit a manufacturer.
- Parameters
-
int $manufacturerId
- Since
- [v1.0]
- Returns
- View
Definition at line 83 of file ManufacturersController.php.
App\Http\Controllers\ManufacturersController::getIndex | ( | ) |
Returns a view that invokes the ajax tables which actually contains the content for the manufacturers listing, which is generated in getDatatable.
- See also
- ManufacturersController::getDatatable() method that generates the JSON response
- Since
- [v1.0]
- Returns
- View
Definition at line 31 of file ManufacturersController.php.
App\Http\Controllers\ManufacturersController::getView | ( | $manufacturerId = null | ) |
Returns a view that invokes the ajax tables which actually contains the content for the manufacturers detail listing, which is generated in getDatatable.
This data contains a listing of all assets that belong to that manufacturer.
- Parameters
-
int $manufacturerId
- Since
- [v1.0]
- Returns
- View
Definition at line 171 of file ManufacturersController.php.
App\Http\Controllers\ManufacturersController::postCreate | ( | ) |
Validates and stores the data for a new manufacturer.
- Since
- [v1.0]
- Returns
- Redirect
Definition at line 60 of file ManufacturersController.php.
App\Http\Controllers\ManufacturersController::postEdit | ( | $manufacturerId = null | ) |
Validates and stores the updated manufacturer data.
- Parameters
-
int $manufacturerId
- Since
- [v1.0]
- Returns
- View
Definition at line 105 of file ManufacturersController.php.
The documentation for this class was generated from the following file: