Eric Lippmann
920f3494d8
Widgets: Fix example code in documention not following our Coding Standards
...
refs #4512
2013-08-16 15:08:29 +02:00
Eric Lippmann
7dc2f78b63
CS: Fix docstrings in Icinga/Web/Widget/* and Icinga/Web/Controller/ActionController.php
...
refs #4512
2013-08-16 15:08:28 +02:00
Eric Lippmann
aff2398c81
Application/Controllers: Follow our Coding Standards
...
refs #4512
2013-08-16 15:08:28 +02:00
Jannis Moßhammer
0b479e3796
Code style fixes, fix documentation, fix tab parameters not being overwritten
...
refs #4512
2013-08-16 15:08:28 +02:00
Jannis Moßhammer
49d56f1eab
Fix capitalization error in test require
...
refs #4512
2013-08-16 15:08:28 +02:00
Jannis Moßhammer
b28c7f2f4c
Refactor test, tabs and controller
...
- Remove unused methods,
- Code style
- Documentation for widgets
- Tabextensions instead of hardcoded tab actions
- Add tests for tabs
- Add missing phpdoc for touched files
- Fix tests
refs #4512
refs #4541
refs #4540
2013-08-16 15:08:28 +02:00
Jannis Moßhammer
346ab198bb
Merge branch 'feature/db-adapter-factory-4503'
...
resolves #4503
2013-08-15 15:08:51 +02:00
Matthias Jentsch
e6c57f029d
Fix code styling to comply with coding standard
...
refs #4503
2013-08-15 14:58:08 +02:00
Matthias Jentsch
7f30b587be
Change the StoreFactory to work with the DbAdapterFactory and fix code styling
...
Change the StoreFactory configuration to reference to a resource instead of
defining the whole database. Additionally fix docstrings, fix imports and fix
function calls to comply to coding style standards.
refs #4503
2013-08-15 14:16:34 +02:00
Matthias Jentsch
3692a73de5
Fix spelling mistake in resources.md
...
refs #4503
2013-08-14 16:27:03 +02:00
Matthias Jentsch
f1040aad60
Add additional functionality and documentation for easier use through developers
...
Add functions to get information about currently available resources and add
documentation about class usage for developers.
2013-08-14 16:22:58 +02:00
Matthias Jentsch
3ce44b72e1
Change accepted exception type of unit test
...
Change the generic type Exception to a more specific one, to achieve
a more accurate test case.
resolves #4503
2013-08-14 16:22:58 +02:00
Matthias Jentsch
9799f4beab
Fix mistakes in the documentation files
...
resolves #4503
2013-08-14 16:22:58 +02:00
Matthias Jentsch
68deb735c0
Add the DbAdapterFactory to instanciate database adapters using resource names
...
Create the DbAdapterFactory to instanciate db adapters, add resources.ini to configure resources, change
the authentication Manager to fall back to backends with lower priority in case
of errors, update the current UserBackends to the changed environment. Also
adjust the documentation and existing unit tests.
resolves #4503
2013-08-14 16:22:58 +02:00
Eric Lippmann
3306d3e3c0
Merge branch 'feature/configuration-and-preferences-controller-4530'
...
resolves #4530
2013-08-14 16:09:20 +02:00
Eric Lippmann
6d98b923ca
CS: Fix docstrings in Icinga/Application/Modules/Module.php and Manager.php
...
refs #4530
2013-08-14 16:08:15 +02:00
Jannis Moßhammer
d604b01349
Fix missing Icinga\Application\Logger import in module manager
...
refs #4530
2013-08-14 16:08:15 +02:00
Jannis Moßhammer
392e568bf8
Code style fixes: License header, phpdoc tags, psr-2 compliance
...
refs #4530
2013-08-14 16:08:15 +02:00
Eric Lippmann
8c91410680
CS: Fix phpdoc tags indent in Icinga/Application/Modules/Module.php
...
refs #4530
2013-08-14 16:08:15 +02:00
Jannis Moßhammer
be29b8ff8f
Make ConfigController and PreferenceController extensible by convention
...
- Rename ConfigurationController to ConfigController
- ConfigController and PreferenceController are now subclasses of
BaseConfigController and BasePreferenceController
- Module and Application Config/Preference Tabs are detected via
the ControllerTabCollector
- Moved Controller classes to Icinga/Web/Controller (this is why
so many files are modified)
refs #4530
2013-08-14 16:08:15 +02:00
Jannis Moßhammer
f8567058b4
Merge branch 'bugfix/ini-writer-comments-at-line-end-4531'
...
fixes #4531
2013-08-14 15:05:21 +02:00
Matthias Jentsch
7c1b11baa4
Fix a bug that causes a warning to be displayed when a section
...
declaration at line 0 is present
2013-08-14 15:05:10 +02:00
Matthias Jentsch
eecbc233b9
Fix behavior of PreservingIniWriter that caused comments at the line end to be deleted
...
Implement a function to fetch comments at line end and use it to preserve
comments. Change the regular expressions used to parse lines to be more aware
of whitespaces between terms. Add automatic value and comment indentation
to produce cleaner output.
2013-08-14 15:05:10 +02:00
Marius Hein
455e37916d
Merge branch 'feature/vagrant-monitoring-test-config-4506'
...
resolves #4506
2013-08-14 14:53:50 +02:00
Eric Lippmann
63999c80ac
Vagrant: Fix installation of perl-CPAN
...
refs #4506
2013-08-14 14:35:37 +02:00
Eric Lippmann
a2de4a8c22
Vagrant: Install Icinga plugins from Perl module Monitoring::Generator::TestConfig too
...
refs #4506
2013-08-13 17:36:57 +02:00
Eric Lippmann
0a5db0fb3a
Vagrant: Install test config to both the MySQL and PostgreSQL Icinga instance
...
refs #4506
2013-08-13 17:36:57 +02:00
Eric Lippmann
720db8bf77
Vagrant: Fix installation of Perl module Monitoring::Generator::TestConfig
...
refs #4506
2013-08-13 17:36:57 +02:00
Eric Lippmann
6ce47f297b
Vagrant: Install Perl module Monitoring::Generator::TestConfig
...
refs #4506
2013-08-13 17:36:56 +02:00
Jannis Moßhammer
99871e73bd
Merge branch 'feature/datetime-element-4440'
...
resolves #4440
resolves #4424
2013-08-12 17:26:55 +02:00
Eric Lippmann
4585bf2555
CC: Add missing docstrings to DateTimeFactory and DateTimePicker
...
refs #4440
2013-08-12 17:27:23 +02:00
Eric Lippmann
bd140f2828
CC: Fix phpcs errors of files changed in feature/datetime-element-4440
...
refs #4440
2013-08-12 16:43:10 +02:00
Eric Lippmann
7dea7fcad0
Monitoring/Forms: Replace PHP DateTime usage with DateTimeFactory
...
refs #4440
2013-08-12 16:43:10 +02:00
Eric Lippmann
2c217d1d06
Framework/DateTime: No longer use the Unix timestamp format since this ignores the time zone
...
refs #4440
2013-08-12 16:43:10 +02:00
Eric Lippmann
9f22905837
Framework/DateTimePicker: Set element's value to Unix timestamp after the input is considered valid
...
refs #4440
2013-08-12 16:43:09 +02:00
Eric Lippmann
4d98b64a1b
Monitoring/Forms: Fix docstrings
...
refs #4440
2013-08-12 16:43:09 +02:00
Eric Lippmann
5cb9c67443
Framework: Fix Form's docstrings
...
refs #4440
2013-08-12 16:43:09 +02:00
Eric Lippmann
e95c604084
Framework: Fix typo in DateTimeFactory::setConfig
...
refs #4440
2013-08-12 16:43:09 +02:00
Eric Lippmann
b4b51b9d46
Framework: Implement time zone aware DateTimeFactory
...
refs #4440
2013-08-12 16:43:09 +02:00
Eric Lippmann
3d104474d9
Tests: Fix UserTest as getTimeZone now returns a DateTimeZone object
...
refs #4440
2013-08-12 16:43:09 +02:00
Eric Lippmann
ba00fd39df
Framework: Get DateTimePicker's value as timestamp and add input validation
...
refs #4440
2013-08-12 16:43:09 +02:00
Eric Lippmann
a82d750d6a
Framework: Use the DateTime Unix timestamp format in the DateFormat helper
...
refs #4440
2013-08-12 16:43:09 +02:00
Eric Lippmann
3122a75e73
Framework/User: getTimeZone now returns a DateTimeZone object instead of a string
...
refs #4440
2013-08-12 16:43:09 +02:00
Eric Lippmann
5c98acd36c
Framework: Add doctrings to DateFormat view helper
...
refs #4424
2013-08-12 16:43:09 +02:00
Eric Lippmann
da7f619804
Framework: Implement DateFormat view helper
...
Support date, time and datetime formatting based on format strings
set either by the user or via config.ini. The view helper
FormDateTime uses the new helper already
refs #4440
refs #4424
2013-08-12 16:43:09 +02:00
Eric Lippmann
7c732ef682
Monitoring/Tests: Fix DateTimePicker element usage
...
refs #4440
2013-08-12 16:43:08 +02:00
Eric Lippmann
1a2ea656fd
Monitoring/Forms: Don't use DateTime as PhpDateTime
...
refs #4440
2013-08-12 16:43:08 +02:00
Eric Lippmann
1f10cb3124
Framework: Rename DateTime form element to DateTimePicker
...
refs #4440
2013-08-12 16:43:08 +02:00
Johannes Meyer
94ea09b552
Remove Date and Time form elements
...
Drops the Date and Time form element as they are redundant.
refs #4440
2013-08-12 16:43:08 +02:00
Eric Lippmann
c0e3712e1b
Framework/Elements: Implement DateTime form element
...
refs #4440
2013-08-12 16:42:51 +02:00