These classes are an outline of what should be for xoops, in reality, their function should replace that code integrated in other classes xoops. To give an example:
echo ';
echo '';
echo '' | ._AM_TDMCREATE_NAME.'';
echo '' | ._AM_TDMCREATE_IMAGE.'';
echo '' | ._AM_TDMCREATE_DISPLAY_ADMIN.'';
echo '' | ._AM_TDMCREATE_DISPLAY_USER.'';
echo '' | ._AM_TDMCREATE_BLOCKS.'';
echo '' | ._AM_TDMCREATE_NB_CHAMPS.'';
echo '' | ._AM_TDMCREATE_FORMACTION.'';
echo '';
This code above would be taken up with this:
$table = new XoopsHtmlTable ($rows, $caption = '', $frame = '', $rules = '', $cellspacing = '', $cellpadding = '', $class = '', $id = '');
echo $table->addRow($attributes, _AM_TDMCREATE_NAME);
...
As you can see in the code above I added a line that integrates a part of php code, but this is still extended.
Some variables, such as attributes, are arrays that contain the properties of html tags, so can be integrated in a small code space.
The same is true of content, such as variable definitions _AM_TDMCREATE_NAME, these can be listed in an array and then integrated in this way:
$defines = array(_AM_TDMCREATE_NAME, _AM_TDMCREATE_IMAGE, _AM_TDMCREATE_DISPLAY_ADMIN, _AM_TDMCREATE_DISPLAY_USER, _AM_TDMCREATE_BLOCKS, _AM_TDMCREATE_NB_CHAMPS, _AM_TDMCREATE_FORMACTION);
echo $table->addRows($attributes, $defines);
...
I hope this is clear enough.