Clemens Schwaighofer
d56ee68482
Fix missing default null in setSmartyVarsFrontend
2023-03-13 10:36:05 +09:00
Clemens Schwaighofer
b89ab09e12
SmartyExtend parameter phpdoc order fix
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
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
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'
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
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
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
2023-02-28 10:31:34 +09:00
Clemens Schwaighofer
829f5c567f
Update composer autoload map files
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
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.
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
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
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.
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
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
2023-01-25 16:47:31 +09:00
Clemens Schwaighofer
cf58f86802
Remove not needed ?? '' in ACL\Login
2023-01-16 14:29:25 +09:00
Clemens Schwaighofer
ff644310cd
Readme file update
2023-01-11 09:22:18 +09:00
Clemens Schwaighofer
58988b9c0f
Rename edit schemes pages to schemas
2023-01-11 09:12:56 +09:00
Clemens Schwaighofer
fe75f1d724
Add missing table arrays and name fix schim
...
missed two table arrays as class EditVisibleGroup and EditAccess
also fix wrong name for EditSchemas (wrong: EditSchemes) with a shim
lookup.
edit_schemes.php file will stay the same for now.
2023-01-11 07:06:28 +09:00
Clemens Schwaighofer
0607cdc3be
Add logger $log public entry in Form class
...
We need that for sub calls to debugger from TableArray loads
2023-01-10 18:19:20 +09:00
Clemens Schwaighofer
6cb14daf49
Move includes/table_arrays to class Output\Form\TableArrays
...
also remove the legacy edit_base.LEGACY.php file
All previous includes/table_arrays load via include are now moved to a
class system so we have all implemented in one folder and can easy update
and add unit tests to it.
2023-01-10 18:04:29 +09:00
Clemens Schwaighofer
330582f273
Add $this identifier to class in array_edit_users
2023-01-10 16:42:42 +09:00
Clemens Schwaighofer
b0293b52bd
Fix edit_users load problem with removed globals
...
acl_admin/base_acl_leve
Added public access methods to read this when array_* files are included.
2023-01-10 16:01:02 +09:00
Clemens Schwaighofer
00591deb00
Add Check Color class
...
checks html/css color string for valid
eg, hex #, hex alpha #, rgb/rgba, hsl/hsla
2023-01-10 15:43:33 +09:00
Clemens Schwaighofer
737f70fac5
Fix phpdoc Exception name with missing \
2023-01-10 14:40:16 +09:00
Clemens Schwaighofer
0328ccd2fe
Convert\Colors fixes for from HSB/HSL Hue 360
...
If hue 360 is given, it is no longer an error but internally converted to 0
2023-01-10 14:07:01 +09:00
Clemens Schwaighofer
eba1e2885f
Convert\Byte add exception
...
And exception is thrown for invalid flags
2023-01-10 14:06:09 +09:00
Clemens Schwaighofer
53813261fb
Form\Generate update
...
- remove auto load _POST vars
- Update color settings to # leading 6/8 digit hex code
- remove any global variable calls/requests
- fix some isset/empty clean ups (isset + set = !empty)
- fix on delete of reference data that loaded data was not shown again
- fix on reference data save error that wrong data is still shown and not removed
2023-01-10 11:25:51 +09:00
Clemens Schwaighofer
df2ae66942
Bug fix for loading after new/save/delete
2023-01-06 15:16:01 +09:00
Clemens Schwaighofer
78e1d73cd9
Move code from edit_base.php to class file
2023-01-06 15:07:15 +09:00
Clemens Schwaighofer
620a5878c1
Update dotenv reader from Composer package
2023-01-06 10:51:12 +09:00
Clemens Schwaighofer
5a0b09a916
Add DB\IO get prepare cursor array entries
2023-01-05 17:26:26 +09:00
Clemens Schwaighofer
98c6033c75
mo to js script set exectueable
2023-01-05 15:31:35 +09:00
Clemens Schwaighofer
6dcebc9b67
mo to js shell script
2023-01-05 15:30:51 +09:00
Clemens Schwaighofer
c97520e186
Update flatpickr javascript lib
2023-01-05 15:14:08 +09:00
Clemens Schwaighofer
764ca1f098
fix Generate\Form test with missing session init
2023-01-05 11:32:39 +09:00
Clemens Schwaighofer
3d23e5b066
Composer update
2023-01-05 10:55:01 +09:00
Clemens Schwaighofer
90e418ba24
Smarty update to 4.3.0
2023-01-05 10:38:51 +09:00
Clemens Schwaighofer
b6a0937e0c
autoloader update
2022-12-28 17:46:40 +09:00
Clemens Schwaighofer
b3f6f8ef18
Raname Progressbar.php to ProgressBar.php
2022-12-28 16:14:38 +09:00
Clemens Schwaighofer
d9d5400498
Add Test for get run times for unrun queryies
2022-12-28 11:31:39 +09:00
Clemens Schwaighofer
b1be681afb
Bug fix in DB\IO for wrong array check
...
Did not use empty to check if query called hash entry exists
2022-12-28 11:26:56 +09:00
Clemens Schwaighofer
8ef309d479
PHP unit 8.2, cel builder br/input fix, doctype add, sync .user.ini
...
- do not sync .user.ini file in sync template
- add PHP 8.2 for test target phpunit
- cel/phfo builder update to not close br or img tags (besides input)
- psalm settings update
- add doctype to all base templates
2022-12-27 16:58:51 +09:00
Clemens Schwaighofer
6e59b63791
DB\IO phpdoc and phpstan fixes
2022-12-14 14:18:33 +09:00
Clemens Schwaighofer
9c7b3cea83
SQL Interface docstring fix
2022-12-14 13:53:54 +09:00
Clemens Schwaighofer
26af6a07f4
PHP unit tests updates for class changes
2022-12-09 16:53:10 +09:00
Clemens Schwaighofer
b7c6d4b478
DB\IO add unescape bytea data
2022-12-09 16:33:58 +09:00
Clemens Schwaighofer
9936fc04da
Convert\Byte class fix string in abs call
2022-12-09 16:33:47 +09:00
Clemens Schwaighofer
1e0dfa2106
Update documentation for Convert\Byte Class
...
add more info in parameters flag
2022-12-09 13:43:15 +09:00
Clemens Schwaighofer
3af6f6a8f0
edit interface, hard set edit.css style sheet
2022-12-07 06:56:47 +09:00
Clemens Schwaighofer
1e793c0d16
Switch all SQL from tab to spaces
2022-12-06 09:27:08 +09:00
Clemens Schwaighofer
5be34453ce
Fix in Smarty Template class and PAGE WIDTH set
2022-11-10 10:26:59 +09:00
Clemens Schwaighofer
7773b78e17
Fix in CoreLib Bytes for null to trim
2022-11-09 18:11:14 +09:00
Clemens Schwaighofer
2a3798c8c2
Create mo file update, basic edit css/javascript updates
2022-10-25 16:48:34 +09:00
Clemens Schwaighofer
bc8303fe5f
Composer update
2022-10-25 16:48:12 +09:00
Clemens Schwaighofer
ba89b188d9
Mo create script update, phpstan fixes, document updates
...
create_mo:
set auto base folder bases on current location so we do not need do
adjust paths in script
phpstan fixes:
edit_base.php
CoreLibs/Basci.php
CoreLibs/DB/SQL/PgSQL.php
Update documentation in method headers
CoreLibs/Combined/DateTime.php
2022-10-12 09:48:22 +09:00
Clemens Schwaighofer
d15618cde4
Add JS_TRANSLATE file to smart template flow
2022-10-04 17:35:46 +09:00
Clemens Schwaighofer
0fd89727e9
Update Output\Form to allow ACL controlled edit/view entries
...
Fixed phpunit test runs with encoding test run and not resetting the
subsitute character back to default
Note: There are mime encoding failures for php 7.4 and 8.0 and one ACL
login failure test for php 7.4
2022-09-06 11:17:03 +09:00
Clemens Schwaighofer
a8e75d158b
Update composer installed packages
2022-09-06 11:16:33 +09:00
Clemens Schwaighofer
4b3fbaa309
Updates based on latest phpstan run
2022-09-02 17:00:22 +09:00
Clemens Schwaighofer
1a6c65df0e
Minor test updates, comment typo updates, DB_CONFIG_SET for default
...
$DB_CONFIG_SET is now default current selcted db config instead of
$DB_CONFIG so to not overwrite the array itself
2022-08-05 12:43:57 +09:00
Clemens Schwaighofer
24f553a17e
Update comments for split element counter
2022-07-29 13:20:54 +09:00
Clemens Schwaighofer
9a3ea2f7db
update strings class with split counter method
2022-07-29 13:19:45 +09:00
Clemens Schwaighofer
bcdb877d90
Phan/phpstan fixes
2022-07-29 11:06:53 +09:00
Clemens Schwaighofer
6d0e528c38
Combined\Datetime date/number to weekday conversion
...
Convert functions for date or weekday number to weekday name or date to
weekday number
2022-07-29 11:02:25 +09:00
Clemens Schwaighofer
7e6474195b
String split format fix for non ascii characters
...
Currently just abort and return string as is
2022-07-29 10:38:32 +09:00
Clemens Schwaighofer
1795d3ba6c
String convert class added
...
Currently with one method: splitFormatString
Converts a string to a string with separater characters based on a
format string
2022-07-29 07:00:02 +09:00
Clemens Schwaighofer
e1340acf55
Class header info string fix
2022-07-29 06:59:33 +09:00
Clemens Schwaighofer
b5ead3e266
Minor code block comment clean ups
2022-07-15 17:42:38 +09:00
Clemens Schwaighofer
f5daaca598
Fixes for Create\Email docstrings
2022-07-08 17:25:45 +09:00
Clemens Schwaighofer
6b4f310cd2
Email\Sending add dedicated kv folding flag
...
kv folding is now done via flag and only if an encoded is detected that
is japanese or UTF-8
2022-07-04 15:45:51 +09:00
Clemens Schwaighofer
7b5bddb529
Create\Email fixes
...
Remove not needed reaplce content count for first global replace
Move logger out of test only and log if a logger class is attached
2022-07-01 08:57:14 +09:00
Clemens Schwaighofer
0a6fdf1248
Use logged encoding from JSON debug block for non UTF-8 tests
2022-06-30 18:18:17 +09:00
Clemens Schwaighofer
3220180d58
Bug fix in Email for encoding subject/body with empty replace
...
Also store encoding in json log if test and debug print is given
2022-06-30 18:16:28 +09:00
Clemens Schwaighofer
8c8f14ec74
Fix logging per run to be setable not only on start
...
Move per run set into method.
Add set/get method and add set method override (set new) flag
Update phpUnit testing and move providers to test methods
2022-06-30 18:15:36 +09:00
Clemens Schwaighofer
643991c3fd
Update Debug\Support, add Create\Email
...
update debug support to add html escape for html strings on request.
Default is keep as is. debugString gets new third parameter for this as
bool flag.
Add Create\Email to send basic text emails to several too addresses.
Content replace in subject and body is possible with {} entries.
Default encoding is UTF-8 but others can be set and content will be
converted to this.
The dynamic replace works on all data or can be set per receiver.
2022-06-28 17:29:31 +09:00
Clemens Schwaighofer
c81c46d426
Move read_env_file.php to deprecated folder
2022-06-23 14:46:19 +09:00
Clemens Schwaighofer
d97b173ee7
ACL\Login move public var to private: login
...
the former public var $login is now private and if it is set can be
checked with loginActionSet (true if login_login was in _POST as login
action.
Some info update for phpUnit ACL\Login test file
2022-06-23 09:12:46 +09:00