function _getDefaultValuesFields($params)
 {
     $mdFactory = new Docman_MetadataFactory($this->newItem->getGroupId());
     $inheritableMda = $mdFactory->getInheritableMdLabelArray(true);
     $mdIter = $this->newItem->getMetadataIterator();
     $mdHtmlFactory = new Docman_MetadataHtmlFactory();
     return $mdHtmlFactory->buildFieldArray($mdIter, $inheritableMda, true, $params['form_name'], $params['theme_path']);
 }
 function buildFieldArray($mdIter, $params)
 {
     $formName = '';
     if (isset($params['form_name'])) {
         $formName = $params['form_name'];
     }
     $themePath = '';
     if (isset($params['theme_path'])) {
         $themePath = $params['theme_path'];
     }
     $mdHtmlFactory = new Docman_MetadataHtmlFactory();
     return $mdHtmlFactory->buildFieldArray($mdIter, $this->mdLabelToSkip, false, $formName, $themePath);
 }
 function _getInheritableMetadata()
 {
     if ($this->inheritableMetadataArray === null) {
         $mdFactory = new Docman_MetadataFactory($this->item->getGroupId());
         $inheritableMda = $mdFactory->getInheritableMdLabelArray(true);
         $mdIter = $this->item->getMetadataIterator();
         $mdHtmlFactory = new Docman_MetadataHtmlFactory();
         $this->inheritableMetadataArray = $mdHtmlFactory->buildFieldArray($mdIter, $inheritableMda, true, $this->formName, $this->theme_path);
     }
     return $this->inheritableMetadataArray;
 }