snipe-it/app/Models
Daniel Meltzer 64d649be7f Monster: Cleanup/Refactor http controllers. (#5916)
* Extract a handlesimages trait to centralize logic for parsing/storing images on upload in create/edit methods.

* Use same image upload/layout in accessories as consum+components.

* Monster: Cleanup/Refactor http controllers.

This cleans up docblocks, pulls most non-crudy actions into their own
controllers, and does general cleanup/logic refactoring.  There /should/
be no functional changes, but we all know how should works..

Extract checkin/checkout functions to a separate controller for accessories.

Move controllers to subdirectory.

Cleanup AssetModelsController

Extract component checkin/checkout

Assorted cleanups/doc/formatting in controllers.

Refactor LicenseController.

Refactor UsersController

Update viewassetscontroller.

* Codacy cleanups

* More codacy cleanups.  Extract a LicenseCheckout Form request as well.

* A bit more refactor/cleaning of the license checkout method.

* Review Related Cleanups

* Fix most of the item_not_found translations.  In many cases, the
string being generated did not even use the id parameter.  Where it
does, pass it as id instead of as a different value.

* Remove some old $data arrays from when we manually sent emails from
the controllers.  This has been superseeded by the notification system
(yay!)

* Bugfix: Only log the checkin of an accessory if the checkin completes sucessfully.
2018-07-24 19:35:26 -07:00
..
Recipients Notification improvements (#5254) 2018-03-25 13:46:57 -07:00
Traits Removes the typehint for search term string (#5904) 2018-07-20 13:23:44 -07:00
Accessory.php Refactoring: A nicer and easier syntax for searching models (#5841) 2018-07-16 14:13:07 -07:00
Actionlog.php Refactoring: A nicer and easier syntax for searching models (#5841) 2018-07-16 14:13:07 -07:00
Asset.php Checkout update locationid (#5919) 2018-07-23 06:47:21 -07:00
AssetMaintenance.php Fixed #5895 - wrong date validation in maintenances 2018-07-19 10:19:55 -07:00
AssetModel.php Refactoring: A nicer and easier syntax for searching models (#5841) 2018-07-16 14:13:07 -07:00
Category.php Refactoring: A nicer and easier syntax for searching models (#5841) 2018-07-16 14:13:07 -07:00
CheckoutRequest.php WIP - Improved requested assets (#5289) 2018-04-04 17:33:02 -07:00
Company.php Refactoring: A nicer and easier syntax for searching models (#5841) 2018-07-16 14:13:07 -07:00
CompanyableChildScope.php Updated docblocks 2016-04-07 13:21:09 -07:00
CompanyableChildTrait.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
CompanyableScope.php Updated docblocks 2016-04-07 13:21:09 -07:00
CompanyableTrait.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
Component.php Refactoring: A nicer and easier syntax for searching models (#5841) 2018-07-16 14:13:07 -07:00
Consumable.php Fix: No Notifications for checking out Consumables (#5898) 2018-07-20 13:22:49 -07:00
ConsumableAssignment.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
CustomField.php Adds textarea as a custom field type 2018-06-21 09:35:04 -07:00
CustomFieldset.php More specific required check 2017-09-29 03:44:23 -07:00
Department.php Refactoring: A nicer and easier syntax for searching models (#5841) 2018-07-16 14:13:07 -07:00
Depreciable.php Partialize forms (#2884) 2016-11-16 16:56:57 -08:00
Depreciation.php Refactoring: A nicer and easier syntax for searching models (#5841) 2018-07-16 14:13:07 -07:00
Group.php Refactoring: A nicer and easier syntax for searching models (#5841) 2018-07-16 14:13:07 -07:00
ICompanyableChild.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
Import.php Importer mapping - v1 (#3677) 2017-06-21 16:37:37 -07:00
Ldap.php Fixes wrong users index route name 2018-04-26 16:31:02 -07:00
License.php Fix: No Notifications for checking out Consumables (#5898) 2018-07-20 13:22:49 -07:00
LicenseSeat.php Monster: Cleanup/Refactor http controllers. (#5916) 2018-07-24 19:35:26 -07:00
Location.php Refactoring: A nicer and easier syntax for searching models (#5841) 2018-07-16 14:13:07 -07:00
Loggable.php Update my email address across files. (#5716) 2018-06-20 01:59:59 -07:00
Manufacturer.php Refactoring: A nicer and easier syntax for searching models (#5841) 2018-07-16 14:13:07 -07:00
Requestable.php WIP - Improved requested assets (#5289) 2018-04-04 17:33:02 -07:00
Setting.php Fixed #5477 - added GDPR privacy policy link in email and webpage 2018-05-08 00:50:13 -07:00
SnipeModel.php Feature: PostgreSQL support (#5642) 2018-07-12 18:24:43 -07:00
Statuslabel.php Refactoring: A nicer and easier syntax for searching models (#5841) 2018-07-16 14:13:07 -07:00
Supplier.php Refactoring: A nicer and easier syntax for searching models (#5841) 2018-07-16 14:13:07 -07:00
Throttle.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
User.php Fix importer emailformat (#5871) 2018-07-17 16:46:08 -07:00