Skip to content

Blackbox

LinHUniX edited this page Apr 13, 2019 · 18 revisions

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 ]

    • arrays in are:
    • arrays out are:( $scopeOut )
      • [return] data output
      • [status] status execution
      • [ipl] execution state messages
      • [msg] execution message

The lnxmcp blackbox comand are :

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":  

Why

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.