Blog

PHP 8.1 is now supported + Users can join multiple groups + Custom Code API - V. 11.7 is out

Dear users,

it took more than expected but DaDaBIK finally supports PHP 8.

The ionCube loaders for PHP 8.1 are now available so you can run this new DaDaBIK 11.7 Elba on PHP 8.1, the latest stable version of PHP.

PHP 8.0 at the moment is not supported, maybe it will be in the future. PHP 7 is still supported.

There is more:

1) Users can now join multiple groups

This new version comes with a huge improvement, sponsored by one of our customer, related to permissions management: a user can now join multiple groups.

This means each user belongs to a (main) group plus one or more (optional, additional) groups.

How do permissions work now?

The permissions for a user will be computed considering all the groups the user belongs to (main group + additional groups), using a most permissive strategy. You can check the resulting permissions for each user in the new Permissions -> Show user Permissions page. All the details in the documentation, chapter "Permissions based on multiple groups"

By default this feature is enabled, you can disable it by setting $enable_multiple_groups_permissions to 0.

2) Custom Code API
A set of API functions will be released to make your custom code leaner, more readable and secure. In V 11.7, the first function, get_record_details(), has been released. In one code line you can get the field values of a record belonging to any of the tables you have in your database, without directly executing SQL queries. For example here I am getting all the info (name, address, ... ) of the customer having id 10:

$customer_info = get_record_details('customers', 'id', 10);

Finally a small but time-saving improvement: If the database $db_name you specify in your config_custom file doesn't exist, DaDaBIK tries to create it. This allows to create an application with DaDaBIK without using any external tool, not even for the creation of an empty database (experimental feature currently available for MySQL only).


There are also other changes and several bugs fixed so as usual I suggest to have a look at the change log.

You can buy your new license here.

You can upgrade your existing license (for free, if you are in your free upgrade period) here.

Best,

--
Eugenio Tacchini
DaDaBIK Founder

Top