Revision 795,
583 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
*
|
Rev | Line | |
---|
[795] | 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 | */ |
---|
| 12 | function 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.