Ingo_Storage::maxRules PHP Method

maxRules() public method

Has the maximum number of rules been reached?
public maxRules ( ) : integer
return integer A MAX_* constant. Non-zero indicates rule cannot be added.
    public function maxRules()
    {
        $this->_load();
        $max = $this->max_rules;
        if ($max === 0) {
            return self::MAX_NONE;
        } elseif ($max !== true && $max <= count($this)) {
            return self::MAX_OVER;
        }
        return self::MAX_OK;
    }