Backport DBUtil fixes from 1.4 to 1.3

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no, don't think so
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | Tested several modules in 1.3.6 that use DBUtil
| Fixed tickets | -
| Refs tickets  | https://github.com/rallek/1.3.6patch/issues/8, https://github.com/zikula/core/pull/1603
| License       | MIT
| Doc PR        | -

This updates the DBUtil in the 1.3 branch to reflect all the updates @rgasch did to DBUtil in the 1.4 branch. Essentially a backport of the updates done in the 1.4 branch to the 1.3 branch.
It's not a one2one copy since some calls are different in 1.4.0 vs 1.3.x

These updates are needed for zwebstore 1.3.2 for instance and do solve several bugs.
I have tested a bit with News 3.1, Content 4.1 and ZWebstore 1.3.2 that all use DBUtil. That is all ok. If people can test this DBUtil, please do. It should work.

See the list below for the diff between 1.4 and 1.3, left < is 1.3 an right > 1.4
```
16a17,18
>  *
>  * @deprecated
45c47
<             self::$cache_enabled = ServiceUtil::getManager()->getArgument('dbcache.enable');
---
>             self::$cache_enabled = ServiceUtil::getManager()->getParameter('dbcache.enable');
63c65
<             $databases = ServiceUtil::getManager()->getArgument('databases');
---
>             $databases = ServiceUtil::getManager()->getParameter('databases');
66c68
<             $cacheDriver = ServiceUtil::getManager()->getService('doctrine.cachedriver');
---
>             $cacheDriver = ServiceUtil::getManager()->get('doctrine.cachedriver');
87c89
<             $databases = ServiceUtil::getManager()->getArgument('databases');
---
>             $databases = ServiceUtil::getManager()->getParameter('databases');
90c92
<             $cacheDriver = ServiceUtil::getManager()->getService('doctrine.cachedriver');
---
>             $cacheDriver = ServiceUtil::getManager()->get('doctrine.cachedriver');
105c107
<             $databases = ServiceUtil::getManager()->getArgument('databases');
---
>             $databases = ServiceUtil::getManager()->getParameter('databases');
108c110
<             $cacheDriver = ServiceUtil::getManager()->getService('doctrine.cachedriver');
---
>             $cacheDriver = ServiceUtil::getManager()->get('doctrine.cachedriver');
188c190
<         return ServiceUtil::getManager()->getArgument('dbtables');
---
>         return ServiceUtil::getManager()->getParameter('dbtables');
283c285
<             //$stmt->setHydrationMode(Doctrine::HYDRATE_RECORD);
---
>             //$stmt->setHydrationMode(Doctrine_Core::HYDRATE_RECORD);
301,305c303,304
<                 if (System::isLegacyMode()) {
<                     return new Zikula_Adapter_AdodbStatement($result);
<                 } else {
<                     return $result;
<                 }
---
> 
>                 return $result;
999c998
<                 ModUtil::available('Categories')) {
---
>                 ModUtil::available('ZikulaCategoriesModule')) {
1207a1207,1210
>         if ($table == 'categories_mapobj') {
>             // table no longer exists >= 1.3.6
>             return true;
>         }
1242c1245
<                 ModUtil::available('Categories')) {
---
>                 ModUtil::available('ZikulaCategoriesModule')) {
1545c1548
<         $resultRows = $result->fetchAll(Doctrine::FETCH_NUM);
---
>         $resultRows = $result->fetchAll(Doctrine_Core::FETCH_NUM);
1595c1598
<         $resultRows = $result->fetchAll(Doctrine::FETCH_ASSOC);
---
>         $resultRows = $result->fetchAll(Doctrine_Core::FETCH_ASSOC);
1945c1948
<         if (!ModUtil::dbInfoLoad('Categories')) {
---
>         if (!ModUtil::dbInfoLoad('ZikulaCategoriesModule')) {
2382c2385
<         $res = $res->fetchAll(Doctrine::FETCH_COLUMN); // RNG: Should this really be fetchAll() ??
---
>         $res = $res->fetchAll(Doctrine_Core::FETCH_COLUMN); // RNG: Should this really be fetchAll() ??
2782c2785
<         $res   = $res->fetchAll(Doctrine::FETCH_COLUMN);
---
>         $res   = $res->fetchAll(Doctrine_Core::FETCH_COLUMN);
2904c2907
<         if (($enableAllServices || (isset($tables["{$table}_db_extra_enable_categorization"]) && $tables["{$table}_db_extra_enable_categorization"])) && System::getVar('Z_CONFIG_USE_OBJECT_CATEGORIZATION') && strcmp($table, 'categories_') !== 0 && strcmp($table, 'objectdata_attributes') !== 0 && strcmp($table, 'objectdata_log') !== 0 && ModUtil::available('Categories')) {
---
>         if (($enableAllServices || (isset($tables["{$table}_db_extra_enable_categorization"]) && $tables["{$table}_db_extra_enable_categorization"])) && System::getVar('Z_CONFIG_USE_OBJECT_CATEGORIZATION') && strcmp($table, 'categories_') !== 0 && strcmp($table, 'objectdata_attributes') !== 0 && strcmp($table, 'objectdata_log') !== 0 && ModUtil::available('ZikulaCategoriesModule')) {
3914c3917
<                     return z_exit(__f('%1$s: unable to limit tablename [%2$s] because database prefix is too long for Oracle, please shorten it (recommended length is 4 chars)', array(
---
>                     throw new \Exception(__f('%1$s: unable to limit tablename [%2$s] because database prefix is too long for Oracle, please shorten it (recommended length is 4 chars)', array(
4006c4009
< }
---
> }
\ No newline at end of file

```
back-ported fix for deprecated /e modifier to preg_replace refs #889
Merge pull request #1611 from espaan/patch-31

