This way we ensure that a block always have the external resources from its ancestors as this will be necessary most of the time. From now on, the JS widget of the blocks will inherit from a common ancestor to factorize some mechanisms that are duplicates at many levels.
This can be disabled in a particular block by overloading the INCLUDE_ANCESTORS_DEFAULT_XXX_FILES constants in which case, only the external files of the block itself will be included.
* switch dashlet_badge widget init from js_template to js_on_ready_template
* add phpdoc on UIBlock::DEFAULT_JS_FILES_REL_PATH
* remove old code in \AjaxPage::output (after the return statement) that is already handled with the new Twig rendering
This will allow to use this everywhere !
Before this commit we had :
UiContentBlock
aCSSClasses
GetCssClasses
SetCssClasses // reset + add, existing callers
AddCSSClasses
Button
$aAdditionalCSSClasses
GetAdditionalCSSClass
AddCSSClasses
Now we have :
UiBlock
aAdditionalCSSClasses
AddCSSClasses
SetCSSClasses
GetAdditionalCSSClass
Note that there were also some methods in PopoverMenuItem :
PopoverMenuItem
SetCssClasses
AddCssClass
GetCssClasses
As they are indirection to methods in the $oPopupMenuItem attribute, I added to them the "MenuItem" prefix :
SetMenuItemCssClasses
AddMenuItemCssClass
GetMenuItemCssClasses
Didn't find any use to change.