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
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
CompanyableChildTrait.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
CompanyableScope.php
CompanyableTrait.php
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
CustomField.php Adds textarea as a custom field type 2018-06-21 09:35:04 -07:00
CustomFieldset.php
Department.php Refactoring: A nicer and easier syntax for searching models (#5841) 2018-07-16 14:13:07 -07:00
Depreciable.php
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
Import.php
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
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
User.php Refactoring: A nicer and easier syntax for searching models (#5841) 2018-07-16 14:13:07 -07:00