Ingo_Storage::_load PHP Method

_load() protected method

Load the rules.
protected _load ( )
    protected function _load()
    {
        if (!empty($this->_rules) || !empty($this->_params['_loading'])) {
            return;
        }
        $this->_params['_loading'] = true;
        $this->_loadFromBackend();
        if (empty($this->_rules)) {
            $this->addRule(new Ingo_Rule_System_Whitelist());
            $this->addRule(new Ingo_Rule_System_Blacklist());
            $spam = new Ingo_Rule_System_Spam();
            $spam->disable = true;
            $this->addRule($spam);
            $forward = new Ingo_Rule_System_Forward();
            $forward->disable = true;
            $this->addRule($forward);
            $vacation = new Ingo_Rule_System_Vacation();
            $vacation->disable = true;
            $this->addRule($vacation);
        }
        unset($this->_params['_loading']);
    }