Commit Graph

129 Commits

Author SHA1 Message Date
Johannes Meyer 7b488d7f93 swag: Fix violations of PSR-12
PSR-2 has been deprecated and phpcs v3.5.3
now checks for the successor PSR-12
2019-12-04 11:28:08 +01:00
Johannes Meyer 1f0ee9b0d4 IniRepository: Fix wrong documentation for $configs 2019-07-23 13:53:29 +02:00
Johannes Meyer b76e6e7597 RepositoryQuery: Actually return self in method peekAhead and not the parent 2018-04-24 09:26:45 +02:00
Alexander A. Klimov 5ce491d57a Icinga\Repository::retrieveGeneralizedTime(): outsource logic
refs #2816
2018-01-18 15:25:21 +01:00
Alexander A. Klimov fbffc42b96 Icinga\Repository::retrieveGeneralizedTime(): comply w/ RFC4517
refs #2816
2018-01-17 18:14:18 +01:00
Johannes Meyer 9ea916c5c6 Repository: Fix that legacy sort rules are ignored
refs #2765
2018-01-16 12:59:42 +01:00
Markus Frosch f65759ace8 LdapUserGroupBackend: Base ambiguity decision based on isDN
Problem was: When a DN did not contain the same base DN, the check failed

This happens when you have an entry referencing a DN of another domain.
(And this value is tested as a sample)
2017-10-20 15:17:11 +02:00
Eric Lippmann d5de7e9868 Fix that updating INI repositories is impossible 2017-09-28 14:16:13 +02:00
Johannes Meyer b397b01966 DbRepository: Avoid to overwrite foreign keys in $aliasTableMap and $aliasColumnMap 2017-07-06 14:10:15 +02:00
Johannes Meyer 46647444c4 Repository: Fix broken conversion rules
The additional layers in $aliasTableMap and $aliasColumnMap required
for DbRepository's join probabilities are now only established there.
2017-06-20 08:32:44 +02:00
Johannes Meyer 91b0e98171 DbRepository: Allow to pass parameter $types to methods insert() and update()
DbConnection does already support this but it got somehow forgotten in this
class.
2017-06-06 09:48:40 +02:00
Johannes Meyer 29f9ff5ce0 DbRepository: Fix that virtual tables are not resolved when issuing statements 2017-06-06 09:33:06 +02:00
Johannes Meyer b8ae738f7f DbRepository: Add support for join probabilities
Finally solves the issue with those nasty column prefixes..
2017-06-06 09:29:05 +02:00
Johannes Meyer 7482a34b45 Repository: Check prefixed aliases earlier when inspecting $aliasTableMap
Avoids false-positives in case an exact match using $columnTableMap is
possible, though $aliasTableMap holds a prefixed entry.
2017-06-06 09:24:56 +02:00
Johannes Meyer b2d86df660 DbRepository: Fix that virtual tables are not resolved for statement columns 2017-05-30 13:57:58 +02:00
Johannes Meyer 181e2ef05c Swag: Fix swag (aka a whole bunch of code style issues..) 2017-01-27 14:48:59 +01:00
Johannes Meyer ad79e67550 IniRepository: Reduce complexity of method getDataSource
refs #13034
2016-11-04 10:17:37 +01:00
Johannes Meyer c44e164de9 IniRepository: Introduce method createConfig
refs #13034
2016-11-04 10:16:45 +01:00
Johannes Meyer a0db5bea87 IniRepository: Don't call getDataSource over and over again
refs #13034
2016-11-04 10:15:56 +01:00
Johannes Meyer 3c5fe76cc0 IniRepository: Directly pass the key column to method extractSectionName
refs #13034
2016-11-04 10:04:42 +01:00
Johannes Meyer ac3e182f0d IniRepository: Make key column validation in the constructor more readable
refs #13034
2016-11-04 09:59:37 +01:00
Johannes Meyer ca689bc944 IniRepository: Improve documentation of attribute $configs
refs #13034
2016-11-04 09:57:56 +01:00
Johannes Meyer df47026792 Repository: Fix documentation of method getDataSource
refs #13034
2016-11-04 09:56:53 +01:00
Alexander A. Klimov bd7851d15c IniRepository: improve initialization of per-table datasources
refs #13034
2016-11-03 18:05:05 +01:00
Alexander A. Klimov 38602379be Repository: allow not to provide a datasource for all tables
refs #13034
2016-11-03 16:12:09 +01:00
Alexander A. Klimov e5b24eb467 IniRepository: fix doc and method order
refs #13034
2016-11-03 16:00:20 +01:00
Alexander A. Klimov fb3f3ed788 IniRepository: add support for per-table datasources
refs #13034
2016-11-03 15:06:37 +01:00
Alexander A. Klimov e655699917 Repository: add support for per-table datasources
refs #13034
2016-11-03 14:35:18 +01:00
Johannes Meyer 4a791e6204 IniRepository: Don't fail if there is no trigger to be found 2016-11-02 13:25:37 +01:00
Johannes Meyer 82c7a51050 IniRepository: Don't require a key column before the onInsert trigger
fixes #13005
2016-10-31 08:37:15 +01:00
Johannes Meyer 957ad9361f IniRepository: Add support for triggers 2016-10-27 15:11:21 +02:00
Johannes Meyer f644860529 IniRepository: Fix that method update and delete fail without filter 2016-10-27 15:09:00 +02:00
Alexander A. Klimov 5212b6bab9 IniRepository: don't persist the key column as regular column 2016-10-26 10:27:30 +02:00
Johannes Meyer 124fb848a0 Repository: Fix column caches² 2016-08-18 15:40:20 +02:00
Johannes Meyer bd4f21df11 Repository: Fix column caches 2016-08-18 15:30:47 +02:00
Johannes Meyer ccb8bcc6e3 Repository: Allow for some more fine-grained control
Filter columns, search columns and sort rules can now be returned
dependent on a query's current target
2016-08-18 13:36:09 +02:00
Markus Frosch e9681de388 RepositoryQuery: Avoid cloning sub-objects when they are null
fixes #12078
2016-06-30 13:16:05 +02:00
Markus Frosch dfa77b2b2f IniRepository: Avoid using iterator_to_array with ArrayDatasource
While iterating ConfigObject/ArrayDatasource will not rewrite the section header into a row value as keycolumn.

