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

$html2txt

$html2txt : 

Type

$zebraimage

$zebraimage : 

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;

moduleCore()

moduleCore() : boolean|array

$scopeIN array is var "[T]" -- H2T =html to Text convert var ["html"] = stored in globals return txt converson -- INT =Internal Static Source var ["source"] = Internal Source File var ["minetype"] = Mime Type of Internal Source File var ["tag"] = Use Tag Converter return txt converson -- DYN =Internal dynamic Source var ["source"] = Internal Source File var ["minetype"] = Mime Type of Internal Source File var ["tag"] = Use Tag Converter return txt converson -- MNU =Load common menu and tag gfx var ["source"] = Internal Source folder return void -- MNU =Load common menu and tag gfx var ["effect"] = image effect request var ["source"] = source file var ["dest"] = dest file return void.

Returns

boolean|array —

query results

getHtml2Txt()

getHtml2Txt(string  $source = '', string  $from_file = false) : string

getHtml2Txt.

Parameters

string $source

html content

string $from_file

Returns

string —

text converted

getZebraImage()

getZebraImage(string  $action, string  $source_file, string  $dest_file,   $arg = array()) : boolean

getZebraImage.

Parameters

string $action

request image action :

  • "resize" resize image -- args:width,height
  • "flip_horizontal" invert horizontal image
  • "flip_vertical" invert vertical image
  • "flip_both" invert vertical and horizontal image
  • "crop" cut image -- args:start_x,start_y,end_x,end_y
  • "rotate" rotate image -- args:angle
string $source_file

image input file

string $dest_file

image output file

$arg

Returns

boolean —

status

callStaticCommon()

callStaticCommon(string  $InternalSource, string  $MimeType, boolean  $ConverTag = false, array  $arg = array()) 

callStaticCommon.

Parameters

string $InternalSource

content

string $MimeType
boolean $ConverTag
array $arg

callDynamicCommon()

callDynamicCommon(string  $InternalSource, string  $MimeType, boolean  $ConverTag = false, array  $arg = array()) 

callDynamicCommon.

Parameters

string $InternalSource

content

string $MimeType
boolean $ConverTag
array $arg

loadMenusCommon()

loadMenusCommon(string  $InternalSource) 

loadMenusCommon.

Parameters

string $InternalSource

content

loadTagsCommon()

loadTagsCommon(string  $InternalSource) 

loadTagsCommon.

Parameters

string $InternalSource

content

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

getInternalPath()

getInternalPath() 

getZebraImageError()

getZebraImageError(  $error_code) 

Parameters

$error_code