Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Change quickform custom addrule returns #6332

Merged
merged 2 commits into from
May 31, 2018

Conversation

victorvassilev
Copy link
Contributor

required update for Quickform

Victor Vassilev added 2 commits May 25, 2018 10:41
Change fatal error to notice to comply with previous version error type all over the code.
stop execution if element not found
@victorvassilev victorvassilev merged commit 336e08c into php7-migration May 31, 2018
@victorvassilev victorvassilev deleted the change_quickformCustom_addrule_returns branch May 31, 2018 07:03
kduret pushed a commit that referenced this pull request Jun 5, 2018
* refactor(quickFormCustom): change error type of applyfilter
Change fatal error to notice to comply with previous version error type all over the code.

* refactor(quickform): update quickform custom
stop execution if element not found
victorvassilev added a commit that referenced this pull request Jun 6, 2018
* chore(build): use public repository to test

* fix(db): Some PHP warnings in strict mode

* fix(auth): Declaration of method not compatible with parent

* fix(session): Call non-static method

* Add quickform package to composer

* fix docblocks

* fix namespace of Exception class

* fix call to undeclared function \Exception()

* refactor(base): move smarty to composer managed module
remove old smarty lib and add new one to composer requirements. Update smarty plugin folder
to be outside composer module.

Resolves #CP7M-9

* refactor(base): add changed files not inserted in previous commit
Adds to: 546b316

* refactor(global): delete quickform library files

* refactor(global): remove local quickform loading

* refactor(global): fix quickform loading on Monitoring and Configuration

* refactor(global): fix quickform loading on Administration

* refactor(base): replace deprecated Archive_Zip class

replace deprecated Archive_Zip with ZipArchive class from PHP ZIP module and add composer dependency for Archive_Tar

Resolves #CP7M-13

* refactor(base): cleanup the code

* refactor(base): replace Archive_Tar with PharData

replace pear package Archive_Tar with PharData class

Resolves #CP7M-13

* refactor(global): return previous quickform class

* refactor(global): extend quickform from composer

* refactor(base): update php warnings

fix non numeric additions

part of: cp7m10

* refactor(global): cleanum cutom quickform class

* refactor(core): validate views post smarty update

Fixing various errors (not only smarty related) in validated views

Resolves CP7M-10

