src/Export/Pdf.php
private function drawFieldName()
    {
        $iTitulos = 0;
        $this->_page->setFont($this->_font, $this->_cellFontSize + 1);
        foreach ($this->_arrayForm['gridfieldsconfig'] as $field => $value) {
            if ((int) $this->_la == 0) {
                $this->_largura1 = 40;
            } else {
                $this->_largura1 = $this->_cell[$iTitulos - 1] + $this->_largura1;
            }

            $this->_page->setStyle($this->_topo);
            $this->_page->drawRectangle($this->_largura1, $this->_altura - 4, $this->_largura1 + $this->_cell[$iTitulos] + 1, $this->_altura + 12);
            $this->_page->setStyle($this->_styleText);

            $fieldName = $this->_arrayLocale->translate($field);

            $this->_page->drawText($fieldName, $this->_largura1 + 2, $this->_altura, 'UTF-8');
            $this->_la = $this->_largura1;

            $iTitulos++;
        }
        $this->_page->setFont($this->_font, $this->_cellFontSize);

        return $this;
    }
private function drawFieldName()
    {
        $iTitulos = 0;
        $this->_page->setFont($this->_font, $this->_cellFontSize + 1);
        foreach ($this->_arrayForm['gridfieldsconfig'] as $field => $value) {
            if ((int) $this->_la == 0) {
                $this->_largura1 = 40;
            } else {
                $this->_largura1 = $this->_cell[$iTitulos - 1] + $this->_largura1;
            }

            $this->_page->setStyle($this->_topo);
            $this->_page->drawRectangle($this->_largura1, $this->_altura - 4, $this->_largura1 + $this->_cell[$iTitulos] + 1, $this->_altura + 12);
            $this->_page->setStyle($this->_styleText);

            $fieldName = $this->_arrayLocale->translate($field);

            $this->_page->drawText($fieldName, $this->_largura1 + 2, $this->_altura, 'UTF-8');
            $this->_la = $this->_largura1;

            $iTitulos++;
        }
        $this->_page->setFont($this->_font, $this->_cellFontSize);

        return $this;
    }
private function drawFieldName ( ) { $ iTitulos = 0 ; $ this -> _page -> setFont ( $ this -> _font , $ this -> _cellFontSize + 1 ) ; foreach ( $ this -> _arrayForm [ 'gridfieldsconfig' ] as $ field => $ value ) { if ( ( int ) $ this -> _la == 0 ) { $ this -> _largura1 = 40 ; } else { $ this -> _largura1 = $ this -> _cell [ $ iTitulos - 1 ] + $ this -> _largura1 ; } $ this -> _page -> setStyle ( $ this -> _topo ) ; $ this -> _page -> drawRectangle ( $ this -> _largura1 , $ this -> _altura - 4 , $ this -> _largura1 + $ this -> _cell [ $ iTitulos ] + 1 , $ this -> _altura + 12 ) ; $ this -> _page -> setStyle ( $ this -> _styleText ) ; $ fieldName = $ this -> _arrayLocale -> translate ( $ field ) ; $ this -> _page -> drawText ( $ fieldName , $ this -> _largura1 + 2 , $ this -> _altura , 'UTF-8' ) ; $ this -> _la = $ this -> _largura1 ; $ iTitulos ++ ; } $ this -> _page -> setFont ( $ this -> _font , $ this -> _cellFontSize ) ; return $ this ; }
Desenha os campos em formato tabela
@param  type                          $this->_topo
@param  type                          $this->_styleText
@return \Cityware\Datagrid\Export\Pdf
Desenha os campos em formato tabela