This PR was merged into zikula:1.3 branch.

Discussion
----------

Backport DBUtil fixes from 1.4 to 1.3

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no, don't think so
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | Tested several modules in 1.3.6 that use DBUtil
| Fixed tickets | -
| Refs tickets  | https://github.com/rallek/1.3.6patch/issues/8, https://github.com/zikula/core/pull/1603
| License       | MIT
| Doc PR        | -

This updates the DBUtil in the 1.3 branch to reflect all the updates @rgasch did to DBUtil in the 1.4 branch. Essentially a backport of the updates done in the 1.4 branch to the 1.3 branch.
It's not a one2one copy since some calls are different in 1.4.0 vs 1.3.x

These updates are needed for zwebstore 1.3.2 for instance and do solve several bugs.
I have tested a bit with News 3.1, Content 4.1 and ZWebstore 1.3.2 that all use DBUtil. That is all ok. If people can test this DBUtil, please do. It should work.

See the list below for the diff between 1.4 and 1.3, left < is 1.3 an right > 1.4
```
16a17,18
>  *
>  * @deprecated
45c47
<             self::$cache_enabled = ServiceUtil::getManager()->getArgument('dbcache.enable');
---
>             self::$cache_enabled = ServiceUtil::getManager()->getParameter('dbcache.enable');
63c65
<             $databases = ServiceUtil::getManager()->getArgument('databases');
---
>             $databases = ServiceUtil::getManager()->getParameter('databases');
66c68
<             $cacheDriver = ServiceUtil::getManager()->getService('doctrine.cachedriver');
---
>             $cacheDriver = ServiceUtil::getManager()->get('doctrine.cachedriver');
87c89
<             $databases = ServiceUtil::getManager()->getArgument('databases');
---
>             $databases = ServiceUtil::getManager()->getParameter('databases');
90c92
<             $cacheDriver = ServiceUtil::getManager()->getService('doctrine.cachedriver');
---
>             $cacheDriver = ServiceUtil::getManager()->get('doctrine.cachedriver');
105c107
<             $databases = ServiceUtil::getManager()->getArgument('databases');
---
>             $databases = ServiceUtil::getManager()->getParameter('databases');
108c110
<             $cacheDriver = ServiceUtil::getManager()->getService('doctrine.cachedriver');
---
>             $cacheDriver = ServiceUtil::getManager()->get('doctrine.cachedriver');
188c190
<         return ServiceUtil::getManager()->getArgument('dbtables');
---
>         return ServiceUtil::getManager()->getParameter('dbtables');
283c285
<             //$stmt->setHydrationMode(Doctrine::HYDRATE_RECORD);
---
>             //$stmt->setHydrationMode(Doctrine_Core::HYDRATE_RECORD);
301,305c303,304
<                 if (System::isLegacyMode()) {
<                     return new Zikula_Adapter_AdodbStatement($result);
<                 } else {
<                     return $result;
<                 }
---
> 
>                 return $result;
999c998
<                 ModUtil::available('Categories')) {
---
>                 ModUtil::available('ZikulaCategoriesModule')) {
1207a1207,1210
>         if ($table == 'categories_mapobj') {
>             // table no longer exists >= 1.3.6
>             return true;
>         }
1242c1245
<                 ModUtil::available('Categories')) {
---
>                 ModUtil::available('ZikulaCategoriesModule')) {
1545c1548
<         $resultRows = $result->fetchAll(Doctrine::FETCH_NUM);
---
>         $resultRows = $result->fetchAll(Doctrine_Core::FETCH_NUM);
1595c1598
<         $resultRows = $result->fetchAll(Doctrine::FETCH_ASSOC);
---
>         $resultRows = $result->fetchAll(Doctrine_Core::FETCH_ASSOC);
1945c1948
<         if (!ModUtil::dbInfoLoad('Categories')) {
---
>         if (!ModUtil::dbInfoLoad('ZikulaCategoriesModule')) {
2382c2385
<         $res = $res->fetchAll(Doctrine::FETCH_COLUMN); // RNG: Should this really be fetchAll() ??
---
>         $res = $res->fetchAll(Doctrine_Core::FETCH_COLUMN); // RNG: Should this really be fetchAll() ??
2782c2785
<         $res   = $res->fetchAll(Doctrine::FETCH_COLUMN);
---
>         $res   = $res->fetchAll(Doctrine_Core::FETCH_COLUMN);
2904c2907
<         if (($enableAllServices || (isset($tables["{$table}_db_extra_enable_categorization"]) && $tables["{$table}_db_extra_enable_categorization"])) && System::getVar('Z_CONFIG_USE_OBJECT_CATEGORIZATION') && strcmp($table, 'categories_') !== 0 && strcmp($table, 'objectdata_attributes') !== 0 && strcmp($table, 'objectdata_log') !== 0 && ModUtil::available('Categories')) {
---
>         if (($enableAllServices || (isset($tables["{$table}_db_extra_enable_categorization"]) && $tables["{$table}_db_extra_enable_categorization"])) && System::getVar('Z_CONFIG_USE_OBJECT_CATEGORIZATION') && strcmp($table, 'categories_') !== 0 && strcmp($table, 'objectdata_attributes') !== 0 && strcmp($table, 'objectdata_log') !== 0 && ModUtil::available('ZikulaCategoriesModule')) {
3914c3917
<                     return z_exit(__f('%1$s: unable to limit tablename [%2$s] because database prefix is too long for Oracle, please shorten it (recommended length is 4 chars)', array(
---
>                     throw new \Exception(__f('%1$s: unable to limit tablename [%2$s] because database prefix is too long for Oracle, please shorten it (recommended length is 4 chars)', array(
4006c4009
< }
---
> }
\ No newline at end of file

```

