/ More...
Public Member Functions | |
main () | |
Block body. | |
postprocessor ($route) | |
Route postprocessor to be registered in router. More... | |
Public Member Functions inherited from BackendBlock | |
__construct ($smalldb) | |
Setup block to act as expected. More... | |
Public Attributes | |
const | force_exec = true |
Block must be always executed. | |
Protected Attributes | |
$inputs | |
Block inputs. More... | |
$outputs | |
Block inputs. More... | |
Protected Attributes inherited from BackendBlock | |
$smalldb | |
Smalldb backend obtained from block storage. | |
/
Deprecated! This connector will be replaced with something better soon.
This connector also directly reads $_GET and $_POST, which is also ugly. And to make it even worse, it produces output!
If route is matched, inputs are copied to route and processed using filename_format funciton. Matched route and following data are available as variables:
{smalldb_type}
: State machine type{smalldb_action}
: Action (transition name){smalldb_action_or_show}
: "show" or "listing" (for null refs) is used when action is empty.postprocessor | ( | $route | ) |
Route postprocessor to be registered in router.
Route will call this method to check whether a Smalldb route is valid reference to some statemachine. If valid reference is found, the reference is published at router's output.
Postprocessor uses '!' to denote action. Action is part of path after the last '!'. Action never contains slash and it must be at the end of the path.
|
protected |
Block inputs.
|
protected |
Block inputs.