N°3213 - Order transition attributes like in the "details" zlist instead of reordering them regarding the dependencies (#306)

N°3213 - Order transition attributes like in the "details" zlist instead of reordering them regarding the dependencies (#306)

---------

Co-authored-by: Molkobain <lajarige.guillaume@free.fr>
This commit is contained in:
Anne-Catherine
2023-06-08 17:29:53 +02:00
committed by GitHub
parent 99e84e86cd
commit cc8c6ac027
3 changed files with 12 additions and 24 deletions

View File

@@ -1540,7 +1540,7 @@ EOF;
// $oField
$sAttCode = $oField->getAttribute('id');
$sAttType = $oField->getAttribute('xsi:type');
$aParameters = $this->CompileAttribute($sAttType, $oField, $sModuleRelativeDir, $sClass, $sAttCode, $sCss, $aTagFieldsInfo, $sTempTargetDir);
@@ -1854,20 +1854,16 @@ EOF;
$this->aCustomListsCodes[] = $sListCode;
}
$sZlists .= "\n" . $this->GeneratePhpCodeForZlist($sListCode, $oListNode);
$sZlists .= "\n".$this->GeneratePhpCodeForZlist($sListCode, $oListNode);
}
// Methods
$oMethods = $oClass->GetUniqueElement('methods');
foreach($oMethods->getElementsByTagName('method') as $oMethod)
{
foreach ($oMethods->getElementsByTagName('method') as $oMethod) {
$sMethodCode = $oMethod->GetChildText('code');
if ($sMethodComment = $oMethod->GetChildText('comment', null))
{
if ($sMethodComment = $oMethod->GetChildText('comment', null)) {
$sMethods .= "\n\t$sMethodComment\n".$sMethodCode."\n";
}
else
{
} else {
$sMethods .= "\n\n".$sMethodCode."\n";
}
}