Commits
-------

b94c920df63c831954f00a98bdd8b946cc782978 Backport DBUtil fixes from 1.4 to 1.3

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no, don't think so
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | Tested several modules in 1.3.6 that use DBUtil
| Fixed tickets | -
| Refs tickets  | https://github.com/rallek/1.3.6patch/issues/8, https://github.com/zikula/core/pull/1603
| License       | MIT
| Doc PR        | -

This updates the DBUtil in the 1.3 branch to reflect all the updates @rgasch did to DBUtil in the 1.4 branch. Essentially a backport of the updates done in the 1.4 branch to the 1.3 branch.
It's not a one2one copy since some calls are different in 1.4.0 vs 1.3.x

These updates are needed for zwebstore 1.3.2 for instance and do solve several bugs.
I have tested a bit with News 3.1, Content 4.1 and ZWebstore 1.3.2 that all use DBUtil. That is all ok. If people can test this DBUtil, please do. It should work.

See the list below for the diff between 1.4 and 1.3, left < is 1.3 an right > 1.4
```
16a17,18
>  *
>  * @deprecated
45c47
<             self::$cache_enabled = ServiceUtil::getManager()->getArgument('dbcache.enable');
---
>             self::$cache_enabled = ServiceUtil::getManager()->getParameter('dbcache.enable');
63c65
<             $databases = ServiceUtil::getManager()->getArgument('databases');
---
>             $databases = ServiceUtil::getManager()->getParameter('databases');
66c68
<             $cacheDriver = ServiceUtil::getManager()->getService('doctrine.cachedriver');
---
>             $cacheDriver = ServiceUtil::getManager()->get('doctrine.cachedriver');
87c89
<             $databases = ServiceUtil::getManager()->getArgument('databases');
---
>             $databases = ServiceUtil::getManager()->getParameter('databases');
90c92
<             $cacheDriver = ServiceUtil::getManager()->getService('doctrine.cachedriver');
---
>             $cacheDriver = ServiceUtil::getManager()->get('doctrine.cachedriver');
105c107
<             $databases = ServiceUtil::getManager()->getArgument('databases');
---
>             $databases = ServiceUtil::getManager()->getParameter('databases');
108c110
<             $cacheDriver = ServiceUtil::getManager()->getService('doctrine.cachedriver');
---
>             $cacheDriver = ServiceUtil::getManager()->get('doctrine.cachedriver');
188c190
<         return ServiceUtil::getManager()->getArgument('dbtables');
---
>         return ServiceUtil::getManager()->getParameter('dbtables');
283c285
<             //$stmt->setHydrationMode(Doctrine::HYDRATE_RECORD);
---
>             //$stmt->setHydrationMode(Doctrine_Core::HYDRATE_RECORD);
301,305c303,304
<                 if (System::isLegacyMode()) {
<                     return new Zikula_Adapter_AdodbStatement($result);
<                 } else {
<                     return $result;
<                 }
---
> 
>                 return $result;
999c998
<                 ModUtil::available('Categories')) {
---
>                 ModUtil::available('ZikulaCategoriesModule')) {
1207a1207,1210
>         if ($table == 'categories_mapobj') {
>             // table no longer exists >= 1.3.6
>             return true;
>         }
1242c1245
<                 ModUtil::available('Categories')) {
---
>                 ModUtil::available('ZikulaCategoriesModule')) {
1545c1548
<         $resultRows = $result->fetchAll(Doctrine::FETCH_NUM);
---
>         $resultRows = $result->fetchAll(Doctrine_Core::FETCH_NUM);
1595c1598
<         $resultRows = $result->fetchAll(Doctrine::FETCH_ASSOC);
---
>         $resultRows = $result->fetchAll(Doctrine_Core::FETCH_ASSOC);
1945c1948
<         if (!ModUtil::dbInfoLoad('Categories')) {
---
>         if (!ModUtil::dbInfoLoad('ZikulaCategoriesModule')) {
2382c2385
<         $res = $res->fetchAll(Doctrine::FETCH_COLUMN); // RNG: Should this really be fetchAll() ??
---
>         $res = $res->fetchAll(Doctrine_Core::FETCH_COLUMN); // RNG: Should this really be fetchAll() ??
2782c2785
<         $res   = $res->fetchAll(Doctrine::FETCH_COLUMN);
---
>         $res   = $res->fetchAll(Doctrine_Core::FETCH_COLUMN);
2904c2907
<         if (($enableAllServices || (isset($tables["{$table}_db_extra_enable_categorization"]) && $tables["{$table}_db_extra_enable_categorization"])) && System::getVar('Z_CONFIG_USE_OBJECT_CATEGORIZATION') && strcmp($table, 'categories_') !== 0 && strcmp($table, 'objectdata_attributes') !== 0 && strcmp($table, 'objectdata_log') !== 0 && ModUtil::available('Categories')) {
---
>         if (($enableAllServices || (isset($tables["{$table}_db_extra_enable_categorization"]) && $tables["{$table}_db_extra_enable_categorization"])) && System::getVar('Z_CONFIG_USE_OBJECT_CATEGORIZATION') && strcmp($table, 'categories_') !== 0 && strcmp($table, 'objectdata_attributes') !== 0 && strcmp($table, 'objectdata_log') !== 0 && ModUtil::available('ZikulaCategoriesModule')) {
3914c3917
<                     return z_exit(__f('%1$s: unable to limit tablename [%2$s] because database prefix is too long for Oracle, please shorten it (recommended length is 4 chars)', array(
---
>                     throw new \Exception(__f('%1$s: unable to limit tablename [%2$s] because database prefix is too long for Oracle, please shorten it (recommended length is 4 chars)', array(
4006c4009
< }
---
> }
\ No newline at end of file

``` espaan
Merge pull request #1615 from rojblake/pregreplace