In addition we now properly use the filter.

refs #12065
2016-06-28 16:21:06 +02:00
Johannes Meyer 28c024c037 Repository: Properly handle non-aliased columns 2016-04-21 10:10:24 +02:00
Alexander A. Klimov 474803fee4 Change all license headers to only reflect a file's year of creation
refs #11000
2016-02-08 15:41:00 +01:00
Eric Lippmann 7fd575080e PHP7: Rename String to StringHelper
refs #10251
2016-01-27 16:46:55 +01:00
Johannes Meyer d527ac2717 DbRepository: Handle columns of type Zend_Db_Expr #3 2015-12-07 12:06:27 +01:00
Johannes Meyer 64f13f0512 DbRepository: Handle columns of type Zend_Db_Expr #2 2015-12-07 09:55:25 +01:00
Johannes Meyer 0d1d3c3b8f DbRepository: Handle columns of type Zend_Db_Expr 2015-12-04 08:22:48 +01:00
Johannes Meyer 43848989ae RepositoryQuery: Add method __toString() 2015-12-03 13:54:48 +01:00
Johannes Meyer acf732e760 RepositoryQuery: Add method __clone() 2015-12-03 13:54:38 +01:00
Johannes Meyer dc7756c599 DbRepository: Fix that PostgreSQL queries do not apply LOWER on order cols
refs #10364
refs #9955
2015-11-12 09:13:46 +01:00
Johannes Meyer 439fc28d0f DbRepository: Add missing use statement for class FilterExpression
refs #10364
2015-11-12 08:23:35 +01:00
Johannes Meyer d2b8ed243f Repository: Accept parameter $filter in method requireFiltercolumn()
This allows to adjust more than the name of the column if necessary.

refs #10364
2015-11-11 16:05:54 +01:00
Johannes Meyer 22f966db43 DbRepository: Fix that PostgreSQL queries use LOWER() on non-CI columns
refs #10364
refs #9954
2015-11-11 15:06:18 +01:00