Stupid
A simple expert system processor.
Stupid is designed to work like a simple expert system. At first you declare all the rules and actions. Starting the chain reaction it will evaluate rules and trigger the most appropriate action.
Stupid system will trigger ONLY THE FIRST matching rule and no other one. This cannot be changed.
Stupid system is designed to be modular. Stupid class is a rule evaluator by using registered StupidCondition evaluators. There are some standard evaluators that ship with the engine but you can always expand it.
Every evaluator has a unique "type", which is used when we are defining rules along with specific evaluator parameters. All the parameters of each rule are given in an associative array. Example
Stupid system ships with a set of standard evaluators, those evaluators will probably fullfill the needs of most cases. Each evaluator has its own parameters and you should read its documentation for more information.
UrlParamsCondition
Condition evaluator for various checks on uri parametersUrlPathCondition
Condition evaluator for checks on the path part of the uri. It suppots full path, PATH_INFO for "index.php/example" routing schema etcAuthenticationCondition
Condition evaluator for checks on WAAS and Group
- AuthenticationCondition
- Benchmark
- Browser
- dbconn
- DBRecord
- EventDispatcher
- Form
- Grid
- Group
- HTMLDoc
- HTMLTag
- IntraSessionSingleton
- jq_tabs
- Layout
- LayoutSection
- Param
- SessionLog
- Stupid
- add_rule()
Add a new rule in stupid system.
- chain_reaction()
Evaluate rules and trigger reactions.
- reset()
Reset system to initial state.
- set_default_action()
Set the default action of system.
- add_rule()
- StupidCondition
- UrlParamsCondition
- UrlPathCondition
- User
- Waas