source: branches/1.2/workflow/inc/local/functions/function.wf_create_object.php @ 1349

Revision 1349, 583 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/**
3 * Creates an instance from a class requested by user
4 * @param string $class_name Class' name to be instantiated
5 * @return mixed
6 * @license http://www.gnu.org/copyleft/gpl.html GPL
7 * @deprecated 1.4.00.000 - 08/03/2007
8 * @package Workflow
9 * @subpackage local
10 * @access public
11 */
12function wf_create_object($class_name)
13{
14        $obj = null;
15        $file_name = PHPGW_SERVER_ROOT.SEP.'workflow'.SEP.'inc'.SEP.'local'.SEP.'classes'.SEP.'class.'.$class_name.'.php';
16        if(@file_exists($file_name))
17        {
18                include_once($file_name);
19                $obj = new $class_name;         
20        }
21        return $obj;
22}
23?>
Note: See TracBrowser for help on using the repository browser.