\

Namespaces

LinHUniX

Classes

mcpAutoload Created by PhpStorm.
mcpOutput User: LinHUniX Andrea Morello Date: 1/12/2019 Time: 9:22 PM.
mcpRunHttp

Constants

ZEBRA_IMAGE_BOXED

ZEBRA_IMAGE_BOXED

ZEBRA_IMAGE_CROP_BOTTOMCENTER

ZEBRA_IMAGE_CROP_BOTTOMCENTER

ZEBRA_IMAGE_CROP_BOTTOMLEFT

ZEBRA_IMAGE_CROP_BOTTOMLEFT

ZEBRA_IMAGE_CROP_BOTTOMRIGHT

ZEBRA_IMAGE_CROP_BOTTOMRIGHT

ZEBRA_IMAGE_CROP_CENTER

ZEBRA_IMAGE_CROP_CENTER

ZEBRA_IMAGE_CROP_MIDDLELEFT

ZEBRA_IMAGE_CROP_MIDDLELEFT

ZEBRA_IMAGE_CROP_MIDDLERIGHT

ZEBRA_IMAGE_CROP_MIDDLERIGHT

ZEBRA_IMAGE_CROP_TOPCENTER

ZEBRA_IMAGE_CROP_TOPCENTER

ZEBRA_IMAGE_CROP_TOPLEFT

ZEBRA_IMAGE_CROP_TOPLEFT

ZEBRA_IMAGE_CROP_TOPRIGHT

ZEBRA_IMAGE_CROP_TOPRIGHT

ZEBRA_IMAGE_NOT_BOXED

ZEBRA_IMAGE_NOT_BOXED

Functions

DumpAndExit()

DumpAndExit(mixed  $message = '') 

DumpAndExit.

Parameters

mixed $message

DumpOnFatal()

DumpOnFatal(string  $message, boolean  $exit = false) 

this version has only the error log call because is work when is present a big issue.

Parameters

string $message
boolean $exit

legacyAutoload()

legacyAutoload(  $className) 

A basic autoload implementation that should be compatible with PHP 5.2.

Parameters

$className

linhunixErrorHandlerDev()

linhunixErrorHandlerDev(mixed  $errno, mixed  $errstr, mixed  $errfile, mixed  $errline) 

linhunixErrorHandlerDev.

Parameters

mixed $errno
mixed $errstr
mixed $errfile
mixed $errline

linhunixFatalHandlerDev()

linhunixFatalHandlerDev() 

linhunixFatalHandlerDev.

lnxCacheCtl()

lnxCacheCtl(string  $name, integer  $expire = 3600, array  $alt_sequence, array  $alt_scopein) : array

lnxCacheCtl create a cache version of the specific bloc.

Parameters

string $name

name of the cache object

integer $expire

expire time

array $alt_sequence

altenative sequence use to run code

array $alt_scopein

alternative input use to run code

Returns

array

lnxCacheFlush()

lnxCacheFlush(mixed  $filter) 

lnxCacheFlush the cache if use filter with a specific name content.

Parameters

mixed $filter

lnxCacheProcess()

lnxCacheProcess(  $event,   $action,   $scopein = array()) 

Parameters

$event
$action
$scopein

lnxDelJsonFile()

lnxDelJsonFile(mixed  $file, mixed  $path = '', mixed  $ext = '',   $expire = null) : boolean

linhunix json array converter.

Parameters

mixed $file
mixed $path

if is need

mixed $ext

with out the '.'

$expire

Returns

boolean

lnxGetJsonFile()

lnxGetJsonFile(mixed  $file, mixed  $path = '', mixed  $ext = '') : \any

linhunix json array converter.

Parameters

mixed $file
mixed $path

if is need

mixed $ext

with out the '.'

Returns

\any —

json object converted as array

lnxmcp()

lnxmcp() : \mastercontrolprogram

lnxmcp.

Returns

\mastercontrolprogram

lnxmcpAdm()

lnxmcpAdm(string  $defcmd = null,   $mode = 'Shell') 

lnxmcpAdm function.

Parameters

string $defcmd
$mode

lnxmcpChk()

lnxmcpChk(  $checkmenu = null) : array

Run Module as Check sequence.

Parameters

$checkmenu

Returns

array —

$ScopeOut

lnxMcpCmd()

lnxMcpCmd(array  $scopeCtl, array  $scopeIn = array()) : mixed

LinHUnix Master Control Program Fast Command caller.

Parameters

array $scopeCtl
array $scopeIn

Returns

mixed —

$scopeout

LnxMcpCodeCompile()

LnxMcpCodeCompile(string  $file) : boolean

LnxMcpCodeCompile base on opcache.

Parameters

string $file

Returns

boolean —

status

lnxmcpCsv()

lnxmcpCsv(string  $action, array  $scopeIn = null,   $csv = 'default', string  $table = null) : array

Run Csv Module

Parameters

string $action

Name of the event

array $scopeIn

Input Array with the value need to work

$csv
string $table

The name of the table if need

Returns

array —

$ScopeOut

lnxmcpDbM()

