Clemens Schwaighofer
b9d8911c7b
ACL\Login
...
load and export the additional acl json arrays for
* user: USER_ADDITIONAL_ACL
* group: GROUP_ADDITIONAL_ACL
* access: array element 'additional_acl'
also added to the master acl array:
'additional_acl' => ['user' => [], 'group' => []]
'unit_detail' => [] => ['additional_acl' => []]
v8.2.0
2023-04-10 14:32:32 +09:00
Clemens Schwaighofer
c51ceb926e
Bug fix for DB\IO params detection
...
Param detection found too many params, for example '$1'.
Fixed the regex to only allow params that are no preceeded by '
And must start with space/tab, =, (
v8.1.4
2023-04-07 14:34:13 +09:00
Clemens Schwaighofer
b4b33d6873
Bug fix for DB\IO returning detection
...
it was still coded with old one line and not taking in possible
line breaks in the returning code part
v8.1.3
2023-04-03 15:02:39 +09:00
Clemens Schwaighofer
959240b0fa
Fixes in db class tests files
v8.1.2
2023-03-29 09:59:30 +09:00
Clemens Schwaighofer
7eace1013e
DB\IO switch dbReturn, dbReturnParams to NO_CACHE as default
...
Cache is never used, so to keep memory default lower, lets switch to
NO_CACHE
2023-03-29 09:55:09 +09:00
Clemens Schwaighofer
be1e55cad7
Add more DB tests with params methods
2023-03-28 17:01:02 +09:00
Clemens Schwaighofer
11a8c6440b
Update DB\IO debug output for parameter queries
...
if value null set "NULL" else convert to string
Update class basic test with various type tests
2023-03-28 16:46:34 +09:00
Clemens Schwaighofer
742cbc31df
DB\IO add dbExec*, dbReturn* Params methods
...
Instead of prepare/execute, add the proper quary_params calls for all
the dbExec*, dbReturn* calls
Also add field types to cursor info
2023-03-28 15:31:07 +09:00
Clemens Schwaighofer
28909fdc03
composer base packages updates
2023-03-28 11:51:54 +09:00
Clemens Schwaighofer
c3b29ad0d7
comment formatting update only
2023-03-27 16:25:11 +09:00
Clemens Schwaighofer
6d481657df
class test file update for DB with ANY calls
2023-03-16 18:21:48 +09:00
Clemens Schwaighofer
fc57aabf5d
Updates in SmartyExtend set var calls
...
Removed cms object from Frontend and replaced with optional smarty data
array (HEADER, DATA, DEBUG_DATA)
Updated admin call that if $cms is given above data will be extracted.
Added a CONTENT_PATH option for admin, must be set if $cms is set
Is used for the adbTopMenu call
Moved the $cms global check and trigger to the admin call branch only
v8.0.7
2023-03-13 11:29:21 +09:00
Clemens Schwaighofer
d56ee68482
Fix missing default null in setSmartyVarsFrontend
v8.0.6
2023-03-13 10:36:05 +09:00
Clemens Schwaighofer
b89ab09e12
SmartyExtend parameter phpdoc order fix
v8.0.5
2023-03-13 09:25:50 +09:00
Clemens Schwaighofer
e873ade6c0
Change the SmartyExtended Vars set calls to use options array
...
Instead of having each parameter single, group them into an options array
so we do not have to worry about updating the whole function call.
Keep the main core call as is
2023-03-13 09:15:59 +09:00
Clemens Schwaighofer
5910b884ac
Bug fix in SmartyExtend class and user name set
v8.0.4
2023-03-10 15:25:54 +09:00
Clemens Schwaighofer
e3bd2c1c3b
Remove more _SESSION calls in classes, test updates
...
Admin\EditBase now has ACL\Login class as mandatory class parameter
Output\Form\Generate has loginAcl array parameter as mandatory
v8.0.3
2023-03-10 15:08:56 +09:00
Clemens Schwaighofer
90a8c5540f
Deprecate the GetLocale class and replace with ACL\Login locales set
...
If ACL\Login is used, the loginGetLocale() call should be used to fetch
the locale data set during login
Language\L10n now has new encoding/charset optional parameter 4
If the locale does not have a charset set the defautl charset is UTF-8
unless set via the new parameter or setOverrideEncoding()
Because of the deprecation of the getLocales call the following methods
do no longer need $locales
- Admin\Backend
- Admin\EditBase
- Output\Form\Generate
- Template\SmartyExtend
They all use the new l10n->getLocaleAsArray() call to set all the local
variables
* Admin\EditBase has new parameter "options" to set
- cache_id
- compile_id
which must be passed on the SmartyExtend class init
2023-03-10 13:43:43 +09:00
Clemens Schwaighofer
ea503fffe9
Merge branch 'development'
v8.0.2
2023-03-09 16:45:07 +09:00
Clemens Schwaighofer
feba79a2e8
Install psalm as dev, sync scripts updates
2023-03-09 16:27:10 +09:00
Clemens Schwaighofer
6bec59e387
Deprecate check for GetDotEnv tests
2023-03-09 16:17:52 +09:00
Clemens Schwaighofer
03fbcaecfb
Code Clean up, more testing
...
Remove unused code and classes.
Clean up code to remove all named constant from them and throw
deprecation alerts if used.
Add basic psalm setup in root folder and remove from www folder
2023-03-09 15:55:57 +09:00
Clemens Schwaighofer
283e7de1dc
Remove Jason class, now in Json, deprecated since v7
v8.0.1
2023-03-02 15:35:13 +09:00
Clemens Schwaighofer
d952c5f774
Remove Jason class, now in Json, deprecated since v7
2023-03-02 15:26:40 +09:00
Clemens Schwaighofer
cd8351d761
Update composer package create readme
2023-03-02 11:51:39 +09:00
Clemens Schwaighofer
b992901072
Move all tests into sub folders for a more clear structure
2023-03-02 11:51:29 +09:00
Clemens Schwaighofer
1596654149
Moved minimum php version to 8.1
...
All PostgreSQL calls are now Connection/Resource object types and not
resource
All methods have parameter type set
v8.0.0
2023-02-28 17:36:19 +09:00
Clemens Schwaighofer
44f37b7f74
Fix in EditUser Table Array query load for languages
...
Also split all queries into multi line ones
Fixes in Form\Generate for TableArray Interface location move
Update EditBase to new and old edit schema (scheme) file name
v7.12.2
2023-02-28 10:31:34 +09:00
Clemens Schwaighofer
829f5c567f
Update composer autoload map files
v7.12.1
2023-02-28 06:40:19 +09:00
Clemens Schwaighofer
710a48abcd
Move the TableArrays Interface to a sub folder in TableArrays
...
to avoid strange path lookups
2023-02-28 06:36:11 +09:00
Clemens Schwaighofer
f564c27319
Add readme file for composer package deploy flow
2023-02-24 16:44:21 +09:00
Clemens Schwaighofer
00b98e7230
phpunit test scritps fix
v7.12.0
2023-02-24 09:45:52 +09:00
Clemens Schwaighofer
7cae3e701a
phpunit test fixes
2023-02-24 09:43:24 +09:00
Clemens Schwaighofer
da67d1bde3
phpstan update
2023-02-22 06:47:34 +09:00
Clemens Schwaighofer
16c3653cee
phpstan updates for Smarty move to composer package
2023-02-22 06:42:53 +09:00
Clemens Schwaighofer
47c4c5cb69
Install smarty from composer package
2023-02-22 06:36:34 +09:00
Clemens Schwaighofer
7b9dc9c8b2
Rename the VarSetType class to SetVarType
...
The old name made no sense and it was only used in two projects, so the
deprecation step has been skipped
2023-02-22 06:32:58 +09:00
Clemens Schwaighofer
6133da9069
phpunit test must be installed in www/ folder
...
Because www folder is source base, if phpunit is installed outside it
cannot find the classes
2023-02-22 06:31:50 +09:00
Clemens Schwaighofer
fa0b102d1a
Fix test file for Form\Generate
...
There is no global variable load anymore
Override table arrays have to be set on load
2023-02-17 13:19:59 +09:00
Clemens Schwaighofer
0e99700bbe
Composer vendor name change
2023-02-16 13:04:20 +09:00
Clemens Schwaighofer
2f0b9fb360
Move Fonts folder from lib to includes
2023-02-16 12:32:15 +09:00
Clemens Schwaighofer
c7cc3c2938
Move all dev tools from www composer to outside master composer
2023-02-13 16:36:51 +09:00
Clemens Schwaighofer
f508b607a6
Add new class for auto set vars to certain types or null
...
Convert\VarSetType for always return type expected (eg string will be string)
or Convert\VarSetTypeNull to return string or null on failure
The return value for failure if not matching type can be set for both, but
only for Convert\VarSetTypeNull the return value can be set to null.
v7.11.0
2023-02-08 12:12:46 +09:00
Clemens Schwaighofer
f94b350ba4
Install phan/phpstan local
2023-02-08 12:02:18 +09:00
Clemens Schwaighofer
53eef03387
Fixes in DB\IO query detection regex
...
- start with allow whitespace in front
- returning allows more white space types between keyword and parameter list
v7.10.8
2023-02-02 10:27:07 +09:00
Clemens Schwaighofer
5a81445a28
DB\IO table match regex fix
...
UPDATE with SET can have spaces with variable length before
v7.10.7
2023-01-27 11:31:26 +09:00
Clemens Schwaighofer
4bbbd653cd
DB\IO fix for regex query detection
...
Fix for basic query detection:
Simeple starts with
SELECT/WITH/SHOW
INSERT INTO/UPDATE/DELETE FROM
UPDATE
Above does no complex query detection, just if the string starts with this
Fix form table detection for primary key auto set trial.
v7.10.6
2023-01-27 11:12:46 +09:00
Clemens Schwaighofer
4c28e6d0ec
Change DB\IO Returning check regex
...
Better regex to only get last returning in query, with proper parameter
check
v7.10.5
2023-01-26 16:37:22 +09:00
Clemens Schwaighofer
66b7e81463
Bug fix in DB\IO for EOM string build queries with returning
...
on EOM string build queries it was not checked that RETURNING could have
no space in front.
Fixed and updated test calls
v7.10.4
2023-01-25 16:47:31 +09:00
Clemens Schwaighofer
cf58f86802
Remove not needed ?? '' in ACL\Login
v7.10.3
2023-01-16 14:29:25 +09:00