pass context for attributes to hooks and [document|folder]ListRow()

This commit is contained in:
Uwe Steinmann 2016-08-03 13:26:08 +02:00
parent 119f6430e6
commit 75d6678e2c

View File

@ -244,11 +244,11 @@ function folderSelected(id, name) {
$attrdef = $attrdefarr['attrdef'];
$attribute = $folder->getAttribute($attrdef);
if($attribute) {
$arr = $this->callHook('showFolderAttribute', $folder, $attribute);
$arr = $this->callHook('showFolderAttribute', $folder, $attribute, SeedDMS_Core_AttributeDefinitionGroup::show_details);
if(is_array($arr)) {
echo "<tr>";
echo "<td>".$arr[0].":</td>";
echo "<td>".$arr[1].":</td>";
echo "<td>".$arr[1]."</td>";
echo "</tr>";
} else {
$this->printAttribute($attribute);
@ -261,11 +261,11 @@ function folderSelected(id, name) {
$attributes = $folder->getAttributes();
if($attributes) {
foreach($attributes as $attribute) {
$arr = $this->callHook('showFolderAttribute', $folder, $attribute);
$arr = $this->callHook('showFolderAttribute', $folder, $attribute, SeedDMS_Core_AttributeDefinitionGroup::show_details);
if(is_array($arr)) {
echo "<tr>";
echo "<td>".$arr[0].":</td>";
echo "<td>".$arr[1].":</td>";
echo "<td>".$arr[1]."</td>";
echo "</tr>";
} else {
$this->printAttribute($attribute);
@ -323,7 +323,7 @@ function folderSelected(id, name) {
if(is_string($txt))
echo $txt;
else {
echo $this->folderListRow($subFolder);
echo $this->folderListRow($subFolder, SeedDMS_Core_AttributeDefinitionGroup::show_list);
}
}
@ -333,7 +333,7 @@ function folderSelected(id, name) {
if(is_string($txt))
echo $txt;
else {
echo $this->documentListRow($document, $previewer);
echo $this->documentListRow($document, $previewer, false, 0, SeedDMS_Core_AttributeDefinitionGroup::show_list);
}
}