Exemplo n.º 1
0
 /**
  * @param $object object
  * @return Row
  */
 protected function buildRow($object)
 {
     $row = new Row();
     $row->addCell($this->buildCell($object));
     return $row;
 }
Exemplo n.º 2
0
 /**
  * @param $object object
  * @return Row
  */
 protected function buildRow($object)
 {
     $row = new Row();
     foreach ($this->properties as $property) {
         if (!$property->getType()->isMultiple() || $property->getType()->getElementTypeAsString() != get_class($object)) {
             $row->addCell($this->buildCell($object, $property));
         }
     }
     return $row;
 }
Exemplo n.º 3
0
 /**
  * @return Table
  */
 private function getContentAsTable()
 {
     $table = new Table();
     $table->body = new Table\Body();
     foreach ($this->content as $content_row) {
         $row = new Table\Row();
         foreach ($content_row as $cell_content) {
             $row->addCell(new Table\Standard_Cell($cell_content));
         }
         $table->body->addRow($row);
     }
     return $table;
 }