Commit Graph

114 Commits

Author SHA1 Message Date
1ddc03dcbb DomCI : Change the non existing PHPDocs types
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3269 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-12-08 15:07:52 +00:00
ea54592f5b Remove all the too long lines
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3266 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-12-08 14:56:34 +00:00
a04d3a4f4a Cosmetics changes : remove ending lines spaces
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3012 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-08-31 07:20:24 +00:00
3ac7d3ca22 dblayer : update error message
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2960 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-07-26 07:42:56 +00:00
495ea91840 dblayer : allow to define the hook functions in the specification of the layer. Can be external ones
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2950 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-07-25 14:03:36 +00:00
9a697c0034 dblayer : return all the verify errors in the same shot
dblayer : allow to have external verifyOne and verifyAll functions


git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2911 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-07-19 13:28:37 +00:00
bc0bd0d1e7 dblayer : allow to define external verifyOne/verifyAll functions instead of using internal ones (or the extended ones)
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2909 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-07-19 10:00:07 +00:00
e15945f4df dblayer : delete : raise a valid exception if the delete can't be done
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2901 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-07-18 14:00:56 +00:00
68a38804b8 dblayer : in debug, display the request in directRead
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2893 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-07-18 10:07:55 +00:00
b64017d548 dblayer : allow read with null value
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2891 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-07-18 08:43:50 +00:00
2297b99845 dblayer : display the field in error when creating the table
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2851 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-07-11 09:07:37 +00:00
b7748f6ad1 dblayer : check if the PDO Driver is installed in PHP before using it
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2844 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-07-06 11:15:18 +00:00
820d360e79 dblayer : check if the table name is defined before using it
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2832 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-07-05 14:06:55 +00:00
230f8b7603 dblayer : bug in read with OR if the select fields are multiple time the same
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2757 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-06-09 13:11:26 +00:00
019beadf57 dblayer : removing the unused create function (later than 0.8)
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2548 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-02-23 13:41:20 +00:00
01efb53dfa Check if all the translations are done by dgettext('domframework',
Update locales


git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2541 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-02-23 10:27:18 +00:00
343fd33545 dblayer : support of null data was not working in insert/update
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2381 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-11-13 10:58:16 +00:00
c421d73749 dblayer : correct the regression introduced in 2362
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2364 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-10-14 05:55:40 +00:00
bb2dbb6dae dblayer : datas -> data
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2362 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-10-13 16:13:50 +00:00
800411803c dblayer : if the verify return an array with the field in key, the exception of update is now working
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2275 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-09-12 15:04:49 +00:00
56f7a1a0f0 dblayer : If provided select is not an array of array, throw an exception
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2274 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-09-12 14:51:21 +00:00
e6fca943f6 dblayer : define the setters of properties to allow chained ->
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2269 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-08-21 12:08:20 +00:00
cfa429df0f dblayer : add the hookpreread and the hookpostread
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2267 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-08-21 11:43:18 +00:00
e0b6aa77d2 dblayer : add a Singleton to not reconnect each time we need to access the same database.
dblayer : add a method to disconnect the database engine
dblayer : add the transactions methods, linke in PDO
dblayer : remove the extension of PDO


git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2259 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-08-20 12:19:58 +00:00
5f3e003b70 dblayer : create table : add "if not exists"
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2241 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-08-14 08:59:40 +00:00
4cd06da7da dblayer : sqlite : chmod 0666 only if the file exists
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2098 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-04-29 11:28:56 +00:00
160d8e7a46 dblayer : allow insert of integer data
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2082 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-04-27 20:39:38 +00:00
97ede7f03b dblayer : don't allow anything than strings. Null parameters are skipped
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2059 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-03-23 15:01:21 +00:00
ede724a76d dblayer : don't allow the information which are not string
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2057 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-03-23 14:39:57 +00:00
d0dfe2dba1 dblayer : correct the test of write access to sqlite
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2056 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-03-23 13:02:58 +00:00
1cfc21e5f0 dblayer : check if the unique key is defined before using it in UPDATE. If not defined, use primary key
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2052 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-03-23 11:08:28 +00:00
5f441df4b7 dblayer : add the connected tests before using the SQLITE PDO engine
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2051 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-03-23 09:49:49 +00:00
839d71a44f dblayer : add a exception if the provided PDO driver is not known
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2050 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-03-23 09:42:39 +00:00
ba5f375b5a dblayer : bad function name
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2047 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-03-22 08:15:35 +00:00
e3bec29cf8 dblayer : bad function name
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2046 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-03-22 08:14:30 +00:00
8897e82170 dblayer : add support to hooks (pre|post)(insert|update|delete)
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2042 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-03-22 04:18:05 +00:00
cb5f651247 dblayer : don't do the update if no data is provided
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2036 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-03-21 15:48:27 +00:00
9628c604fd dblayer : remove a 506 http code unknown
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2023 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-03-13 10:48:34 +00:00
211dbfcefb dblayer : don't allow the foreign keys to be in the select : conflict
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2022 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-03-13 10:44:24 +00:00
d590337cf5 dblayer : add the possibility to filtering on foreignkeys when reading
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2021 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-03-13 10:35:24 +00:00
b4241e1f30 dblayer : Check if the database is connected before using it
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1985 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-02-02 13:49:33 +00:00
b152996eab dblayer : Removing the unused singleton
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1951 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-01-27 18:05:33 +00:00
e49a5a97af dbLayer : new format with static call to limit the number of connection to the database
authzgroups : update to support the new dbLayer format


git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1950 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-01-27 17:38:25 +00:00
4f23451432 dbLayer : don't connect multiple times to the same database/username
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1949 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-01-27 14:37:25 +00:00
53cd221538 DBLayer : Allow the order of column with name 'group' by adding separator
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1917 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-01-07 03:23:34 +00:00
153c58a39c dblayer : Check before update if multiple unique keys are not used before doing the update
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1858 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-10-02 13:57:19 +00:00
b80f9ecdea BUG : dblayer : don't raise an exception when re-inserting unique record
dblayer : add more unit tests


git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1850 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-09-24 09:13:18 +00:00
6e97bad1f7 dblayer : foreign keys are not mandatory in update (in verify)
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1844 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-09-22 11:32:54 +00:00
5085627b1d dblayer : be OK if the error of dblayer is an array or a string
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1843 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-09-22 11:18:35 +00:00
b034fa3625 dblayer : add more debug
dblayer : add more unit tests (foreign keys)
dblayer : add the same answer when updating a line with the same informations
dblayer : better support of foreign keys


git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1842 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-09-22 10:52:53 +00:00