/**
  * Gets a table cell for all values of a property of a subject.
  *
  * @since 1.6.1
  *
  * @param SMWResultArray $resultArray
  * @param int $outputMode
  * @param string $columnClass
  *
  * @return string
  */
 protected function getCellForPropVals(SMWResultArray $resultArray, $outputMode, $columnClass)
 {
     $dataValues = array();
     while (($dv = $resultArray->getNextDataValue()) !== false) {
         $dataValues[] = $dv;
     }
     $attributes = array();
     $content = null;
     if (count($dataValues) > 0) {
         $sortKey = $dataValues[0]->getDataItem()->getSortKey();
         $dataValueType = $dataValues[0]->getTypeID();
         if (is_numeric($sortKey)) {
             $attributes['data-sort-value'] = $sortKey;
         }
         $alignment = trim($resultArray->getPrintRequest()->getParameter('align'));
         if (in_array($alignment, array('right', 'left', 'center'))) {
             $attributes['style'] = "text-align:' . {$alignment} . ';";
         }
         $attributes['class'] = $columnClass . ($dataValueType !== '' ? ' smwtype' . $dataValueType : '');
         $content = $this->getCellContent($dataValues, $outputMode, $resultArray->getPrintRequest()->getMode() == PrintRequest::PRINT_THIS);
     }
     $this->htmlTableRenderer->addCell($content, $attributes);
 }