/**
  * Simply returns the value of an attribute of an article.
  *
  * @param array $parameter Parameter
  *
  * @return string
  */
 public function displayAttributeValue(array $parameter)
 {
     $database = $this->getDatabaseConnection();
     // attribute value uid
     $aUid = $parameter['fieldConf']['config']['aUid'];
     $relRes = $database->exec_SELECTquery('uid_valuelist,default_value,value_char', 'tx_commerce_articles_article_attributes_mm', 'uid_local = ' . (int) $parameter['row']['uid'] . ' AND uid_foreign = ' . (int) $aUid);
     $attributeData = $this->belib->getAttributeData($aUid, 'has_valuelist,multiple,unit');
     $relationData = null;
     if ($attributeData['multiple'] == 1) {
         while ($relData = $database->sql_fetch_assoc($relRes)) {
             $relationData[] = $relData;
         }
     } else {
         $relationData = $database->sql_fetch_assoc($relRes);
     }
     return htmlspecialchars(strip_tags($this->belib->getAttributeValue($parameter['row']['uid'], $aUid, 'tx_commerce_articles_article_attributes_mm', $relationData, $attributeData)));
 }