Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:entwickler:make_your_plugin_compatible_to_admidio_5 [2025/02/28 08:10] – [Introducing namespaces] fasseen:entwickler:make_your_plugin_compatible_to_admidio_5 [2025/04/03 21:05] (current) – [Method changes] fasse
Line 1: Line 1:
 ====== Make your plugin compatible to Admidio 5 ====== ====== Make your plugin compatible to Admidio 5 ======
 +===== Using Bootstrap 5 =====
 +Admidio 5 uses Bootstrap 5. So therefore you have to convert your Bootstrap customizations to Bootstrap 5. View [[https://getbootstrap.com/docs/5.3/migration/|Migration document]] of Bootstrap 5.
 ===== Changes to HtmlForm ===== ===== Changes to HtmlForm =====
 The entry list of the parameter ''$options'' has changed. The entry ''helpTextIdInline'' is replaced by the existing entry ''helpTextId''. The entry list of the parameter ''$options'' has changed. The entry ''helpTextIdInline'' is replaced by the existing entry ''helpTextId''.
Line 13: Line 15:
 Instead of ''Language::isTranslationStringId()'' use ''Admidio\Infrastructure\Language::isTranslationStringId()''\\  Instead of ''Language::isTranslationStringId()'' use ''Admidio\Infrastructure\Language::isTranslationStringId()''\\ 
  
 +If you have used the class ''TableAccess'' then you must now use the ''Entity'' class which has the same methods but another name and uses namespaces. So your existing code like <code PHP>$myDatabaseObject = new TableAccess($gDb, 'adm_my_table', 'myt');</code> must now look like this: <code PHP>use Admidio\Infrastructure\Entity\Entity;
 +
 +$myDatabaseObject = new Entity($gDb, 'adm_my_table', 'myt');</code>
 +
 +If you have used several classes of Admidio like SecurityUtils you must now integrate the following line at the top of your file <code php>use Admidio\Infrastructure\Utils\StringUtils;</code>
 +===== Method changes =====
 +The following methods have changed their names for better understanding about the functions of that method:\\ 
 +''Users::manageRoles()'' changes to ''Users::isAdministratorRoles()''\\ 
 +''Users::assignRoles()'' changes to ''Users::isAdministratorRoles()''\\ 
 +''Users::editUsers()'' changes to ''Users::isAdministratorUsers()''
  • en/entwickler/make_your_plugin_compatible_to_admidio_5.1740726620.txt.gz
  • Last modified: 2025/02/28 08:10
  • by fasse