Properties

$spacename

$spacename : string

Type

string — is the name of the class namespace

$classname

$classname : string

Type

string — is the name of the class

$require

$require : \LinHUniX\Mcp\Model\array;

on this class need to set the number of the dependency need to use to work with this class ant that information was stored on $scopeCtl and share when execute this specific modules.

Type

\LinHUniX\Mcp\Model\array;

$singleTon

$singleTon : boolean

Type

boolean — run only on start

$bootCtl

$bootCtl : array

Type

array — contains the info of the data class control

$bootData

$bootData : array

class.

Type

array — contains the boot data informations

$argCtl

$argCtl : array

used this to set Control Argument during run of the moduleCore.

Type

array

$argIn

$argIn : array

used this to set Input argument during run of the moduleCore.

Type

array

$argOut

$argOut : array

used this to set output argument during run of the moduleCore is present on the scope auto as $scopeOut["return"];.

Type

array

$url

$url : 

Type

$session

$session : 

Type

Methods

__construct()

__construct(\LinHUniX\Mcp\masterControlProgram  $mcp, array  $scopeCtl, array  $scopeIn) 

Parameters

\LinHUniX\Mcp\masterControlProgram $mcp
array $scopeCtl
array $scopeIn

getDependency()

getDependency() : array

Return a list of dependency need to used this class (cfg component).

Returns

array

run()

run(array  $scopeCtl, array  $scopeIn) : array

Model Base to caputer execute an elabotrations about this.

Parameters

array $scopeCtl
array $scopeIn

Returns

array —

response of code = like scope out;

remote()

remote(  $url) 

Parameters

$url

moduleCore()

moduleCore() 

// LOGIN Post.set('UserAlias', user); Post.set('UserCode', pass); return ln4A2Connect.ApiConnect("RestLogin", ln4Manager_evtProfile, Post); // CLIST Post.set('DocCatId', catid); return ln4A2Connect.ApiConnect("RestCList", forumEvnt, Post); //TLIST Post.set('DocCatId', catid); Post.set('DocType', "Forum"); return ln4A2Connect.ApiConnect("RestTList", forumEvnt, Post); //NList Post.set('DocType', forumtype); return ln4A2Connect.ApiConnect("RestNList", forumEvnt, Post); //TFind Post.set('DocCatId', catid); Post.set('DocType', "Forum"); Post.set('Find', findstr); return ln4A2Connect.ApiConnect("RestTFind", forumEvnt, Post); // TLOAD Post.set('DocCatId', catid); Post.set('DocType', "Forum"); Post.set('DocId', docid); Post.set('DocName', topic); return ln4A2Connect.ApiConnect("RestTLoad", forumEvnt, Post); // TSAVE Post.set('DocCatId', catid); Post.set('DocType', "Forum"); Post.set('DocId', docid); Post.set('DocName', topic); Post.set('DocValue', content.toJson()); return ln4A2Connect.ApiConnect("RestTSave", forumEvnt, Post); // TCANC let Post: ln4Map = new ln4Map(); Post.set('DocCatId', catid); Post.set('DocType', "Forum"); Post.set('DocId', docid); Post.set('DocName', topic); return ln4A2Connect.ApiConnect("RestTCanc", forumEvnt, Post);

moduleInit()

moduleInit() 

Pre init is a method to use on the new version.

getMcp()

getMcp() : \LinHUniX\Mcp\Model\lnxmcp

this a metod fo call the mcp class functions.

Returns

\LinHUniX\Mcp\Model\lnxmcp —

class

getRes()

getRes(string  $resname) : \LinHUniX\Mcp\Model\lnxmcp

this a metod fo call the mcp class functions.

Parameters

string $resname

Returns

\LinHUniX\Mcp\Model\lnxmcp —

class

getCfg()

getCfg(  $cfgname) : \LinHUniX\Mcp\Model\lnxmcp

this a metod fo call the mcp class functions.

Parameters

$cfgname

Returns

\LinHUniX\Mcp\Model\lnxmcp —

class

getDriver()

getDriver(  $drvlabel) : \LinHUniX\Mcp\Model\lnxmcp

this a metod fo call the mcp class functions.

Parameters

$drvlabel

Returns

\LinHUniX\Mcp\Model\lnxmcp —

class

getCommon()

getCommon(  $name) : mixed

this a metod fo call the mcp class functions.

Parameters

$name

Returns

mixed

setCommon()

setCommon(  $name,   $value) : mixed

this a metod fo call the mcp class functions.

Parameters

$name
$value

Returns

mixed

setScopeOut()

setScopeOut(\LinHUniX\Mcp\Model\type  $name, \LinHUniX\Mcp\Model\type  $value) 

Is a confortable method to set data on scope out.

Parameters

\LinHUniX\Mcp\Model\type $name

of the tags

\LinHUniX\Mcp\Model\type $value

callCmd()

callCmd(array  $scopeCtl, array  $scopeIn) 

Parameters

array $scopeCtl
array $scopeIn

callTag()

callTag(  $action, array  $scopeIn,   $buffer = true) 

Parameters

$action
array $scopeIn
$buffer

setReturn()

setReturn(\LinHUniX\Mcp\Model\type  $return) 

is a confortable method to set the return values.

Parameters

\LinHUniX\Mcp\Model\type $return

moduleSingleTon()

moduleSingleTon() 

Ideally this method shuld be used to insert the model code and the other are to be used only as normal.

getArgIn()

getArgIn(string  $name) : \LinHUniX\Mcp\Model\any

only to have a confortable solutions to get data.

Parameters

string $name

Returns

\LinHUniX\Mcp\Model\any

getArgCtl()

getArgCtl(string  $name) : \LinHUniX\Mcp\Model\any

only to have a confortable solutions to get data.

Parameters

string $name

Returns

\LinHUniX\Mcp\Model\any

getArgOut()

getArgOut(string  $name) : \LinHUniX\Mcp\Model\any

only to have a confortable solutions to get data.

Parameters

string $name

Returns

\LinHUniX\Mcp\Model\any

setArgOut()

setArgOut(string  $name,   $value) : \LinHUniX\Mcp\Model\any

only to have a confortable solutions to set data.

Parameters

string $name
$value

Returns

\LinHUniX\Mcp\Model\any

debug()

debug(  $messge) 

only to have a confortable solutions to debug data.

Parameters

$messge

info()

info(  $messge) 

only to have a confortable solutions to debug data.

Parameters

$messge

warning()

warning(  $messge) 

only to have a confortable solutions to debug data.

Parameters

$messge

error()

error(  $messge) 

only to have a confortable solutions to debug data.

Parameters

$messge