Revision 5307,
1.1 KB
checked in by pereira.jair, 13 years ago
(diff) |
Ticket #2416 - Inclusao da nova ferramenta de relatorios do workflow.
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | require_once(PHPGW_SERVER_ROOT.SEP.'workflow'.SEP.'inc'.SEP.'report'.SEP.'includes'.SEP.'classes'.SEP.'Listagem.class.php'); |
---|
4 | |
---|
5 | class wf_report |
---|
6 | { |
---|
7 | |
---|
8 | var $db; |
---|
9 | |
---|
10 | var $listagem; |
---|
11 | /** |
---|
12 | * Construtor da classe wf_log |
---|
13 | * @param array/string $logTypes Array ou String com o(s) tipo(s) de log(s) que deverᅵ(ᅵo) ser criado(s) |
---|
14 | * @return object Objeto do tipo wf_log |
---|
15 | * @access public |
---|
16 | */ |
---|
17 | public function wf_report() |
---|
18 | { |
---|
19 | $this->db = &Factory::getInstance('WorkflowObjects')->getDBWorkflow()->Link_ID->_connectionID; |
---|
20 | |
---|
21 | $this->listagem = new Listagem('wf_report','wf_report',$this->db); |
---|
22 | $this->listagem->setUrlBasePath($GLOBALS['phpgw_info']['server']['webserver_url'] . "/workflow/inc/report"); |
---|
23 | } |
---|
24 | |
---|
25 | function loadReport($idlisting) { |
---|
26 | $this->listagem->carregarIDListagem($idlisting); |
---|
27 | } |
---|
28 | function setParam($param_name,$value) { |
---|
29 | $this->listagem->setParametro($param_name,$value); |
---|
30 | } |
---|
31 | function getHTML() { |
---|
32 | ob_start(); |
---|
33 | $this->listagem->desenhar(); |
---|
34 | $html = ob_get_contents(); |
---|
35 | ob_end_clean(); |
---|
36 | return $html; |
---|
37 | } |
---|
38 | |
---|
39 | function getClass() { |
---|
40 | return $this->listagem; |
---|
41 | } |
---|
42 | |
---|
43 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.