protected function buildRules()
    {
        if ($this->rules) {
            return $this->rules;
        }

        if ($resource = $this->resource()) {
            $this->rules = $this->filterDetectedRules($this->detectRules($resource), $resource);
        }

        return $this->rules;
    }
protected function buildRules()
    {
        if ($this->rules) {
            return $this->rules;
        }

        if ($resource = $this->resource()) {
            $this->rules = $this->filterDetectedRules($this->detectRules($resource), $resource);
        }

        return $this->rules;
    }
protected function buildRules ( ) { if ( $ this -> rules ) { return $ this -> rules ; } if ( $ resource = $ this -> resource ( ) ) { $ this -> rules = $ this -> filterDetectedRules ( $ this -> detectRules ( $ resource ) , $ resource ) ; } return $ this -> rules ; }
This method is called just to have a hook to build initial rules.

@return array
This method is called just to have a hook to build initial rules .