Allow triggers to call arbitrary functions

This commit is contained in:
Kijin Sung 2016-02-01 15:46:04 +09:00
parent 9f35a3c95b
commit 74ac1e5141
3 changed files with 46 additions and 2 deletions

View file

@ -625,6 +625,21 @@ class moduleModel extends module
}
}
/**
* @brief Get trigger functions
*/
function getTriggerFunctions($trigger_name, $called_position)
{
if(isset($GLOBALS['__trigger_functions__'][$trigger_name][$called_position]))
{
return $GLOBALS['__trigger_functions__'][$trigger_name][$called_position];
}
else
{
return array();
}
}
/**
* @brief Get a list of all triggers on the trigger_name
*/