Revision 795,
924 bytes
checked in by viani, 15 years ago
(diff) |
Ticket #488 - Inclusão do módulo workflow no ramo trunk do repositório Expresso.
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | require_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 | */ |
---|
12 | class 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.