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())); ?> | -