Ejemplo n.º 1
0
 /**
  * @param $news
  * @param $table
  * @return base_html_model_table_Row
  * @throws base_html_model_Exception
  */
 private function _createContentRow(News $news, base_html_model_Table $table)
 {
     $content = $news['content'];
     if (strlen($content) > 400) {
         $content = $this->_shortenContent($content);
     }
     $row = new base_html_model_table_Row();
     $contentCell = new base_html_model_table_Cell();
     $contentCell->setCssClass('content');
     $contentCell->setContent($content);
     $contentCell->setColSpan(2);
     $row->addCell($contentCell);
     $table->addRow($row);
     return $row;
 }