* Cp7 m15 fix php warnings (#6270)

* fix(base): fix some warnings and deprecations notes

fix double start a session some PHP files,
fix using of undefinded variables,
fix calling of non-static method as static,
fix using of old PEAR DB const DB_FETCHMODE_ASSOC,
remove manual loading of Smarty lib from custom views section
fix advmultiselect warnings and deprecates notes because the library is officially deprecated
fix admin ACL UI -> fix calling of undefined index and calling of non-static method as static

Resolves CP7M-15

* refactor(base): Changes to PR 6271

Update db call, fix post-merge missing db execution call on images

Resolves: CP7M10

* refactor(base): More Changes to PR 6271

Update free to closeCursor

* refactor(global): use custom quickform class (#6273)

* Cp7 m7 fix code errors and warnings (#6275)

* fix(global): remove warnings and undefined variables

* refactor(core): rework post-upgrade errors

Refactor code not compliant with php7.2

Regarding: CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): call non-static method

in widgets as host-monitoring calls methods CentreonUtils::conditionBuilder and CentreonUtils::operandToMysqlFormat as static but they are non-static

Resolves CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): fix warnings from tests

fix issues as "Only variables should be assigned by reference", "Undefined index", "Methods with the same name as their class will not be constructors in a future version of PHP" and etc.

Resolves CP7M-7

* fix(config): fix variable name (#6276)

Fix incorrectly pushed variable name

* fix(global): load radio buttons default value (#6280)

* Cp7 m24 migrate the installer and update (#6281)

* refactor(install): fix upgrade process

change MySQL library of php requirements and add a check for release notes file

Resolves CP7M-24

* refactor(install): add missing folder and cfg mock

add missing folder `www/install/tmp` and add mock of `www/install/install.conf.php`

Resolves CP7M-24

* refactor(install): Fix smarty and smarty-plugins loading

Resolves problem for unknown smarty plugin. Loads composer-managed smarty.

* Cp7 m7 fix code errors and warnings (#6282)

* fix(global): remove warnings and undefined variables

* refactor(core): rework post-upgrade errors

Refactor code not compliant with php7.2

Regarding: CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): call non-static method

in widgets as host-monitoring calls methods CentreonUtils::conditionBuilder and CentreonUtils::operandToMysqlFormat as static but they are non-static

Resolves CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): fix warnings from tests

fix issues as "Only variables should be assigned by reference", "Undefined index", "Methods with the same name as their class will not be constructors in a future version of PHP" and etc.

Resolves CP7M-7

* fix(global): use quickform and smarty from composer

* fix(global): PHP warnings, notifications and mergeWithInitialValues to return correct result

fix CentreonUtils::mergeWithInitialValues to return result from submitted data
fix PHP warinings and notifications from Host template UI
fix CentreonHosttemplates::getObjectForSelect2 attributes to be the same as the parent method

Resolves CP7M-7

* refactor(base) Fix errors found after running acceptance tests

Fix various problems caused by Smarty and Quickform, detected by acceptance tests.

Regarding CP7M7

* fix(config): fix variable name (#6276)

Fix incorrectly pushed variable name

* refactor(base): add dependency of pear-core and require newer version of PHP (#6284)

add dependency of pear-core-minimal package and requrie at least version 7 of PHP

Resolves CP7M-14

* Cp7 m27 widgets related fixes (#6293)

* fix(global): add checks to db functions and counts

* fix(global): fix PHP`s notifications and warnings

* fix(services): add monitoring fixes for warnings

* fix(global): Undefined variable: upgrade_infosTxt

in upgrade form was missing variable

Resolves CP7M-27

* fix(quickform): fix select2 default data

* refactor(quickformCustom): Change error type of addRule (#6301)

Change fatal error to notice to comply with previous version error type all over the code.

* refactor(quickFormCustom): change error type of applyfilter (#6302)

Change fatal error to notice to comply with previous version error type all over the code.

* fix(global): deprecated function, PHP notices (#6312)

replace using of deprecated each() function with foreach(),
fix several PHP notices related with undefined index

Resolves CP7M-51

* fix(quickform): add previously deleted elements (#6311)

* Cp7 m510 centreon awie (fixes) (#6313)

* fix(global): PHP 7 compatability, deprecated function, PHP notices

replace using of deprecated each() function with foreach(),
fix several PHP notices related with undefined index
fix PHP notices related to undefined index and fix CentreonObject::add compatibility with child objects
set NULL in lower case

Resolves CP7M-51

* fix(global): clean up several PHP warnings (#6314)

* fix(global): clean up several PHP warnings

fix missing variable in pagination view, upgradeForm and service host list
fix requirement of password when auth with token
set TRUE in lower case

Resolves CP7M-54

* Change quickform custom addrule returns (#6332)

* refactor(quickFormCustom): change error type of applyfilter
Change fatal error to notice to comply with previous version error type all over the code.

* refactor(quickform): update quickform custom
stop execution if element not found

* chore(build): update Jenkinsfile.

* fix(build): use /usr/bin/env in shebang instead of direct php path.

* fix(pagination,search): CP7M61 performance data

Fix pagination / search parameters get/post on administration performance data

* fix(pagination,search): CP7M61 performance data

Fix pagination / search parameters get/post on administration performance data

* remove required that got carried over from the merge
kduret pushed a commit that referenced this pull request Jun 20, 2018
* chore(build): use public repository to test

* fix(db): Some PHP warnings in strict mode

* fix(auth): Declaration of method not compatible with parent

* fix(session): Call non-static method

* Add quickform package to composer

* fix docblocks

* fix namespace of Exception class

* fix call to undeclared function \Exception()

* refactor(base): move smarty to composer managed module
remove old smarty lib and add new one to composer requirements. Update smarty plugin folder
to be outside composer module.

Resolves #CP7M-9

* refactor(base): add changed files not inserted in previous commit
Adds to: 546b316

* refactor(global): delete quickform library files

* refactor(global): remove local quickform loading

* refactor(global): fix quickform loading on Monitoring and Configuration

* refactor(global): fix quickform loading on Administration

* refactor(base): replace deprecated Archive_Zip class

replace deprecated Archive_Zip with ZipArchive class from PHP ZIP module and add composer dependency for Archive_Tar

Resolves #CP7M-13

* refactor(base): cleanup the code

* refactor(base): replace Archive_Tar with PharData

replace pear package Archive_Tar with PharData class

Resolves #CP7M-13

* refactor(global): return previous quickform class

* refactor(global): extend quickform from composer

* refactor(base): update php warnings

fix non numeric additions

part of: cp7m10

* refactor(global): cleanum cutom quickform class

* refactor(core): validate views post smarty update

Fixing various errors (not only smarty related) in validated views

Resolves CP7M-10

* Cp7 m15 fix php warnings (#6270)

* fix(base): fix some warnings and deprecations notes

fix double start a session some PHP files,
fix using of undefinded variables,
fix calling of non-static method as static,
fix using of old PEAR DB const DB_FETCHMODE_ASSOC,
remove manual loading of Smarty lib from custom views section
fix advmultiselect warnings and deprecates notes because the library is officially deprecated
fix admin ACL UI -> fix calling of undefined index and calling of non-static method as static

Resolves CP7M-15

* refactor(base): Changes to PR 6271

Update db call, fix post-merge missing db execution call on images

Resolves: CP7M10

* refactor(base): More Changes to PR 6271

Update free to closeCursor

* refactor(global): use custom quickform class (#6273)

* Cp7 m7 fix code errors and warnings (#6275)

* fix(global): remove warnings and undefined variables

* refactor(core): rework post-upgrade errors

Refactor code not compliant with php7.2

Regarding: CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): call non-static method

in widgets as host-monitoring calls methods CentreonUtils::conditionBuilder and CentreonUtils::operandToMysqlFormat as static but they are non-static

Resolves CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): fix warnings from tests

fix issues as "Only variables should be assigned by reference", "Undefined index", "Methods with the same name as their class will not be constructors in a future version of PHP" and etc.

Resolves CP7M-7

* fix(config): fix variable name (#6276)

Fix incorrectly pushed variable name

* fix(global): load radio buttons default value (#6280)

* Cp7 m24 migrate the installer and update (#6281)

* refactor(install): fix upgrade process

change MySQL library of php requirements and add a check for release notes file

Resolves CP7M-24

* refactor(install): add missing folder and cfg mock

add missing folder `www/install/tmp` and add mock of `www/install/install.conf.php`

Resolves CP7M-24

* refactor(install): Fix smarty and smarty-plugins loading

Resolves problem for unknown smarty plugin. Loads composer-managed smarty.

* Cp7 m7 fix code errors and warnings (#6282)

* fix(global): remove warnings and undefined variables

* refactor(core): rework post-upgrade errors

Refactor code not compliant with php7.2

Regarding: CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): call non-static method

in widgets as host-monitoring calls methods CentreonUtils::conditionBuilder and CentreonUtils::operandToMysqlFormat as static but they are non-static

Resolves CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): fix warnings from tests

fix issues as "Only variables should be assigned by reference", "Undefined index", "Methods with the same name as their class will not be constructors in a future version of PHP" and etc.

Resolves CP7M-7

* fix(global): use quickform and smarty from composer

* fix(global): PHP warnings, notifications and mergeWithInitialValues to return correct result

fix CentreonUtils::mergeWithInitialValues to return result from submitted data
fix PHP warinings and notifications from Host template UI
fix CentreonHosttemplates::getObjectForSelect2 attributes to be the same as the parent method

Resolves CP7M-7

* refactor(base) Fix errors found after running acceptance tests

Fix various problems caused by Smarty and Quickform, detected by acceptance tests.

Regarding CP7M7

* fix(config): fix variable name (#6276)

Fix incorrectly pushed variable name

* refactor(base): add dependency of pear-core and require newer version of PHP (#6284)

add dependency of pear-core-minimal package and requrie at least version 7 of PHP

Resolves CP7M-14

* Cp7 m27 widgets related fixes (#6293)

* fix(global): add checks to db functions and counts

* fix(global): fix PHP`s notifications and warnings

* fix(services): add monitoring fixes for warnings

* fix(global): Undefined variable: upgrade_infosTxt

in upgrade form was missing variable

Resolves CP7M-27

* fix(quickform): fix select2 default data

* refactor(quickformCustom): Change error type of addRule (#6301)

Change fatal error to notice to comply with previous version error type all over the code.

* refactor(quickFormCustom): change error type of applyfilter (#6302)

Change fatal error to notice to comply with previous version error type all over the code.

* fix(global): deprecated function, PHP notices (#6312)

replace using of deprecated each() function with foreach(),
fix several PHP notices related with undefined index

Resolves CP7M-51

* fix(quickform): add previously deleted elements (#6311)

* Cp7 m510 centreon awie (fixes) (#6313)

* fix(global): PHP 7 compatability, deprecated function, PHP notices

replace using of deprecated each() function with foreach(),
fix several PHP notices related with undefined index
fix PHP notices related to undefined index and fix CentreonObject::add compatibility with child objects
set NULL in lower case

Resolves CP7M-51

* fix(global): clean up several PHP warnings (#6314)

* fix(global): clean up several PHP warnings

fix missing variable in pagination view, upgradeForm and service host list
fix requirement of password when auth with token
set TRUE in lower case

Resolves CP7M-54

* Change quickform custom addrule returns (#6332)

* refactor(quickFormCustom): change error type of applyfilter
Change fatal error to notice to comply with previous version error type all over the code.

* refactor(quickform): update quickform custom
stop execution if element not found

* chore(build): update Jenkinsfile.

* fix(build): use /usr/bin/env in shebang instead of direct php path.

* fix(pagination,search): CP7M61 performance data

Fix pagination / search parameters get/post on administration performance data

* fix(pagination,search): CP7M61 performance data

Fix pagination / search parameters get/post on administration performance data

* remove required that got carried over from the merge
kduret pushed a commit that referenced this pull request Jun 20, 2018
refactor(core): validate views post smarty update

Fixing various errors (not only smarty related) in validated views

Resolves CP7M-10

Cp7 m15 fix php warnings (#6270)

* fix(base): fix some warnings and deprecations notes

fix double start a session some PHP files,
fix using of undefinded variables,
fix calling of non-static method as static,
fix using of old PEAR DB const DB_FETCHMODE_ASSOC,
remove manual loading of Smarty lib from custom views section
fix advmultiselect warnings and deprecates notes because the library is officially deprecated
fix admin ACL UI -> fix calling of undefined index and calling of non-static method as static

Resolves CP7M-15

refactor(base): Changes to PR 6271

Update db call, fix post-merge missing db execution call on images

Resolves: CP7M10

refactor(base): More Changes to PR 6271

Update free to closeCursor

refactor(global): use custom quickform class (#6273)

Cp7 m7 fix code errors and warnings (#6275)

* fix(global): remove warnings and undefined variables

* refactor(core): rework post-upgrade errors

Refactor code not compliant with php7.2

Regarding: CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): call non-static method

in widgets as host-monitoring calls methods CentreonUtils::conditionBuilder and CentreonUtils::operandToMysqlFormat as static but they are non-static

Resolves CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): fix warnings from tests

fix issues as "Only variables should be assigned by reference", "Undefined index", "Methods with the same name as their class will not be constructors in a future version of PHP" and etc.

Resolves CP7M-7

fix(config): fix variable name (#6276)

Fix incorrectly pushed variable name

fix(global): load radio buttons default value (#6280)

Cp7 m24 migrate the installer and update (#6281)

* refactor(install): fix upgrade process

change MySQL library of php requirements and add a check for release notes file

Resolves CP7M-24

* refactor(install): add missing folder and cfg mock

add missing folder `www/install/tmp` and add mock of `www/install/install.conf.php`

Resolves CP7M-24

* refactor(install): Fix smarty and smarty-plugins loading

Resolves problem for unknown smarty plugin. Loads composer-managed smarty.

Cp7 m7 fix code errors and warnings (#6282)

* fix(global): remove warnings and undefined variables

* refactor(core): rework post-upgrade errors

Refactor code not compliant with php7.2

Regarding: CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): call non-static method

in widgets as host-monitoring calls methods CentreonUtils::conditionBuilder and CentreonUtils::operandToMysqlFormat as static but they are non-static

Resolves CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): fix warnings from tests

fix issues as "Only variables should be assigned by reference", "Undefined index", "Methods with the same name as their class will not be constructors in a future version of PHP" and etc.

Resolves CP7M-7

* fix(global): use quickform and smarty from composer

* fix(global): PHP warnings, notifications and mergeWithInitialValues to return correct result

fix CentreonUtils::mergeWithInitialValues to return result from submitted data
fix PHP warinings and notifications from Host template UI
fix CentreonHosttemplates::getObjectForSelect2 attributes to be the same as the parent method

Resolves CP7M-7

* refactor(base) Fix errors found after running acceptance tests

Fix various problems caused by Smarty and Quickform, detected by acceptance tests.

Regarding CP7M7

* fix(config): fix variable name (#6276)

Fix incorrectly pushed variable name

refactor(base): add dependency of pear-core and require newer version of PHP (#6284)

add dependency of pear-core-minimal package and requrie at least version 7 of PHP

Resolves CP7M-14

Cp7 m27 widgets related fixes (#6293)

* fix(global): add checks to db functions and counts

* fix(global): fix PHP`s notifications and warnings

* fix(services): add monitoring fixes for warnings

* fix(global): Undefined variable: upgrade_infosTxt

in upgrade form was missing variable

Resolves CP7M-27

* fix(quickform): fix select2 default data

refactor(quickformCustom): Change error type of addRule (#6301)

Change fatal error to notice to comply with previous version error type all over the code.

refactor(quickFormCustom): change error type of applyfilter (#6302)

Change fatal error to notice to comply with previous version error type all over the code.

fix(global): deprecated function, PHP notices (#6312)

replace using of deprecated each() function with foreach(),
fix several PHP notices related with undefined index

Resolves CP7M-51

fix(quickform): add previously deleted elements (#6311)

Cp7 m510 centreon awie (fixes) (#6313)

* fix(global): PHP 7 compatability, deprecated function, PHP notices

replace using of deprecated each() function with foreach(),
fix several PHP notices related with undefined index
fix PHP notices related to undefined index and fix CentreonObject::add compatibility with child objects
set NULL in lower case

Resolves CP7M-51

fix(global): clean up several PHP warnings (#6314)

* fix(global): clean up several PHP warnings

fix missing variable in pagination view, upgradeForm and service host list
fix requirement of password when auth with token
set TRUE in lower case

Resolves CP7M-54

Change quickform custom addrule returns (#6332)

* refactor(quickFormCustom): change error type of applyfilter
Change fatal error to notice to comply with previous version error type all over the code.

* refactor(quickform): update quickform custom
stop execution if element not found
kduret pushed a commit that referenced this pull request Jun 20, 2018
* chore(build): use public repository to test

* fix(db): Some PHP warnings in strict mode

* fix(auth): Declaration of method not compatible with parent

* fix(session): Call non-static method

* Add quickform package to composer

* fix docblocks

* fix namespace of Exception class

* fix call to undeclared function \Exception()

* refactor(base): move smarty to composer managed module
remove old smarty lib and add new one to composer requirements. Update smarty plugin folder
to be outside composer module.

Resolves #CP7M-9

* refactor(base): add changed files not inserted in previous commit
Adds to: 546b316

* refactor(global): delete quickform library files

* refactor(global): remove local quickform loading

* refactor(global): fix quickform loading on Monitoring and Configuration

* refactor(global): fix quickform loading on Administration

* refactor(base): replace deprecated Archive_Zip class

replace deprecated Archive_Zip with ZipArchive class from PHP ZIP module and add composer dependency for Archive_Tar

Resolves #CP7M-13

* refactor(base): cleanup the code

* refactor(base): replace Archive_Tar with PharData

replace pear package Archive_Tar with PharData class

Resolves #CP7M-13

* refactor(global): return previous quickform class

* refactor(global): extend quickform from composer

* refactor(base): update php warnings

fix non numeric additions

part of: cp7m10

* refactor(global): cleanum cutom quickform class

* refactor(core): validate views post smarty update

Fixing various errors (not only smarty related) in validated views

Resolves CP7M-10

* Cp7 m15 fix php warnings (#6270)

* fix(base): fix some warnings and deprecations notes

fix double start a session some PHP files,
fix using of undefinded variables,
fix calling of non-static method as static,
fix using of old PEAR DB const DB_FETCHMODE_ASSOC,
remove manual loading of Smarty lib from custom views section
fix advmultiselect warnings and deprecates notes because the library is officially deprecated
fix admin ACL UI -> fix calling of undefined index and calling of non-static method as static

Resolves CP7M-15

* refactor(base): Changes to PR 6271

Update db call, fix post-merge missing db execution call on images

Resolves: CP7M10

* refactor(base): More Changes to PR 6271

Update free to closeCursor

* refactor(global): use custom quickform class (#6273)

* Cp7 m7 fix code errors and warnings (#6275)

* fix(global): remove warnings and undefined variables

* refactor(core): rework post-upgrade errors

Refactor code not compliant with php7.2

Regarding: CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): call non-static method

in widgets as host-monitoring calls methods CentreonUtils::conditionBuilder and CentreonUtils::operandToMysqlFormat as static but they are non-static

Resolves CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): fix warnings from tests

fix issues as "Only variables should be assigned by reference", "Undefined index", "Methods with the same name as their class will not be constructors in a future version of PHP" and etc.

Resolves CP7M-7

* fix(config): fix variable name (#6276)

Fix incorrectly pushed variable name

* fix(global): load radio buttons default value (#6280)

* Cp7 m24 migrate the installer and update (#6281)

* refactor(install): fix upgrade process

change MySQL library of php requirements and add a check for release notes file

Resolves CP7M-24

* refactor(install): add missing folder and cfg mock

add missing folder `www/install/tmp` and add mock of `www/install/install.conf.php`

Resolves CP7M-24

* refactor(install): Fix smarty and smarty-plugins loading

Resolves problem for unknown smarty plugin. Loads composer-managed smarty.

* Cp7 m7 fix code errors and warnings (#6282)

* fix(global): remove warnings and undefined variables

* refactor(core): rework post-upgrade errors

Refactor code not compliant with php7.2

Regarding: CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): call non-static method

in widgets as host-monitoring calls methods CentreonUtils::conditionBuilder and CentreonUtils::operandToMysqlFormat as static but they are non-static

Resolves CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): fix warnings from tests

fix issues as "Only variables should be assigned by reference", "Undefined index", "Methods with the same name as their class will not be constructors in a future version of PHP" and etc.

Resolves CP7M-7

* fix(global): use quickform and smarty from composer

* fix(global): PHP warnings, notifications and mergeWithInitialValues to return correct result

fix CentreonUtils::mergeWithInitialValues to return result from submitted data
fix PHP warinings and notifications from Host template UI
fix CentreonHosttemplates::getObjectForSelect2 attributes to be the same as the parent method

Resolves CP7M-7

* refactor(base) Fix errors found after running acceptance tests

Fix various problems caused by Smarty and Quickform, detected by acceptance tests.

Regarding CP7M7

* fix(config): fix variable name (#6276)

Fix incorrectly pushed variable name

* refactor(base): add dependency of pear-core and require newer version of PHP (#6284)

add dependency of pear-core-minimal package and requrie at least version 7 of PHP

Resolves CP7M-14

* Cp7 m27 widgets related fixes (#6293)

* fix(global): add checks to db functions and counts

* fix(global): fix PHP`s notifications and warnings

* fix(services): add monitoring fixes for warnings

* fix(global): Undefined variable: upgrade_infosTxt

in upgrade form was missing variable

Resolves CP7M-27

* fix(quickform): fix select2 default data

* refactor(quickformCustom): Change error type of addRule (#6301)

Change fatal error to notice to comply with previous version error type all over the code.

* refactor(quickFormCustom): change error type of applyfilter (#6302)

Change fatal error to notice to comply with previous version error type all over the code.

* fix(global): deprecated function, PHP notices (#6312)

replace using of deprecated each() function with foreach(),
fix several PHP notices related with undefined index

Resolves CP7M-51

* fix(quickform): add previously deleted elements (#6311)

* Cp7 m510 centreon awie (fixes) (#6313)

* fix(global): PHP 7 compatability, deprecated function, PHP notices

replace using of deprecated each() function with foreach(),
fix several PHP notices related with undefined index
fix PHP notices related to undefined index and fix CentreonObject::add compatibility with child objects
set NULL in lower case

Resolves CP7M-51

* fix(global): clean up several PHP warnings (#6314)

* fix(global): clean up several PHP warnings

fix missing variable in pagination view, upgradeForm and service host list
fix requirement of password when auth with token
set TRUE in lower case

Resolves CP7M-54

* Change quickform custom addrule returns (#6332)

* refactor(quickFormCustom): change error type of applyfilter
Change fatal error to notice to comply with previous version error type all over the code.

* refactor(quickform): update quickform custom
stop execution if element not found

* chore(build): update Jenkinsfile.

* fix(build): use /usr/bin/env in shebang instead of direct php path.

* fix(pagination,search): CP7M61 performance data

Fix pagination / search parameters get/post on administration performance data

* fix(pagination,search): CP7M61 performance data

Fix pagination / search parameters get/post on administration performance data

* remove required that got carried over from the merge
kduret pushed a commit that referenced this pull request Jun 20, 2018
fix(auth): Declaration of method not compatible with parent

fix(session): Call non-static method

Add quickform package to composer

fix docblocks

fix namespace of Exception class

fix call to undeclared function \Exception()

refactor(base): move smarty to composer managed module
remove old smarty lib and add new one to composer requirements. Update smarty plugin folder
to be outside composer module.

Resolves #CP7M-9

refactor(base): add changed files not inserted in previous commit
Adds to: 546b316

refactor(global): delete quickform library files

refactor(global): remove local quickform loading

refactor(global): fix quickform loading on Monitoring and Configuration

refactor(global): fix quickform loading on Administration

refactor(base): replace deprecated Archive_Zip class

replace deprecated Archive_Zip with ZipArchive class from PHP ZIP module and add composer dependency for Archive_Tar

Resolves #CP7M-13

refactor(base): cleanup the code

refactor(base): replace Archive_Tar with PharData

replace pear package Archive_Tar with PharData class

Resolves #CP7M-13

refactor(global): return previous quickform class

refactor(global): extend quickform from composer

refactor(base): update php warnings

fix non numeric additions

part of: cp7m10

refactor(global): cleanum cutom quickform class

refactor(core): validate views post smarty update

Fixing various errors (not only smarty related) in validated views

Resolves CP7M-10

Cp7 m15 fix php warnings (#6270)

* fix(base): fix some warnings and deprecations notes

fix double start a session some PHP files,
fix using of undefinded variables,
fix calling of non-static method as static,
fix using of old PEAR DB const DB_FETCHMODE_ASSOC,
remove manual loading of Smarty lib from custom views section
fix advmultiselect warnings and deprecates notes because the library is officially deprecated
fix admin ACL UI -> fix calling of undefined index and calling of non-static method as static

Resolves CP7M-15

refactor(base): Changes to PR 6271

Update db call, fix post-merge missing db execution call on images

Resolves: CP7M10

refactor(base): More Changes to PR 6271

Update free to closeCursor

refactor(global): use custom quickform class (#6273)

Cp7 m7 fix code errors and warnings (#6275)

* fix(global): remove warnings and undefined variables

* refactor(core): rework post-upgrade errors

Refactor code not compliant with php7.2

Regarding: CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): call non-static method

in widgets as host-monitoring calls methods CentreonUtils::conditionBuilder and CentreonUtils::operandToMysqlFormat as static but they are non-static

Resolves CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): fix warnings from tests

fix issues as "Only variables should be assigned by reference", "Undefined index", "Methods with the same name as their class will not be constructors in a future version of PHP" and etc.

Resolves CP7M-7

fix(config): fix variable name (#6276)

Fix incorrectly pushed variable name

fix(global): load radio buttons default value (#6280)

Cp7 m24 migrate the installer and update (#6281)

* refactor(install): fix upgrade process

change MySQL library of php requirements and add a check for release notes file

Resolves CP7M-24

* refactor(install): add missing folder and cfg mock

add missing folder `www/install/tmp` and add mock of `www/install/install.conf.php`

Resolves CP7M-24

* refactor(install): Fix smarty and smarty-plugins loading

Resolves problem for unknown smarty plugin. Loads composer-managed smarty.

Cp7 m7 fix code errors and warnings (#6282)

* fix(global): remove warnings and undefined variables

* refactor(core): rework post-upgrade errors

Refactor code not compliant with php7.2

Regarding: CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): call non-static method

in widgets as host-monitoring calls methods CentreonUtils::conditionBuilder and CentreonUtils::operandToMysqlFormat as static but they are non-static

Resolves CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): fix warnings from tests

fix issues as "Only variables should be assigned by reference", "Undefined index", "Methods with the same name as their class will not be constructors in a future version of PHP" and etc.

Resolves CP7M-7

* fix(global): use quickform and smarty from composer

* fix(global): PHP warnings, notifications and mergeWithInitialValues to return correct result

fix CentreonUtils::mergeWithInitialValues to return result from submitted data
fix PHP warinings and notifications from Host template UI
fix CentreonHosttemplates::getObjectForSelect2 attributes to be the same as the parent method

Resolves CP7M-7

* refactor(base) Fix errors found after running acceptance tests

Fix various problems caused by Smarty and Quickform, detected by acceptance tests.

Regarding CP7M7

* fix(config): fix variable name (#6276)

Fix incorrectly pushed variable name

refactor(base): add dependency of pear-core and require newer version of PHP (#6284)

add dependency of pear-core-minimal package and requrie at least version 7 of PHP

Resolves CP7M-14

Cp7 m27 widgets related fixes (#6293)

* fix(global): add checks to db functions and counts

* fix(global): fix PHP`s notifications and warnings

* fix(services): add monitoring fixes for warnings

* fix(global): Undefined variable: upgrade_infosTxt

in upgrade form was missing variable

Resolves CP7M-27

* fix(quickform): fix select2 default data

refactor(quickformCustom): Change error type of addRule (#6301)

Change fatal error to notice to comply with previous version error type all over the code.

refactor(quickFormCustom): change error type of applyfilter (#6302)

Change fatal error to notice to comply with previous version error type all over the code.

fix(global): deprecated function, PHP notices (#6312)

replace using of deprecated each() function with foreach(),
fix several PHP notices related with undefined index

Resolves CP7M-51

fix(quickform): add previously deleted elements (#6311)

Cp7 m510 centreon awie (fixes) (#6313)

* fix(global): PHP 7 compatability, deprecated function, PHP notices

replace using of deprecated each() function with foreach(),
fix several PHP notices related with undefined index
fix PHP notices related to undefined index and fix CentreonObject::add compatibility with child objects
set NULL in lower case

Resolves CP7M-51

fix(global): clean up several PHP warnings (#6314)

* fix(global): clean up several PHP warnings

fix missing variable in pagination view, upgradeForm and service host list
fix requirement of password when auth with token
set TRUE in lower case

Resolves CP7M-54

Change quickform custom addrule returns (#6332)

* refactor(quickFormCustom): change error type of applyfilter
Change fatal error to notice to comply with previous version error type all over the code.

* refactor(quickform): update quickform custom
stop execution if element not found
kduret pushed a commit that referenced this pull request Jun 20, 2018
* chore(build): use public repository to test

* fix(db): Some PHP warnings in strict mode

* fix(auth): Declaration of method not compatible with parent

* fix(session): Call non-static method

* Add quickform package to composer

* fix docblocks

* fix namespace of Exception class

* fix call to undeclared function \Exception()

* refactor(base): move smarty to composer managed module
remove old smarty lib and add new one to composer requirements. Update smarty plugin folder
to be outside composer module.

Resolves #CP7M-9

* refactor(base): add changed files not inserted in previous commit
Adds to: 546b316

* refactor(global): delete quickform library files

* refactor(global): remove local quickform loading

* refactor(global): fix quickform loading on Monitoring and Configuration

* refactor(global): fix quickform loading on Administration

* refactor(base): replace deprecated Archive_Zip class

replace deprecated Archive_Zip with ZipArchive class from PHP ZIP module and add composer dependency for Archive_Tar

Resolves #CP7M-13

* refactor(base): cleanup the code

* refactor(base): replace Archive_Tar with PharData

replace pear package Archive_Tar with PharData class

Resolves #CP7M-13

* refactor(global): return previous quickform class

* refactor(global): extend quickform from composer

* refactor(base): update php warnings

fix non numeric additions

part of: cp7m10

* refactor(global): cleanum cutom quickform class

* refactor(core): validate views post smarty update

Fixing various errors (not only smarty related) in validated views

Resolves CP7M-10

* Cp7 m15 fix php warnings (#6270)

* fix(base): fix some warnings and deprecations notes

fix double start a session some PHP files,
fix using of undefinded variables,
fix calling of non-static method as static,
fix using of old PEAR DB const DB_FETCHMODE_ASSOC,
remove manual loading of Smarty lib from custom views section
fix advmultiselect warnings and deprecates notes because the library is officially deprecated
fix admin ACL UI -> fix calling of undefined index and calling of non-static method as static

Resolves CP7M-15

* refactor(base): Changes to PR 6271

Update db call, fix post-merge missing db execution call on images

Resolves: CP7M10

* refactor(base): More Changes to PR 6271

Update free to closeCursor

* refactor(global): use custom quickform class (#6273)

* Cp7 m7 fix code errors and warnings (#6275)

* fix(global): remove warnings and undefined variables

* refactor(core): rework post-upgrade errors

Refactor code not compliant with php7.2

Regarding: CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): call non-static method

in widgets as host-monitoring calls methods CentreonUtils::conditionBuilder and CentreonUtils::operandToMysqlFormat as static but they are non-static

Resolves CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): fix warnings from tests

fix issues as "Only variables should be assigned by reference", "Undefined index", "Methods with the same name as their class will not be constructors in a future version of PHP" and etc.

Resolves CP7M-7

* fix(config): fix variable name (#6276)

Fix incorrectly pushed variable name

* fix(global): load radio buttons default value (#6280)

* Cp7 m24 migrate the installer and update (#6281)

* refactor(install): fix upgrade process

change MySQL library of php requirements and add a check for release notes file

Resolves CP7M-24

* refactor(install): add missing folder and cfg mock

add missing folder `www/install/tmp` and add mock of `www/install/install.conf.php`

Resolves CP7M-24

* refactor(install): Fix smarty and smarty-plugins loading

Resolves problem for unknown smarty plugin. Loads composer-managed smarty.

* Cp7 m7 fix code errors and warnings (#6282)

* fix(global): remove warnings and undefined variables

* refactor(core): rework post-upgrade errors

Refactor code not compliant with php7.2

Regarding: CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): call non-static method

in widgets as host-monitoring calls methods CentreonUtils::conditionBuilder and CentreonUtils::operandToMysqlFormat as static but they are non-static

Resolves CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): fix warnings from tests

fix issues as "Only variables should be assigned by reference", "Undefined index", "Methods with the same name as their class will not be constructors in a future version of PHP" and etc.

Resolves CP7M-7

* fix(global): use quickform and smarty from composer

* fix(global): PHP warnings, notifications and mergeWithInitialValues to return correct result

fix CentreonUtils::mergeWithInitialValues to return result from submitted data
fix PHP warinings and notifications from Host template UI
fix CentreonHosttemplates::getObjectForSelect2 attributes to be the same as the parent method

Resolves CP7M-7

* refactor(base) Fix errors found after running acceptance tests

Fix various problems caused by Smarty and Quickform, detected by acceptance tests.

Regarding CP7M7

* fix(config): fix variable name (#6276)

Fix incorrectly pushed variable name

* refactor(base): add dependency of pear-core and require newer version of PHP (#6284)

add dependency of pear-core-minimal package and requrie at least version 7 of PHP

Resolves CP7M-14

* Cp7 m27 widgets related fixes (#6293)

* fix(global): add checks to db functions and counts

* fix(global): fix PHP`s notifications and warnings

* fix(services): add monitoring fixes for warnings

* fix(global): Undefined variable: upgrade_infosTxt

in upgrade form was missing variable

Resolves CP7M-27

* fix(quickform): fix select2 default data

* refactor(quickformCustom): Change error type of addRule (#6301)

Change fatal error to notice to comply with previous version error type all over the code.

* refactor(quickFormCustom): change error type of applyfilter (#6302)

Change fatal error to notice to comply with previous version error type all over the code.

* fix(global): deprecated function, PHP notices (#6312)

replace using of deprecated each() function with foreach(),
fix several PHP notices related with undefined index

Resolves CP7M-51

* fix(quickform): add previously deleted elements (#6311)

* Cp7 m510 centreon awie (fixes) (#6313)

* fix(global): PHP 7 compatability, deprecated function, PHP notices

replace using of deprecated each() function with foreach(),
fix several PHP notices related with undefined index
fix PHP notices related to undefined index and fix CentreonObject::add compatibility with child objects
set NULL in lower case

Resolves CP7M-51

* fix(global): clean up several PHP warnings (#6314)

* fix(global): clean up several PHP warnings

fix missing variable in pagination view, upgradeForm and service host list
fix requirement of password when auth with token
set TRUE in lower case

Resolves CP7M-54

* Change quickform custom addrule returns (#6332)

* refactor(quickFormCustom): change error type of applyfilter
Change fatal error to notice to comply with previous version error type all over the code.

* refactor(quickform): update quickform custom
stop execution if element not found

* chore(build): update Jenkinsfile.

* fix(build): use /usr/bin/env in shebang instead of direct php path.

* fix(pagination,search): CP7M61 performance data

Fix pagination / search parameters get/post on administration performance data

* fix(pagination,search): CP7M61 performance data

Fix pagination / search parameters get/post on administration performance data

* remove required that got carried over from the merge
kduret pushed a commit that referenced this pull request Jun 20, 2018
fix(auth): Declaration of method not compatible with parent

fix(session): Call non-static method

Add quickform package to composer

fix docblocks

fix namespace of Exception class

fix call to undeclared function \Exception()

refactor(base): move smarty to composer managed module
remove old smarty lib and add new one to composer requirements. Update smarty plugin folder
to be outside composer module.

Resolves #CP7M-9

refactor(base): add changed files not inserted in previous commit
Adds to: 546b316

refactor(global): delete quickform library files

refactor(global): remove local quickform loading

refactor(global): fix quickform loading on Monitoring and Configuration

refactor(global): fix quickform loading on Administration

refactor(base): replace deprecated Archive_Zip class

replace deprecated Archive_Zip with ZipArchive class from PHP ZIP module and add composer dependency for Archive_Tar

Resolves #CP7M-13

refactor(base): cleanup the code

refactor(base): replace Archive_Tar with PharData

replace pear package Archive_Tar with PharData class

Resolves #CP7M-13

refactor(global): return previous quickform class

refactor(global): extend quickform from composer

refactor(base): update php warnings

fix non numeric additions

part of: cp7m10

refactor(global): cleanum cutom quickform class

refactor(core): validate views post smarty update

Fixing various errors (not only smarty related) in validated views

Resolves CP7M-10

Cp7 m15 fix php warnings (#6270)

* fix(base): fix some warnings and deprecations notes

fix double start a session some PHP files,
fix using of undefinded variables,
fix calling of non-static method as static,
fix using of old PEAR DB const DB_FETCHMODE_ASSOC,
remove manual loading of Smarty lib from custom views section
fix advmultiselect warnings and deprecates notes because the library is officially deprecated
fix admin ACL UI -> fix calling of undefined index and calling of non-static method as static

Resolves CP7M-15

refactor(base): Changes to PR 6271

Update db call, fix post-merge missing db execution call on images

Resolves: CP7M10

refactor(base): More Changes to PR 6271

Update free to closeCursor

refactor(global): use custom quickform class (#6273)

Cp7 m7 fix code errors and warnings (#6275)

* fix(global): remove warnings and undefined variables

* refactor(core): rework post-upgrade errors

Refactor code not compliant with php7.2

Regarding: CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): call non-static method

in widgets as host-monitoring calls methods CentreonUtils::conditionBuilder and CentreonUtils::operandToMysqlFormat as static but they are non-static

Resolves CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): fix warnings from tests

fix issues as "Only variables should be assigned by reference", "Undefined index", "Methods with the same name as their class will not be constructors in a future version of PHP" and etc.

Resolves CP7M-7

fix(config): fix variable name (#6276)

Fix incorrectly pushed variable name

fix(global): load radio buttons default value (#6280)

Cp7 m24 migrate the installer and update (#6281)

* refactor(install): fix upgrade process

change MySQL library of php requirements and add a check for release notes file

Resolves CP7M-24

* refactor(install): add missing folder and cfg mock

add missing folder `www/install/tmp` and add mock of `www/install/install.conf.php`

Resolves CP7M-24

* refactor(install): Fix smarty and smarty-plugins loading

Resolves problem for unknown smarty plugin. Loads composer-managed smarty.

Cp7 m7 fix code errors and warnings (#6282)

* fix(global): remove warnings and undefined variables

* refactor(core): rework post-upgrade errors

Refactor code not compliant with php7.2

Regarding: CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): call non-static method

in widgets as host-monitoring calls methods CentreonUtils::conditionBuilder and CentreonUtils::operandToMysqlFormat as static but they are non-static

Resolves CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): fix warnings from tests

fix issues as "Only variables should be assigned by reference", "Undefined index", "Methods with the same name as their class will not be constructors in a future version of PHP" and etc.

Resolves CP7M-7

* fix(global): use quickform and smarty from composer

* fix(global): PHP warnings, notifications and mergeWithInitialValues to return correct result

fix CentreonUtils::mergeWithInitialValues to return result from submitted data
fix PHP warinings and notifications from Host template UI
fix CentreonHosttemplates::getObjectForSelect2 attributes to be the same as the parent method

Resolves CP7M-7

* refactor(base) Fix errors found after running acceptance tests

Fix various problems caused by Smarty and Quickform, detected by acceptance tests.

Regarding CP7M7

* fix(config): fix variable name (#6276)

Fix incorrectly pushed variable name

refactor(base): add dependency of pear-core and require newer version of PHP (#6284)

add dependency of pear-core-minimal package and requrie at least version 7 of PHP

Resolves CP7M-14

Cp7 m27 widgets related fixes (#6293)

* fix(global): add checks to db functions and counts

* fix(global): fix PHP`s notifications and warnings

* fix(services): add monitoring fixes for warnings

* fix(global): Undefined variable: upgrade_infosTxt

in upgrade form was missing variable

Resolves CP7M-27

* fix(quickform): fix select2 default data

refactor(quickformCustom): Change error type of addRule (#6301)

Change fatal error to notice to comply with previous version error type all over the code.

refactor(quickFormCustom): change error type of applyfilter (#6302)

Change fatal error to notice to comply with previous version error type all over the code.

fix(global): deprecated function, PHP notices (#6312)

replace using of deprecated each() function with foreach(),
fix several PHP notices related with undefined index

Resolves CP7M-51

fix(quickform): add previously deleted elements (#6311)

Cp7 m510 centreon awie (fixes) (#6313)

* fix(global): PHP 7 compatability, deprecated function, PHP notices

replace using of deprecated each() function with foreach(),
fix several PHP notices related with undefined index
fix PHP notices related to undefined index and fix CentreonObject::add compatibility with child objects
set NULL in lower case

Resolves CP7M-51

fix(global): clean up several PHP warnings (#6314)

* fix(global): clean up several PHP warnings

fix missing variable in pagination view, upgradeForm and service host list
fix requirement of password when auth with token
set TRUE in lower case

Resolves CP7M-54

Change quickform custom addrule returns (#6332)

* refactor(quickFormCustom): change error type of applyfilter
Change fatal error to notice to comply with previous version error type all over the code.

* refactor(quickform): update quickform custom
stop execution if element not found

fix(api): API and CLAPI testing (#6360)

disable all PHP errors in CLAPI (bin/centreon, api/index.php, api/internal.php)
add interface and trait instead checking for method
add missing arguments in Factory constructor
remove loading of centreon.conf.php when bootstrap.php is in use
add moduleId in centreon_administration_module when use methods for upgrading and removing a module
fix undefined variable in centreonDependency.class.php
fix undefined offset in centreonHostGroup.class.php
use sendResult instead sendJson in class CentreonWebService
add default status if missing in traps list

Resolves CP7M-64

Php7 migration clapi (#6368)

* fix(export): Filter type work with CG

* fix(export): Select specific HC resource filters now

* fix(clapi): apply filters on service category export

* refacto(clapi): refacto export of centreon clapi

* fix(clapi) dependency injector

* fix(clapi) compatibility parent/child

* fix(clapi) order export

* fix(clapi) clean unused local variable
kduret pushed a commit that referenced this pull request Jun 20, 2018
* chore(build): use public repository to test

* fix(db): Some PHP warnings in strict mode

* fix(auth): Declaration of method not compatible with parent

* fix(session): Call non-static method

* Add quickform package to composer

* fix docblocks

* fix namespace of Exception class

* fix call to undeclared function \Exception()

* refactor(base): move smarty to composer managed module
remove old smarty lib and add new one to composer requirements. Update smarty plugin folder
to be outside composer module.

Resolves #CP7M-9

* refactor(base): add changed files not inserted in previous commit
Adds to: 546b316

* refactor(global): delete quickform library files

* refactor(global): remove local quickform loading

* refactor(global): fix quickform loading on Monitoring and Configuration

* refactor(global): fix quickform loading on Administration

* refactor(base): replace deprecated Archive_Zip class

replace deprecated Archive_Zip with ZipArchive class from PHP ZIP module and add composer dependency for Archive_Tar

Resolves #CP7M-13

* refactor(base): cleanup the code

* refactor(base): replace Archive_Tar with PharData

replace pear package Archive_Tar with PharData class

Resolves #CP7M-13

* refactor(global): return previous quickform class

* refactor(global): extend quickform from composer

* refactor(base): update php warnings

fix non numeric additions

part of: cp7m10

* refactor(global): cleanum cutom quickform class

* refactor(core): validate views post smarty update

Fixing various errors (not only smarty related) in validated views

Resolves CP7M-10

* Cp7 m15 fix php warnings (#6270)

* fix(base): fix some warnings and deprecations notes

fix double start a session some PHP files,
fix using of undefinded variables,
fix calling of non-static method as static,
fix using of old PEAR DB const DB_FETCHMODE_ASSOC,
remove manual loading of Smarty lib from custom views section
fix advmultiselect warnings and deprecates notes because the library is officially deprecated
fix admin ACL UI -> fix calling of undefined index and calling of non-static method as static

Resolves CP7M-15

* refactor(base): Changes to PR 6271

Update db call, fix post-merge missing db execution call on images

Resolves: CP7M10

* refactor(base): More Changes to PR 6271

Update free to closeCursor

* refactor(global): use custom quickform class (#6273)

* Cp7 m7 fix code errors and warnings (#6275)

* fix(global): remove warnings and undefined variables

* refactor(core): rework post-upgrade errors

Refactor code not compliant with php7.2

Regarding: CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): call non-static method

in widgets as host-monitoring calls methods CentreonUtils::conditionBuilder and CentreonUtils::operandToMysqlFormat as static but they are non-static

Resolves CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): fix warnings from tests

fix issues as "Only variables should be assigned by reference", "Undefined index", "Methods with the same name as their class will not be constructors in a future version of PHP" and etc.

Resolves CP7M-7

* fix(config): fix variable name (#6276)

Fix incorrectly pushed variable name

* fix(global): load radio buttons default value (#6280)

* Cp7 m24 migrate the installer and update (#6281)

* refactor(install): fix upgrade process

change MySQL library of php requirements and add a check for release notes file

Resolves CP7M-24

* refactor(install): add missing folder and cfg mock

add missing folder `www/install/tmp` and add mock of `www/install/install.conf.php`

Resolves CP7M-24

* refactor(install): Fix smarty and smarty-plugins loading

Resolves problem for unknown smarty plugin. Loads composer-managed smarty.

* Cp7 m7 fix code errors and warnings (#6282)

* fix(global): remove warnings and undefined variables

* refactor(core): rework post-upgrade errors

Refactor code not compliant with php7.2

Regarding: CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): call non-static method

in widgets as host-monitoring calls methods CentreonUtils::conditionBuilder and CentreonUtils::operandToMysqlFormat as static but they are non-static

Resolves CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): fix warnings from tests

fix issues as "Only variables should be assigned by reference", "Undefined index", "Methods with the same name as their class will not be constructors in a future version of PHP" and etc.

Resolves CP7M-7

* fix(global): use quickform and smarty from composer

* fix(global): PHP warnings, notifications and mergeWithInitialValues to return correct result

fix CentreonUtils::mergeWithInitialValues to return result from submitted data
fix PHP warinings and notifications from Host template UI
fix CentreonHosttemplates::getObjectForSelect2 attributes to be the same as the parent method

Resolves CP7M-7

* refactor(base) Fix errors found after running acceptance tests

Fix various problems caused by Smarty and Quickform, detected by acceptance tests.

Regarding CP7M7

* fix(config): fix variable name (#6276)

Fix incorrectly pushed variable name

* refactor(base): add dependency of pear-core and require newer version of PHP (#6284)

add dependency of pear-core-minimal package and requrie at least version 7 of PHP

Resolves CP7M-14

* Cp7 m27 widgets related fixes (#6293)

* fix(global): add checks to db functions and counts

* fix(global): fix PHP`s notifications and warnings

* fix(services): add monitoring fixes for warnings

* fix(global): Undefined variable: upgrade_infosTxt

in upgrade form was missing variable

Resolves CP7M-27

* fix(quickform): fix select2 default data

* refactor(quickformCustom): Change error type of addRule (#6301)

Change fatal error to notice to comply with previous version error type all over the code.

* refactor(quickFormCustom): change error type of applyfilter (#6302)

Change fatal error to notice to comply with previous version error type all over the code.

* fix(global): deprecated function, PHP notices (#6312)

replace using of deprecated each() function with foreach(),
fix several PHP notices related with undefined index

Resolves CP7M-51

* fix(quickform): add previously deleted elements (#6311)

* Cp7 m510 centreon awie (fixes) (#6313)

* fix(global): PHP 7 compatability, deprecated function, PHP notices

replace using of deprecated each() function with foreach(),
fix several PHP notices related with undefined index
fix PHP notices related to undefined index and fix CentreonObject::add compatibility with child objects
set NULL in lower case

Resolves CP7M-51

* fix(global): clean up several PHP warnings (#6314)

* fix(global): clean up several PHP warnings

fix missing variable in pagination view, upgradeForm and service host list
fix requirement of password when auth with token
set TRUE in lower case

Resolves CP7M-54

* Change quickform custom addrule returns (#6332)

* refactor(quickFormCustom): change error type of applyfilter
Change fatal error to notice to comply with previous version error type all over the code.

* refactor(quickform): update quickform custom
stop execution if element not found

* chore(build): update Jenkinsfile.

* fix(build): use /usr/bin/env in shebang instead of direct php path.

* fix(pagination,search): CP7M61 performance data

Fix pagination / search parameters get/post on administration performance data

* fix(pagination,search): CP7M61 performance data

Fix pagination / search parameters get/post on administration performance data

* remove required that got carried over from the merge
kduret pushed a commit that referenced this pull request Jun 20, 2018
fix(auth): Declaration of method not compatible with parent

fix(session): Call non-static method

Add quickform package to composer

fix docblocks

fix namespace of Exception class

fix call to undeclared function \Exception()

refactor(base): move smarty to composer managed module
remove old smarty lib and add new one to composer requirements. Update smarty plugin folder
to be outside composer module.

Resolves #CP7M-9

refactor(base): add changed files not inserted in previous commit
Adds to: 546b316

refactor(global): delete quickform library files

refactor(global): remove local quickform loading

refactor(global): fix quickform loading on Monitoring and Configuration

refactor(global): fix quickform loading on Administration

refactor(base): replace deprecated Archive_Zip class

replace deprecated Archive_Zip with ZipArchive class from PHP ZIP module and add composer dependency for Archive_Tar

Resolves #CP7M-13

refactor(base): cleanup the code

refactor(base): replace Archive_Tar with PharData

replace pear package Archive_Tar with PharData class

Resolves #CP7M-13

refactor(global): return previous quickform class

refactor(global): extend quickform from composer

refactor(base): update php warnings

fix non numeric additions

part of: cp7m10

refactor(global): cleanum cutom quickform class

refactor(core): validate views post smarty update

Fixing various errors (not only smarty related) in validated views

Resolves CP7M-10

Cp7 m15 fix php warnings (#6270)

* fix(base): fix some warnings and deprecations notes

fix double start a session some PHP files,
fix using of undefinded variables,
fix calling of non-static method as static,
fix using of old PEAR DB const DB_FETCHMODE_ASSOC,
remove manual loading of Smarty lib from custom views section
fix advmultiselect warnings and deprecates notes because the library is officially deprecated
fix admin ACL UI -> fix calling of undefined index and calling of non-static method as static

Resolves CP7M-15

refactor(base): Changes to PR 6271

Update db call, fix post-merge missing db execution call on images

Resolves: CP7M10

refactor(base): More Changes to PR 6271

Update free to closeCursor

refactor(global): use custom quickform class (#6273)

Cp7 m7 fix code errors and warnings (#6275)

* fix(global): remove warnings and undefined variables

* refactor(core): rework post-upgrade errors

Refactor code not compliant with php7.2

Regarding: CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): call non-static method

in widgets as host-monitoring calls methods CentreonUtils::conditionBuilder and CentreonUtils::operandToMysqlFormat as static but they are non-static

Resolves CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): fix warnings from tests

fix issues as "Only variables should be assigned by reference", "Undefined index", "Methods with the same name as their class will not be constructors in a future version of PHP" and etc.

Resolves CP7M-7

fix(config): fix variable name (#6276)

Fix incorrectly pushed variable name

fix(global): load radio buttons default value (#6280)

Cp7 m24 migrate the installer and update (#6281)

* refactor(install): fix upgrade process

change MySQL library of php requirements and add a check for release notes file

Resolves CP7M-24

* refactor(install): add missing folder and cfg mock

add missing folder `www/install/tmp` and add mock of `www/install/install.conf.php`

Resolves CP7M-24

* refactor(install): Fix smarty and smarty-plugins loading

Resolves problem for unknown smarty plugin. Loads composer-managed smarty.

Cp7 m7 fix code errors and warnings (#6282)

* fix(global): remove warnings and undefined variables

* refactor(core): rework post-upgrade errors

Refactor code not compliant with php7.2

Regarding: CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): call non-static method

in widgets as host-monitoring calls methods CentreonUtils::conditionBuilder and CentreonUtils::operandToMysqlFormat as static but they are non-static

Resolves CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): fix warnings from tests

fix issues as "Only variables should be assigned by reference", "Undefined index", "Methods with the same name as their class will not be constructors in a future version of PHP" and etc.

Resolves CP7M-7

* fix(global): use quickform and smarty from composer

* fix(global): PHP warnings, notifications and mergeWithInitialValues to return correct result

fix CentreonUtils::mergeWithInitialValues to return result from submitted data
fix PHP warinings and notifications from Host template UI
fix CentreonHosttemplates::getObjectForSelect2 attributes to be the same as the parent method

Resolves CP7M-7

* refactor(base) Fix errors found after running acceptance tests

Fix various problems caused by Smarty and Quickform, detected by acceptance tests.

Regarding CP7M7

* fix(config): fix variable name (#6276)

Fix incorrectly pushed variable name

refactor(base): add dependency of pear-core and require newer version of PHP (#6284)

add dependency of pear-core-minimal package and requrie at least version 7 of PHP

Resolves CP7M-14

Cp7 m27 widgets related fixes (#6293)

* fix(global): add checks to db functions and counts

* fix(global): fix PHP`s notifications and warnings

* fix(services): add monitoring fixes for warnings

* fix(global): Undefined variable: upgrade_infosTxt

in upgrade form was missing variable

Resolves CP7M-27

* fix(quickform): fix select2 default data

refactor(quickformCustom): Change error type of addRule (#6301)

Change fatal error to notice to comply with previous version error type all over the code.

refactor(quickFormCustom): change error type of applyfilter (#6302)

Change fatal error to notice to comply with previous version error type all over the code.

fix(global): deprecated function, PHP notices (#6312)

replace using of deprecated each() function with foreach(),
fix several PHP notices related with undefined index

Resolves CP7M-51

fix(quickform): add previously deleted elements (#6311)

Cp7 m510 centreon awie (fixes) (#6313)

* fix(global): PHP 7 compatability, deprecated function, PHP notices

replace using of deprecated each() function with foreach(),
fix several PHP notices related with undefined index
fix PHP notices related to undefined index and fix CentreonObject::add compatibility with child objects
set NULL in lower case

Resolves CP7M-51

fix(global): clean up several PHP warnings (#6314)

* fix(global): clean up several PHP warnings

fix missing variable in pagination view, upgradeForm and service host list
fix requirement of password when auth with token
set TRUE in lower case

Resolves CP7M-54

Change quickform custom addrule returns (#6332)

* refactor(quickFormCustom): change error type of applyfilter
Change fatal error to notice to comply with previous version error type all over the code.

* refactor(quickform): update quickform custom
stop execution if element not found

fix(api): API and CLAPI testing (#6360)

disable all PHP errors in CLAPI (bin/centreon, api/index.php, api/internal.php)
add interface and trait instead checking for method
add missing arguments in Factory constructor
remove loading of centreon.conf.php when bootstrap.php is in use
add moduleId in centreon_administration_module when use methods for upgrading and removing a module
fix undefined variable in centreonDependency.class.php
fix undefined offset in centreonHostGroup.class.php
use sendResult instead sendJson in class CentreonWebService
add default status if missing in traps list

Resolves CP7M-64

Php7 migration clapi (#6368)

* fix(export): Filter type work with CG

* fix(export): Select specific HC resource filters now

* fix(clapi): apply filters on service category export

* refacto(clapi): refacto export of centreon clapi

* fix(clapi) dependency injector

* fix(clapi) compatibility parent/child

* fix(clapi) order export

* fix(clapi) clean unused local variable

enh(pdo): use fetch method instead of fetchrow

Cp7 m53 ongoing fixes (#6365)

* fix(widget): remove unused variable

code cleaning

Resolve CP7M-53

* fix(engine): remove getting a reference from the function

code cleaning

Resolve CP7M-53

* fix(ldap): Illegal string offset 'action'

the issue happens when try to import LDAP users without a selected checkbox

Resolve CP7M-53

Cp7 m53 ongoing fixes (#6369)

* fix(install): module without cfg throw warnings
* chore(base): ignore content of www/img/media folder

Resolve CP7M-53
kduret pushed a commit that referenced this pull request Jun 20, 2018
* chore(build): use public repository to test

* fix(db): Some PHP warnings in strict mode

* fix(auth): Declaration of method not compatible with parent

* fix(session): Call non-static method

* Add quickform package to composer

* fix docblocks

* fix namespace of Exception class

* fix call to undeclared function \Exception()

* refactor(base): move smarty to composer managed module
remove old smarty lib and add new one to composer requirements. Update smarty plugin folder
to be outside composer module.

Resolves #CP7M-9

* refactor(base): add changed files not inserted in previous commit
Adds to: 546b316

* refactor(global): delete quickform library files

* refactor(global): remove local quickform loading

* refactor(global): fix quickform loading on Monitoring and Configuration

* refactor(global): fix quickform loading on Administration

* refactor(base): replace deprecated Archive_Zip class

replace deprecated Archive_Zip with ZipArchive class from PHP ZIP module and add composer dependency for Archive_Tar

Resolves #CP7M-13

* refactor(base): cleanup the code

* refactor(base): replace Archive_Tar with PharData

replace pear package Archive_Tar with PharData class

Resolves #CP7M-13

* refactor(global): return previous quickform class

* refactor(global): extend quickform from composer

* refactor(base): update php warnings

fix non numeric additions

part of: cp7m10

* refactor(global): cleanum cutom quickform class

* refactor(core): validate views post smarty update

Fixing various errors (not only smarty related) in validated views

Resolves CP7M-10

* Cp7 m15 fix php warnings (#6270)

* fix(base): fix some warnings and deprecations notes

fix double start a session some PHP files,
fix using of undefinded variables,
fix calling of non-static method as static,
fix using of old PEAR DB const DB_FETCHMODE_ASSOC,
remove manual loading of Smarty lib from custom views section
fix advmultiselect warnings and deprecates notes because the library is officially deprecated
fix admin ACL UI -> fix calling of undefined index and calling of non-static method as static

Resolves CP7M-15

* refactor(base): Changes to PR 6271

Update db call, fix post-merge missing db execution call on images

Resolves: CP7M10

* refactor(base): More Changes to PR 6271

Update free to closeCursor

* refactor(global): use custom quickform class (#6273)

* Cp7 m7 fix code errors and warnings (#6275)

* fix(global): remove warnings and undefined variables

* refactor(core): rework post-upgrade errors

Refactor code not compliant with php7.2

Regarding: CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): call non-static method

in widgets as host-monitoring calls methods CentreonUtils::conditionBuilder and CentreonUtils::operandToMysqlFormat as static but they are non-static

Resolves CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): fix warnings from tests

fix issues as "Only variables should be assigned by reference", "Undefined index", "Methods with the same name as their class will not be constructors in a future version of PHP" and etc.

Resolves CP7M-7

* fix(config): fix variable name (#6276)

Fix incorrectly pushed variable name

* fix(global): load radio buttons default value (#6280)

* Cp7 m24 migrate the installer and update (#6281)

* refactor(install): fix upgrade process

change MySQL library of php requirements and add a check for release notes file

Resolves CP7M-24

* refactor(install): add missing folder and cfg mock

add missing folder `www/install/tmp` and add mock of `www/install/install.conf.php`

Resolves CP7M-24

* refactor(install): Fix smarty and smarty-plugins loading

Resolves problem for unknown smarty plugin. Loads composer-managed smarty.

* Cp7 m7 fix code errors and warnings (#6282)

* fix(global): remove warnings and undefined variables

* refactor(core): rework post-upgrade errors

Refactor code not compliant with php7.2

Regarding: CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): call non-static method

in widgets as host-monitoring calls methods CentreonUtils::conditionBuilder and CentreonUtils::operandToMysqlFormat as static but they are non-static

Resolves CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): fix warnings from tests

fix issues as "Only variables should be assigned by reference", "Undefined index", "Methods with the same name as their class will not be constructors in a future version of PHP" and etc.

Resolves CP7M-7

* fix(global): use quickform and smarty from composer

* fix(global): PHP warnings, notifications and mergeWithInitialValues to return correct result

fix CentreonUtils::mergeWithInitialValues to return result from submitted data
fix PHP warinings and notifications from Host template UI
fix CentreonHosttemplates::getObjectForSelect2 attributes to be the same as the parent method

Resolves CP7M-7

* refactor(base) Fix errors found after running acceptance tests

Fix various problems caused by Smarty and Quickform, detected by acceptance tests.

Regarding CP7M7

* fix(config): fix variable name (#6276)

Fix incorrectly pushed variable name

* refactor(base): add dependency of pear-core and require newer version of PHP (#6284)

add dependency of pear-core-minimal package and requrie at least version 7 of PHP

Resolves CP7M-14

* Cp7 m27 widgets related fixes (#6293)

* fix(global): add checks to db functions and counts

* fix(global): fix PHP`s notifications and warnings

* fix(services): add monitoring fixes for warnings

* fix(global): Undefined variable: upgrade_infosTxt

in upgrade form was missing variable

Resolves CP7M-27

* fix(quickform): fix select2 default data

* refactor(quickformCustom): Change error type of addRule (#6301)

Change fatal error to notice to comply with previous version error type all over the code.

* refactor(quickFormCustom): change error type of applyfilter (#6302)

Change fatal error to notice to comply with previous version error type all over the code.

* fix(global): deprecated function, PHP notices (#6312)

replace using of deprecated each() function with foreach(),
fix several PHP notices related with undefined index

Resolves CP7M-51

* fix(quickform): add previously deleted elements (#6311)

* Cp7 m510 centreon awie (fixes) (#6313)

* fix(global): PHP 7 compatability, deprecated function, PHP notices

replace using of deprecated each() function with foreach(),
fix several PHP notices related with undefined index
fix PHP notices related to undefined index and fix CentreonObject::add compatibility with child objects
set NULL in lower case

Resolves CP7M-51

* fix(global): clean up several PHP warnings (#6314)

* fix(global): clean up several PHP warnings

fix missing variable in pagination view, upgradeForm and service host list
fix requirement of password when auth with token
set TRUE in lower case

Resolves CP7M-54

* Change quickform custom addrule returns (#6332)

* refactor(quickFormCustom): change error type of applyfilter
Change fatal error to notice to comply with previous version error type all over the code.

* refactor(quickform): update quickform custom
stop execution if element not found

* chore(build): update Jenkinsfile.

* fix(build): use /usr/bin/env in shebang instead of direct php path.

* fix(pagination,search): CP7M61 performance data

Fix pagination / search parameters get/post on administration performance data

* fix(pagination,search): CP7M61 performance data

Fix pagination / search parameters get/post on administration performance data

* remove required that got carried over from the merge
kduret pushed a commit that referenced this pull request Jun 20, 2018
fix(auth): Declaration of method not compatible with parent

fix(session): Call non-static method

Add quickform package to composer

fix docblocks

fix namespace of Exception class

fix call to undeclared function \Exception()

refactor(base): move smarty to composer managed module
remove old smarty lib and add new one to composer requirements. Update smarty plugin folder
to be outside composer module.

Resolves #CP7M-9

refactor(base): add changed files not inserted in previous commit
Adds to: 546b316

refactor(global): delete quickform library files

refactor(global): remove local quickform loading

refactor(global): fix quickform loading on Monitoring and Configuration

refactor(global): fix quickform loading on Administration

refactor(base): replace deprecated Archive_Zip class

replace deprecated Archive_Zip with ZipArchive class from PHP ZIP module and add composer dependency for Archive_Tar

Resolves #CP7M-13

refactor(base): cleanup the code

refactor(base): replace Archive_Tar with PharData

replace pear package Archive_Tar with PharData class

Resolves #CP7M-13

refactor(global): return previous quickform class

refactor(global): extend quickform from composer

refactor(base): update php warnings

fix non numeric additions

part of: cp7m10

refactor(global): cleanum cutom quickform class

refactor(core): validate views post smarty update

Fixing various errors (not only smarty related) in validated views

Resolves CP7M-10

Cp7 m15 fix php warnings (#6270)

* fix(base): fix some warnings and deprecations notes

fix double start a session some PHP files,
fix using of undefinded variables,
fix calling of non-static method as static,
fix using of old PEAR DB const DB_FETCHMODE_ASSOC,
remove manual loading of Smarty lib from custom views section
fix advmultiselect warnings and deprecates notes because the library is officially deprecated
fix admin ACL UI -> fix calling of undefined index and calling of non-static method as static

Resolves CP7M-15

refactor(base): Changes to PR 6271

Update db call, fix post-merge missing db execution call on images

Resolves: CP7M10

refactor(base): More Changes to PR 6271

Update free to closeCursor

refactor(global): use custom quickform class (#6273)

Cp7 m7 fix code errors and warnings (#6275)

* fix(global): remove warnings and undefined variables

* refactor(core): rework post-upgrade errors

Refactor code not compliant with php7.2

Regarding: CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): call non-static method

in widgets as host-monitoring calls methods CentreonUtils::conditionBuilder and CentreonUtils::operandToMysqlFormat as static but they are non-static

Resolves CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): fix warnings from tests

fix issues as "Only variables should be assigned by reference", "Undefined index", "Methods with the same name as their class will not be constructors in a future version of PHP" and etc.

Resolves CP7M-7

fix(config): fix variable name (#6276)

Fix incorrectly pushed variable name

fix(global): load radio buttons default value (#6280)

Cp7 m24 migrate the installer and update (#6281)

* refactor(install): fix upgrade process

change MySQL library of php requirements and add a check for release notes file

Resolves CP7M-24

* refactor(install): add missing folder and cfg mock

add missing folder `www/install/tmp` and add mock of `www/install/install.conf.php`

Resolves CP7M-24

* refactor(install): Fix smarty and smarty-plugins loading

Resolves problem for unknown smarty plugin. Loads composer-managed smarty.

Cp7 m7 fix code errors and warnings (#6282)

* fix(global): remove warnings and undefined variables

* refactor(core): rework post-upgrade errors

Refactor code not compliant with php7.2

Regarding: CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): call non-static method

in widgets as host-monitoring calls methods CentreonUtils::conditionBuilder and CentreonUtils::operandToMysqlFormat as static but they are non-static

Resolves CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): fix warnings from tests

fix issues as "Only variables should be assigned by reference", "Undefined index", "Methods with the same name as their class will not be constructors in a future version of PHP" and etc.

Resolves CP7M-7

* fix(global): use quickform and smarty from composer

* fix(global): PHP warnings, notifications and mergeWithInitialValues to return correct result

fix CentreonUtils::mergeWithInitialValues to return result from submitted data
fix PHP warinings and notifications from Host template UI
fix CentreonHosttemplates::getObjectForSelect2 attributes to be the same as the parent method

Resolves CP7M-7

* refactor(base) Fix errors found after running acceptance tests

Fix various problems caused by Smarty and Quickform, detected by acceptance tests.

Regarding CP7M7

* fix(config): fix variable name (#6276)

Fix incorrectly pushed variable name

refactor(base): add dependency of pear-core and require newer version of PHP (#6284)

add dependency of pear-core-minimal package and requrie at least version 7 of PHP

Resolves CP7M-14

Cp7 m27 widgets related fixes (#6293)

* fix(global): add checks to db functions and counts

* fix(global): fix PHP`s notifications and warnings

* fix(services): add monitoring fixes for warnings

* fix(global): Undefined variable: upgrade_infosTxt

in upgrade form was missing variable

Resolves CP7M-27

* fix(quickform): fix select2 default data

refactor(quickformCustom): Change error type of addRule (#6301)

Change fatal error to notice to comply with previous version error type all over the code.

refactor(quickFormCustom): change error type of applyfilter (#6302)

Change fatal error to notice to comply with previous version error type all over the code.

fix(global): deprecated function, PHP notices (#6312)

replace using of deprecated each() function with foreach(),
fix several PHP notices related with undefined index

Resolves CP7M-51

fix(quickform): add previously deleted elements (#6311)

Cp7 m510 centreon awie (fixes) (#6313)

* fix(global): PHP 7 compatability, deprecated function, PHP notices

replace using of deprecated each() function with foreach(),
fix several PHP notices related with undefined index
fix PHP notices related to undefined index and fix CentreonObject::add compatibility with child objects
set NULL in lower case

Resolves CP7M-51

fix(global): clean up several PHP warnings (#6314)

* fix(global): clean up several PHP warnings

fix missing variable in pagination view, upgradeForm and service host list
fix requirement of password when auth with token
set TRUE in lower case

Resolves CP7M-54

Change quickform custom addrule returns (#6332)

* refactor(quickFormCustom): change error type of applyfilter
Change fatal error to notice to comply with previous version error type all over the code.

* refactor(quickform): update quickform custom
stop execution if element not found

fix(api): API and CLAPI testing (#6360)

disable all PHP errors in CLAPI (bin/centreon, api/index.php, api/internal.php)
add interface and trait instead checking for method
add missing arguments in Factory constructor
remove loading of centreon.conf.php when bootstrap.php is in use
add moduleId in centreon_administration_module when use methods for upgrading and removing a module
fix undefined variable in centreonDependency.class.php
fix undefined offset in centreonHostGroup.class.php
use sendResult instead sendJson in class CentreonWebService
add default status if missing in traps list

Resolves CP7M-64

Php7 migration clapi (#6368)

* fix(export): Filter type work with CG

* fix(export): Select specific HC resource filters now

* fix(clapi): apply filters on service category export

* refacto(clapi): refacto export of centreon clapi

* fix(clapi) dependency injector

* fix(clapi) compatibility parent/child

* fix(clapi) order export

* fix(clapi) clean unused local variable

enh(pdo): use fetch method instead of fetchrow

Cp7 m53 ongoing fixes (#6365)

* fix(widget): remove unused variable

code cleaning

Resolve CP7M-53

* fix(engine): remove getting a reference from the function

code cleaning

Resolve CP7M-53

* fix(ldap): Illegal string offset 'action'

the issue happens when try to import LDAP users without a selected checkbox

Resolve CP7M-53

Cp7 m53 ongoing fixes (#6369)

* fix(install): module without cfg throw warnings
* chore(base): ignore content of www/img/media folder

Resolve CP7M-53
kduret pushed a commit that referenced this pull request Jun 20, 2018
* chore(build): use public repository to test

* fix(db): Some PHP warnings in strict mode

* fix(auth): Declaration of method not compatible with parent

* fix(session): Call non-static method

* Add quickform package to composer

* fix docblocks

* fix namespace of Exception class

* fix call to undeclared function \Exception()

* refactor(base): move smarty to composer managed module
remove old smarty lib and add new one to composer requirements. Update smarty plugin folder
to be outside composer module.

Resolves #CP7M-9

* refactor(base): add changed files not inserted in previous commit
Adds to: 546b316

* refactor(global): delete quickform library files

* refactor(global): remove local quickform loading

* refactor(global): fix quickform loading on Monitoring and Configuration

* refactor(global): fix quickform loading on Administration

* refactor(base): replace deprecated Archive_Zip class

replace deprecated Archive_Zip with ZipArchive class from PHP ZIP module and add composer dependency for Archive_Tar

Resolves #CP7M-13

* refactor(base): cleanup the code

* refactor(base): replace Archive_Tar with PharData

replace pear package Archive_Tar with PharData class

Resolves #CP7M-13

* refactor(global): return previous quickform class

* refactor(global): extend quickform from composer

* refactor(base): update php warnings

fix non numeric additions

part of: cp7m10

* refactor(global): cleanum cutom quickform class

* refactor(core): validate views post smarty update

Fixing various errors (not only smarty related) in validated views

Resolves CP7M-10

* Cp7 m15 fix php warnings (#6270)

* fix(base): fix some warnings and deprecations notes

fix double start a session some PHP files,
fix using of undefinded variables,
fix calling of non-static method as static,
fix using of old PEAR DB const DB_FETCHMODE_ASSOC,
remove manual loading of Smarty lib from custom views section
fix advmultiselect warnings and deprecates notes because the library is officially deprecated
fix admin ACL UI -> fix calling of undefined index and calling of non-static method as static

Resolves CP7M-15

* refactor(base): Changes to PR 6271

Update db call, fix post-merge missing db execution call on images

Resolves: CP7M10

* refactor(base): More Changes to PR 6271

Update free to closeCursor

* refactor(global): use custom quickform class (#6273)

* Cp7 m7 fix code errors and warnings (#6275)

* fix(global): remove warnings and undefined variables

* refactor(core): rework post-upgrade errors

Refactor code not compliant with php7.2

Regarding: CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): call non-static method

in widgets as host-monitoring calls methods CentreonUtils::conditionBuilder and CentreonUtils::operandToMysqlFormat as static but they are non-static

Resolves CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): fix warnings from tests

fix issues as "Only variables should be assigned by reference", "Undefined index", "Methods with the same name as their class will not be constructors in a future version of PHP" and etc.

Resolves CP7M-7

* fix(config): fix variable name (#6276)

Fix incorrectly pushed variable name

* fix(global): load radio buttons default value (#6280)

* Cp7 m24 migrate the installer and update (#6281)

* refactor(install): fix upgrade process

change MySQL library of php requirements and add a check for release notes file

Resolves CP7M-24

* refactor(install): add missing folder and cfg mock

add missing folder `www/install/tmp` and add mock of `www/install/install.conf.php`

Resolves CP7M-24

* refactor(install): Fix smarty and smarty-plugins loading

Resolves problem for unknown smarty plugin. Loads composer-managed smarty.

* Cp7 m7 fix code errors and warnings (#6282)

* fix(global): remove warnings and undefined variables

* refactor(core): rework post-upgrade errors

Refactor code not compliant with php7.2

Regarding: CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): call non-static method

in widgets as host-monitoring calls methods CentreonUtils::conditionBuilder and CentreonUtils::operandToMysqlFormat as static but they are non-static

Resolves CP7M-7

* fix(global): remove small warnings and errors

* refactor(core): fix warnings from tests

fix issues as "Only variables should be assigned by reference", "Undefined index", "Methods with the same name as their class will not be constructors in a future version of PHP" and etc.

Resolves CP7M-7

* fix(global): use quickform and smarty from composer

* fix(global): PHP warnings, notifications and mergeWithInitialValues to return correct result

fix CentreonUtils::mergeWithInitialValues to return result from submitted data
fix PHP warinings and notifications from Host template UI
fix CentreonHosttemplates::getObjectForSelect2 attributes to be the same as the parent method

Resolves CP7M-7

* refactor(base) Fix errors found after running acceptance tests

Fix various problems caused by Smarty and Quickform, detected by acceptance tests.

Regarding CP7M7

* fix(config): fix variable name (#6276)

Fix incorrectly pushed variable name

* refactor(base): add dependency of pear-core and require newer version of PHP (#6284)

add dependency of pear-core-minimal package and requrie at least version 7 of PHP

Resolves CP7M-14

* Cp7 m27 widgets related fixes (#6293)

* fix(global): add checks to db functions and counts

* fix(global): fix PHP`s notifications and warnings

* fix(services): add monitoring fixes for warnings

* fix(global): Undefined variable: upgrade_infosTxt

in upgrade form was missing variable

Resolves CP7M-27

* fix(quickform): fix select2 default data

* refactor(quickformCustom): Change error type of addRule (#6301)

Change fatal error to notice to comply with previous version error type all over the code.

* refactor(quickFormCustom): change error type of applyfilter (#6302)

Change fatal error to notice to comply with previous version error type all over the code.

* fix(global): deprecated function, PHP notices (#6312)

replace using of deprecated each() function with foreach(),
fix several PHP notices related with undefined index

Resolves CP7M-51

* fix(quickform): add previously deleted elements (#6311)

* Cp7 m510 centreon awie (fixes) (#6313)

* fix(global): PHP 7 compatability, deprecated function, PHP notices

replace using of deprecated each() function with foreach(),
fix several PHP notices related with undefined index
fix PHP notices related to undefined index and fix CentreonObject::add compatibility with child objects
set NULL in lower case

Resolves CP7M-51

* fix(global): clean up several PHP warnings (#6314)

* fix(global): clean up several PHP warnings

fix missing variable in pagination view, upgradeForm and service host list
fix requirement of password when auth with token
set TRUE in lower case

Resolves CP7M-54

* Change quickform custom addrule returns (#6332)

* refactor(quickFormCustom): change error type of applyfilter
Change fatal error to notice to comply with previous version error type all over the code.

* refactor(quickform): update quickform custom
stop execution if element not found

* chore(build): update Jenkinsfile.

* fix(build): use /usr/bin/env in shebang instead of direct php path.

* fix(pagination,search): CP7M61 performance data

Fix pagination / search parameters get/post on administration performance data

* fix(pagination,search): CP7M61 performance data

Fix pagination / search parameters get/post on administration performance data

* remove required that got carried over from the merge
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants