snipe-it/app/Models
Till Deeke baa3be728d Refactoring: A nicer and easier syntax for searching models (#5841)
* Adds the ability to search by dates

Adding extra „where“-conditions to the „TextSearch“ queries, allowing the users to search by dates

* Adds missing dates to $dates in models

* Removes duplicated „where“ conditions

* Adds the Searchable trait to models, defining the searchable attributes and relations

* Removes the old text search methods

* Adds back additional conditions to the search

These conditions could not be modeled in the „attributes“ or „relations“, so we include them here

* Removes unnecessary check for the deleted_at attribute

* Fixes typo in comments

* suppresses errors from Codacy

We can safely ignore the error codacy is throwing here, since this method is a standin/noop for models who need to implement more advanced searches
2018-07-16 14:13:07 -07:00
..
Recipients Notification improvements (#5254) 2018-03-25 13:46:57 -07:00
Traits Refactoring: A nicer and easier syntax for searching models (#5841) 2018-07-16 14:13:07 -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 Refactoring: A nicer and easier syntax for searching models (#5841) 2018-07-16 14:13:07 -07:00
AssetMaintenance.php Refactoring: A nicer and easier syntax for searching models (#5841) 2018-07-16 14:13:07 -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 Refactoring: A nicer and easier syntax for searching models (#5841) 2018-07-16 14:13:07 -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 Refactoring: A nicer and easier syntax for searching models (#5841) 2018-07-16 14:13:07 -07:00
LicenseSeat.php Notification improvements (#5254) 2018-03-25 13:46:57 -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 Refactoring: A nicer and easier syntax for searching models (#5841) 2018-07-16 14:13:07 -07:00