diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php index 79d5abfa7..87f75da71 100644 --- a/views/bootstrap/class.ViewDocument.php +++ b/views/bootstrap/class.ViewDocument.php @@ -31,7 +31,7 @@ require_once("class.Bootstrap.php"); */ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { - function getAccessModeText($defMode) { /* {{{ */ + protected function getAccessModeText($defMode) { /* {{{ */ switch($defMode) { case M_NONE: return getMLText("access_mode_none"); @@ -48,7 +48,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { } } /* }}} */ - function printAccessList($obj) { /* {{{ */ + protected function printAccessList($obj) { /* {{{ */ $accessList = $obj->getAccessList(); if (count($accessList["users"]) == 0 && count($accessList["groups"]) == 0) return; @@ -71,6 +71,22 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { } } /* }}} */ + /** + * Output a single attribute in the document info section + * + * @param object $attribute attribute + */ + protected function printAttribute($attribute) { /* {{{ */ + $attrdef = $attribute->getAttributeDefinition(); +?> + + getName()); ?>: + getValueAsArray())); ?> + +params['dms']; @@ -95,11 +111,16 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { if ($document->isLocked()) { $lockingUser = $document->getLockingUser(); + $txt = $this->callHook('documentIsLocked', $document, $lockingUser); + if(is_string($txt)) + echo $txt; + else { ?>
$lockingUser->getEmail(), "username" => htmlspecialchars($lockingUser->getFullName())));?>
contentHeading(getMLText("document_infos")); $this->contentContainerStart(); + $txt = $this->callHook('documentInfos', $document); + if(is_string($txt)) + echo $txt; + else { ?> getAttributes(); if($attributes) { foreach($attributes as $attribute) { - $attrdef = $attribute->getAttributeDefinition(); -?> - - - - -printAttribute($attribute); } } ?>
getName()); ?>:getValueAsArray())); ?>
contentContainerEnd(); ?>