-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Nova funcionalidade de paginação no footer dos relatórios.
- Loading branch information
Ítalo Lelis de Vietro
committed
Mar 26, 2014
1 parent
3a80b79
commit f2fc4c0
Showing
6 changed files
with
263 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<?php | ||
|
||
/* | ||
* Copyright 2014 kelsoncm <[email protected]>. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
namespace Umbrella\SimpleReport\Renderer; | ||
|
||
/** | ||
* @author Ítalo Lelis de Vietro <[email protected]> | ||
*/ | ||
class GroupHtmlRenderer extends HtmlRenderer | ||
{ | ||
|
||
protected function renderTableBodyRows() | ||
{ | ||
for ($this->datasource->rewind(); $this->datasource->valid(); $this->datasource->next()) { | ||
$this->doWriteTableBodyRowStart(); | ||
$this->renderTableBodyFields(); | ||
$this->doWriteTableBodyRowEnd(); | ||
} | ||
} | ||
|
||
protected function renderTableBodyFields() | ||
{ | ||
foreach ($this->template->getFields() as $fieldDescription) { | ||
$this->doWriteTableBodyDataStart(); | ||
|
||
echo $this->getValue($this->datasource, $fieldDescription, ''); | ||
|
||
$this->doWriteTableBodyDataEnd(); | ||
} | ||
} | ||
|
||
protected function renderTableBodyGroupedFields() | ||
{ | ||
foreach ($this->template->getFields() as $fieldDescription) { | ||
$this->doWriteTableBodyDataStart(); | ||
echo $this->getValue($this->datasource, $fieldDescription, ''); | ||
$this->doWriteTableBodyDataEnd(); | ||
} | ||
} | ||
|
||
protected function doWriteTableBodyRowStart() | ||
{ | ||
echo $this->getOption('table.body.row.start'); | ||
} | ||
|
||
protected function doWriteTableBodyDataStart() | ||
{ | ||
echo $this->getOption('table.body.data.start'); | ||
} | ||
|
||
protected function doWriteTableBodyDataEnd() | ||
{ | ||
echo $this->getOption('table.body.data.end'); | ||
} | ||
|
||
protected function doWriteTableBodyRowEnd() | ||
{ | ||
echo $this->getOption('table.body.row.end'); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.