/** * @return Head */ protected function buildHead() { $head = new Head(); $row = new Row(); foreach ($this->properties as $property) { if (!$property->getType()->isMultiple() || $property->getType()->getElementTypeAsString() != $property->getFinalClass()->name) { $cell = new Header_Cell(Loc::tr(Names::propertyToDisplay($property->getAnnotation('alias')->value), $this->class_name)); $row->addCell($cell); } } $head->addRow($row); return $head; }
/** * @return Head */ protected function buildHead() { $head = new Head(); $row = new Row(); foreach ($this->properties as $property) { $cell = new Header_Cell(Loc::tr(Names::propertyToDisplay($property->getAnnotation('alias')->value), $this->class_name)); $row->addCell($cell); } $head->addRow($row); return $head; }