use new method getValueAsArray() for showing attributes

This commit is contained in:
Uwe Steinmann 2014-11-13 08:21:49 +01:00
parent 86ba6aa6a6
commit 99590a322d
4 changed files with 8 additions and 8 deletions

View File

@ -120,7 +120,7 @@ class SeedDMS_View_DocumentVersionDetail extends SeedDMS_Bootstrap_Style {
?> ?>
<tr> <tr>
<td><?php echo htmlspecialchars($attrdef->getName()); ?>:</td> <td><?php echo htmlspecialchars($attrdef->getName()); ?>:</td>
<td><?php echo htmlspecialchars($attribute->getValue()); ?></td> <td><?php echo htmlspecialchars(implode(', ', $attribute->getValueAsArray())); ?></td>
</tr> </tr>
<?php <?php
} }

View File

@ -475,7 +475,7 @@ class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style {
if($lcattributes) { if($lcattributes) {
foreach($lcattributes as $lcattribute) { foreach($lcattributes as $lcattribute) {
$attrdef = $lcattribute->getAttributeDefinition(); $attrdef = $lcattribute->getAttributeDefinition();
print "<li>".htmlspecialchars($attrdef->getName()).": ".htmlspecialchars($lcattribute->getValue())."</li>\n"; print "<li>".htmlspecialchars($attrdef->getName()).": ".htmlspecialchars(implode(', ', $lcattribute->getValueAsArray()))."</li>\n";
} }
} }
print "</ul>\n"; print "</ul>\n";
@ -484,7 +484,7 @@ class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style {
if($docttributes) { if($docttributes) {
foreach($docttributes as $docttribute) { foreach($docttributes as $docttribute) {
$attrdef = $docttribute->getAttributeDefinition(); $attrdef = $docttribute->getAttributeDefinition();
print "<li>".htmlspecialchars($attrdef->getName()).": ".htmlspecialchars($docttribute->getValue())."</li>\n"; print "<li>".htmlspecialchars($attrdef->getName()).": ".htmlspecialchars(implode(', ', $docttribute->getValueAsArray()))."</li>\n";
} }
} }
print "</ul>\n"; print "</ul>\n";
@ -549,7 +549,7 @@ class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style {
if($folderattributes) { if($folderattributes) {
foreach($folderattributes as $folderattribute) { foreach($folderattributes as $folderattribute) {
$attrdef = $folderattribute->getAttributeDefinition(); $attrdef = $folderattribute->getAttributeDefinition();
print "<li>".htmlspecialchars($attrdef->getName()).": ".htmlspecialchars($folderattribute->getValue())."</li>\n"; print "<li>".htmlspecialchars($attrdef->getName()).": ".htmlspecialchars(implode(', ', $folderattribute->getValueAsArray()))."</li>\n";
} }
} }
print "</td>"; print "</td>";

View File

@ -241,7 +241,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
?> ?>
<tr> <tr>
<td><?php echo htmlspecialchars($attrdef->getName()); ?>:</td> <td><?php echo htmlspecialchars($attrdef->getName()); ?>:</td>
<td><?php echo htmlspecialchars($attribute->getValue()); ?></td> <td><?php echo htmlspecialchars(implode(', ', $attribute->getValueAsArray())); ?></td>
</tr> </tr>
<?php <?php
} }
@ -345,7 +345,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
if($attributes) { if($attributes) {
foreach($attributes as $attribute) { foreach($attributes as $attribute) {
$attrdef = $attribute->getAttributeDefinition(); $attrdef = $attribute->getAttributeDefinition();
print "<li>".htmlspecialchars($attrdef->getName()).": ".htmlspecialchars($attribute->getValue())."</li>\n"; print "<li>".htmlspecialchars($attrdef->getName()).": ".htmlspecialchars(implode(', ', $attribute->getValueAsArray()))."</li>\n";
} }
} }
print "</ul>\n"; print "</ul>\n";
@ -933,7 +933,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
if($attributes) { if($attributes) {
foreach($attributes as $attribute) { foreach($attributes as $attribute) {
$attrdef = $attribute->getAttributeDefinition(); $attrdef = $attribute->getAttributeDefinition();
print "<li>".htmlspecialchars($attrdef->getName()).": ".htmlspecialchars($attribute->getValue())."</li>\n"; print "<li>".htmlspecialchars($attrdef->getName()).": ".htmlspecialchars(implode(', ', $attribute->getValueAsArray()))."</li>\n";
} }
} }
print "</ul>\n"; print "</ul>\n";

View File

@ -183,7 +183,7 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style {
?> ?>
<tr> <tr>
<td><?php echo htmlspecialchars($attrdef->getName()); ?>:</td> <td><?php echo htmlspecialchars($attrdef->getName()); ?>:</td>
<td><?php echo htmlspecialchars($attribute->getValue()); ?></td> <td><?php echo htmlspecialchars(implode(', ', $attribute->getValueAsArray())); ?></td>
</tr> </tr>
<?php <?php
} }