lnxmcpDbM(  $command = null,   $element = null) : array

Run Module as Check sequence.

Parameters

$command
$element

Returns

array —

$ScopeOut

lnxMcpDebug()

lnxMcpDebug(  $where, string  $var,   $value) 

LnxMcpDebug use debugvar function as a function.

@param string $where your are ;

Parameters

$where
string $var

name or label; @param mixed $value;

$value

LnxMcpExit()

LnxMcpExit(mixed  $message = '') 

Exit with closure procedure.

Parameters

mixed $message

lnxMcpExtLoad()

lnxMcpExtLoad(string  $file, string  $path = '', string  $ext = null, array  $scopeIn = array(), boolean  $convert = true, boolean  $runphp = false) : boolean

linhunix External file load and converter.

Parameters

string $file
string $path

if is need

string $ext

with out the '.'

array $scopeIn

array in

boolean $convert

if need to convert or only load

boolean $runphp

if need to execute php or only exclude

Returns

boolean

lnxmcpFileList()

lnxmcpFileList(array  $scopein) : array

lnxmcpUpload function.

Parameters

array $scopein

-required category (for upload file ) --[basename] --[category] -required [allowlist] ext in the list is allowred

Returns

array —

result

LnxMcpFullDebugOn()

LnxMcpFullDebugOn() 

LnxMcpFullDebugOn.

lnxMcpMimeFile()

lnxMcpMimeFile(string  $filename, string  $defaultmime = null) : string

lnxMcpMimeFile replace the mime_content_type.

Parameters

string $filename
string $defaultmime

Returns

string —

content-type

lnxmcpNsql()

lnxmcpNsql(string  $action, array  $scopeIn = null, string  $table = null) : array

Run Nsql Module

Parameters

string $action

Name of the event

array $scopeIn

Input Array with the value need to work

string $table

The name of the table if need

Returns

array —

$ScopeOut

lnxMcpOutput()

lnxMcpOutput() 

lnxmcpRamDb()

lnxmcpRamDb(string  $table, string  $mode, string  $action, array  $scopeIn = array()) : array

Run Nsql Ram Module

Parameters

string $table

The name of the table if need

string $mode

The mode level

string $action

Name of the event

array $scopeIn

Input Array with the value need to work

Returns

array —

$ScopeOut

LnxMcpRealEscape()

LnxMcpRealEscape(string  $value) : string

LnxMcpRealEscape function is an alternative to mysql_real_escape_string.

Parameters

string $value

Returns

string

lnxMcpTag()

lnxMcpTag(mixed  $tagname, array  $scopeIn = array()) 

LinHUnix Master Control Program Fast Tag caller.

Parameters

mixed $tagname
array $scopeIn

lnxmcpUpload()

lnxmcpUpload(array  $scopein) : array

lnxmcpUpload function.

Parameters

array $scopein

-required category (for upload file ) -required fileconvert: --[rand] --[basename] --[filetype] --[field] --[category] --- all scopein field -required [allowlist] ext in the list is allowred -required [allowfields]

Returns

array —

result

lnxMcpVersion()

lnxMcpVersion() : string

lnxMcpVersion function.

Returns

string —

version

lnxPutJsonFile()

lnxPutJsonFile(mixed  $content, mixed  $file, mixed  $path = '', mixed  $ext = '') : boolean

linhunix json array converter.

Parameters

mixed $content
mixed $file
mixed $path

if is need

mixed $ext

with out the '.'

Returns

boolean

lnxShutdown()

lnxShutdown() : \number

lnxShutdown function

Returns

\number

lnxSimpleMail()

lnxSimpleMail(string  $to, string  $subject, string  $message, string  $from = null, array  $attachDoc = array()) 

lnxStdMail function.

Parameters

string $to
string $subject
string $message
string $from
array $attachDoc

lnxStdMail()

lnxStdMail(string  $to, string  $subject, string  $message, string  $additional_headers = null, string  $additional_parameters = null, string  $from = null, array  $attachDoc = array(), string  $template = null) 

lnxStdMail function.

Parameters

string $to
string $subject
string $message
string $additional_headers
string $additional_parameters
string $from
array $attachDoc
string $template

LnxUcm()

LnxUcm(  $scopein = null) 

Parameters

$scopein

lnxUpdJsonFile()

lnxUpdJsonFile(  $cntvar,   $cntval, mixed  $file, mixed  $path = '', mixed  $ext = '') : boolean

linhunix json array converter.

Parameters

$cntvar
$cntval
mixed $file
mixed $path

if is need

mixed $ext

with out the '.'

Returns

boolean

mcpErrorHandlerInit()

mcpErrorHandlerInit() 

mcpErrorHandlerInit.

mcpRunShell()

mcpRunShell() 

Created by PhpStorm.

User: linhunix Date: 9/25/2018 Time: 2:55 PM.

mcpShutDownInit()

mcpShutDownInit() : void

mcpShutDownInit

selfAutoLoad()

selfAutoLoad(  $srcPath) 

A basic autoload implementation that should be compatible with PHP 5.2.

Parameters

$srcPath