protected function _getRule(Ingo_Rule $rule)
{
$this->_load();
foreach ($this->_rules as $key => $val) {
if (strlen($rule->uid)) {
if ($val->uid == $rule->uid) {
return $key;
}
} elseif ($rule instanceof Ingo_Rule_System && $rule instanceof $val) {
$rule->uid = $val->uid;
return $key;
}
}
return null;
}