Ejemplo n.º 1
0
 /**
  * Wraps the content cell in a <td> element
  *
  * @param TableCellModel $cell
  * @param string $tdClass
  * @return string
  * @internal param $cellValue
  * @internal param string $cellName
  */
 protected function printTableContentCell(TableCellModel $cell = null, $tdClass = "kolom")
 {
     $html = '<td class="' . $tdClass . '">';
     if (!is_null($cell)) {
         $html = sprintf("<td class=\"%s\">", $tdClass . " " . $cell->getSafeName());
         $html .= $this->dataStrategyResolver->resolveAndParse($cell->getValue(), $cell->getName());
     }
     $html .= '</td>';
     return $html;
 }
 /**
  * Wraps the content cell in a <td> element
  *
  * @param $dataStrategyResolver
  * @param TableCellModel $cell
  * @param string $tdClass
  * @return string
  */
 public static function printTableCell(StrategyResolver $dataStrategyResolver, TableCellModel $cell, $tdClass = "kolom")
 {
     return sprintf("<td class=\"%s\">", $tdClass . " " . $cell->getSafeName()) . $dataStrategyResolver->resolveAndParse($cell->getValue(), $cell->getName()) . '</td>';
 }