mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
write status log into xml file
This commit is contained in:
parent
01c30a0b8a
commit
42eaabfd2d
|
@ -224,6 +224,18 @@ function tree($folder, $parent=null, $indent='', $skipcurrent=false) { /* {{{ */
|
|||
echo $indent." <attr type=\"user\" attrdef=\"".$attrdef->getID()."\">".$attribute->getValue()."</attr>\n";
|
||||
}
|
||||
}
|
||||
if($statuslog = $version->getStatusLog()) {
|
||||
echo $indent." <status id=\"".$statuslog[0]['statusID']."\">\n";
|
||||
foreach($statuslog as $entry) {
|
||||
echo $indent." <statuslog>\n";
|
||||
echo $indent." <attr name=\"status\">".$entry['status']."</attr>\n";
|
||||
echo $indent." <attr name=\"comment\">".wrapWithCData($entry['comment'])."</attr>\n";
|
||||
echo $indent." <attr name=\"date\">".$entry['date']."</attr>\n";
|
||||
echo $indent." <attr name=\"user\">".$entry['userID']."</attr>\n";
|
||||
echo $indent." </statuslog>\n";
|
||||
}
|
||||
echo $indent." </status>\n";
|
||||
}
|
||||
if($approvalStatus) {
|
||||
echo $indent." <approvals>\n";
|
||||
$curapprovalid = 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user