From: <reg...@us...> - 2005-08-29 15:51:24
|
Update of /cvsroot/egroupware/workflow/inc/engine In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31026 Modified Files: config.egw.inc.php Log Message: new galaxia_get_agents_list function and add a possibility to throw galaxia errors without dying Index: config.egw.inc.php =================================================================== RCS file: /cvsroot/egroupware/workflow/inc/engine/config.egw.inc.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** config.egw.inc.php 14 Jul 2005 13:19:02 -0000 1.8 --- config.egw.inc.php 29 Aug 2005 15:51:16 -0000 1.9 *************** *** 87,96 **** // Specify how error messages should be shown if (!function_exists('galaxia_show_error')) { ! function galaxia_show_error($msg) { ! die("Galaxia Error: $msg"); } } if (!function_exists('galaxia_user_can_admin_process')) --- 87,131 ---- // Specify how error messages should be shown if (!function_exists('galaxia_show_error')) { ! /*! ! * Show error messages from the engine ! * @param $msg is the message to show ! * @param $dying is true by default and will launch a terminal die command ! * if not set to false. ! */ ! function galaxia_show_error($msg, $dying = true) { ! if ($dying) ! { ! die("Galaxia Error: $msg"); ! } ! else ! { ! echo("<br>Galaxia Error: $msg"); ! } } } + //define the list of agents avaible with your Galaxia installation + if (!function_exists('galaxia_get_agents_list')) + { + /*! + * This function list the agents avaible with your galaxia installation. The name of an agent + * is his unique identifier, the priority is an execution order priority + * @return an associative array of agents description, each row is an agent description + * containing a 'wf_agent_type' key and a 'wf_agent_priority' key + */ + function galaxia_get_agents_list() + { + $res = array( + array( + 'wf_agent_type' => 'mail_smtp', + 'wf_agent_priority' => 1, + ) + ); + return $res; + } + } + + if (!function_exists('galaxia_user_can_admin_process')) |