public getSystemRule ( string $rule ) : Ingo_Rule | ||
$rule | string | The rule name. |
Результат | Ingo_Rule | A rule object. |
public function getSystemRule($rule)
{
$this->_load();
foreach ($this->_rules as $val) {
if ($val instanceof $rule && $val instanceof Ingo_Rule_System) {
return $val;
}
}
throw new Ingo_Exception('Invalid system rule');
}