Blackbox
lnxmcp v3 introduce the array blackbox logic
A blackbox is an code where the develop or the designer don't need to know the content but only the request information (As data in ) and the results (as data out )
-
standard concept
[data in] -> blackbox -> [data out]
[request] -> [ code ] -> [results ]
-
lnxmcp blackbox
[arrays in ] -> blackbox -> [array out ]
- lnxMcpTag ()
- lnxMcpCmd ()
- lnxHtmlPage ()
- lnxmcp()->runTag ()
- lnxmcp()->runCommand ()
- lnxmcp()->runSequence ()
- lnxmcp()->runMenu ()
- lnxmcp()->converTag ()
the BlackBox command are $scopeCtl["type"]
:
* "exit": Exit without message
* "dumpexit": Exit with a dump and message
* "print": Print the content on the $scopeIn
* "javascipt": Print the content on the $scopeIn as javascript <script></script>
* "clear": Clear $scopeIn;
* "header": Set Header ($scopeCtl["header"])
* "headerClose": same as Header but with exit
* "load": load a class on lnxmcp standard [[lazyloader]]
* "run": load and run a class on lnxmcp standard [[lazyloader]]
* "driver":
* "query":
* "queryCommon":
* "queryJson":
* "queryArray":
* "controller":
* "controllerRemote":
* "controllerShell":
* "controllerCommon":
* "api":
* "apiReturn":
* "apiArray":
* "apiRemote":
* "apiShell":
* "apiCommon":
* "apiCommon":
* "service":
* "serviceCommon":
* "page":
* "mail":
* "block":
* "blockCommon":
* "blockRemote":
* "blockShell":
* "showPage":
* "showCommonPage":
* "showBlock":
* "showCommonBlock":
* "showFullCommonBlock":
* "extTemplate":
* "extFile":
* "tag":
because an array is easy do define is compatible with json, shell argv, and rest api and can be manipulate from non php developer (ex customer )
And more, the black box logic, permitting to a developer or the designer to use the functionality since the first second, and so reduce the productive time.
LNX (LinHUniX) MCP (Master Control Program) is a share code with free license.
Develop and Maintain by LinHUniX Ltd - 2002/2020 - Author is Andrea Morello (LinHUniX)
is a parts of the LN4 Note projects
-
Core
-
Base Module
-
Additional Module
-
Tutorial
-
Example