source: branches/1.2/workflow/inc/local/classes/class.wf_log.php @ 1349

Revision 1349, 924 bytes checked in by niltonneto, 15 years ago (diff)

Ticket #561 - Inclusão do módulo Workflow faltante nessa versão.

  • Property svn:executable set to *
Line 
1<?php
2
3require_once(PHPGW_SERVER_ROOT.SEP.'workflow'.SEP.'inc'.SEP.'class.Logger.inc.php');
4
5/**
6 * Geração de logs.
7 * @license http://www.gnu.org/copyleft/gpl.html GPL
8 * @author Guilherme Striquer Bisotto - gbisotto@celepar.pr.gov.br
9 * @package Workflow
10 * @subpackage local
11 */
12class wf_log extends Logger
13{
14
15        /**
16         * Construtor da classe wf_log
17         * @param array/string $logTypes Array ou String com o(s) tipo(s) de log(s) que deverá(ão) ser criado(s)
18         * @return object Objeto do tipo wf_log
19         * @access public
20         */
21        public function wf_log($logTypes = 'file')
22        {
23                $processName = $GLOBALS['workflow']['wf_normalized_name'];
24                if(empty($processName))
25                        throw new Exception(lang('Cannot find out the process name'));
26
27                $processId = $GLOBALS['workflow']['wf_process_id'];
28                if(empty($processId))
29                        throw new Exception('Cannot fint out the process id ');
30
31                parent::Logger($logTypes, $processId, $processName);
32        }
33}
34?>
Note: See TracBrowser for help on using the repository browser.