This PR was merged into zikula:1.3 branch.

Discussion
----------

back-ported fix for deprecated /e modifier to preg_replace refs #889

This PR contains a back-ported fix for better compatability with PHP 5.5.

 | Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | 
| Refs tickets  | #889
| License       | MIT
| Doc PR        | 

Commits
-------

cd3d6be33e9c8adacd3454c8d97d6e5a85af37ab back-ported fix for deprecated /e modifier to preg_replace refs #889 rojblake
Update CHANGELOG
More solid block content decoding
Update CHANGELOG
Use DataUtil API for checking if content is serialised
Merge pull request #1618 from Guite/1.3

This PR was merged into zikula:1.3 branch.

Discussion
----------

More solid block content decoding

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | https://github.com/Guite/MostGenerator/issues/499
| Refs tickets  | 
| License       | MIT
| Doc PR        | 

Commits
-------

05a3297f684222ad068ebfe4db66c2815b36bb42 More solid block content decoding Guite
918b15f4443d74562c4ef338151762e7c60819fe Update CHANGELOG Guite
ace4f3684482830d5b206f073055e7c84442f44f Use DataUtil API for checking if content is serialised Guite
Accept "0" as a non-empty value

Slight change to ValidationUtil to make non-empty validation easier.
update version 1.3.8
Merge pull request #1627 from rgasch/patch-1

