示例#1
0
 /**
  * @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;
 }
示例#2
0
文件: Map.php 项目: TuxBoy/Demo-saf
 /**
  * @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;
 }