triggers)) { $this->triggers[$action] = array(); } if (!array_key_exists($slot, $this->triggers[$action])) { $this->triggers[$action][$slot] = array(); } $this->triggers[$action][$slot][$nsname] = array($name, $path, $nsname); } // }}} // {{{ getTriggers function getTriggers($action, $slot) { $ret = array(); if (array_key_exists($action, $this->triggers)) { if (array_key_exists($slot, $this->triggers[$action])) { $ret = $this->triggers[$action][$slot]; } } if (empty($ret)) { return array(); } foreach($ret as $trigger) { if (!class_exists($trigger[0])) { require_once($trigger[1]); if (!class_exists($trigger[0])) { global $default; $defailt->log->error(sprintf(_kt('Cannot locate trigger class \'%s\' for action \'%s\' slot \'%s\'.'), $trigger[0], $action, $slot)); } } } return $ret; } // }}} } ?>