Clemens Schwaighofer
b696338324
Install Smarty Composer package
2023-02-17 11:23:53 +09:00
Clemens Schwaighofer
43e66edfd1
Composer installed CoreLibs
2023-02-16 17:13:30 +09:00
Clemens Schwaighofer
2f0b9fb360
Move Fonts folder from lib to includes
2023-02-16 12:32:15 +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
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
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
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
90e418ba24
Smarty update to 4.3.0
2023-01-05 10:38:51 +09:00
Clemens Schwaighofer
b3f6f8ef18
Raname Progressbar.php to ProgressBar.php
2022-12-28 16:14:38 +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
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
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
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
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
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
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