예제 #1
0
파일: Map.php 프로젝트: TuxBoy/Demo-saf
 /**
  * @param $object object
  * @return Row
  */
 protected function buildRow($object)
 {
     $row = new Row();
     $row->addCell($this->buildCell($object));
     return $row;
 }
예제 #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;
 }
예제 #3
0
파일: Element.php 프로젝트: TuxBoy/Demo-saf
 /**
  * @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;
 }