Accept "0" as a non-empty value
Fixed exporter function in Users module
Merge pull request #1630 from jguille2/1.3

Fixed exporter function in Users module
[Imagine plug 1.3] spelling corrected of Javascript methods

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | -
| Fixed tickets | -
| Refs tickets  | -
| License       | MIT
| Doc PR        | -

In Branch 1.3 as well method names were spelled as Perset instead of Preset
Merge pull request #1646 from espaan/patch-2

This PR was merged into zikula:1.3 branch.

Discussion
----------

[Imagine plug 1.3] spelling corrected of Javascript methods

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | -
| Fixed tickets | -
| Refs tickets  | -
| License       | MIT
| Doc PR        | -

In Branch 1.3 as well method names were spelled as Perset instead of Preset

Commits
-------

1df3c5781504e1e86dbfb39773cdaf2986998c30 [Imagine plug 1.3] spelling corrected of Javascript methods

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | -
| Fixed tickets | -
| Refs tickets  | -
| License       | MIT
| Doc PR        | -

In Branch 1.3 as well method names were spelled as Perset instead of Preset espaan
[1.3 branch] Updated .htaccess in modules for fonts, jpeg

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | -
| Fixed tickets | -
| Refs tickets  | -
| License       | MIT
| Doc PR        | -

Updated the htaccess in modules to support local fonts, like glyphicons and other font libs. 
Also jpeg was still missing here. 
This is now in line with the htaccess in 1.4 branch
Merge pull request #1657 from espaan/patch-3

[1.3 branch] Updated .htaccess in modules for fonts, jpeg
fixed not loading idcolume if autoincrement in tables.php
[1.3 Users] Updated Api_registration for sendpass

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | -
| Fixed tickets | -
| Refs tickets  | -
| License       | MIT
| Doc PR        | -

When another module wants to use the Users_registration Api and the registerNewUser method you cannot use the sendpass functionality. When a webshop (e.g. zwebstore) with automatic account creation based on user data with a generated password wants to send the generated password to the new account then this update is needed. Otherwise you cannot send the password. 

Automatic account creation saves 1 extra step in customer approach in webshops. And 1 extra step can be one too many in these fast times.