Ingo_Storage::getSystemRule PHP Method

getSystemRule() public method

Retrieves the specified system rule.
public getSystemRule ( string $rule ) : Ingo_Rule
$rule string The rule name.
return 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');
    }