Ingo_Storage::getRuleByUid PHP Method

getRuleByUid() public method

Returns a rule given a UID.
public getRuleByUid ( string $uid ) : Ingo_Rule
$uid string Rule UID.
return Ingo_Rule The rule object (null if not found).
    public function getRuleByUid($uid)
    {
        $this->_load();
        foreach ($this->_rules as $val) {
            if ($val->uid == $uid) {
                return $val;
            }
        }
        return null;
    }