MIOLO26
|
Membros públicos | |
__construct () | |
getObject ($class, $param=NULL) | |
getIsAjaxCall () | |
handlerRequest () | |
initialize () | |
getNamespacePath ($namespace, $miolo2integration=false) | |
import ($namespace, $class='', $extension='.php', $miolo2integration=false) | |
init ( $home=NULL, $logname='miolo') | |
prepare () | |
handler () | |
invokeHandler ($module, $action) | |
getHandler ( $module) | |
terminate () | |
getConf ($key) | |
setConf ($key, $value) | |
assert ($cond, $msg='', $goto='') | |
scramble ($text) | |
unScramble ($text) | |
setDispatcher ($url) | |
getContext ($url='', $style=0, $scramble=false) | |
getSession () | |
getAuth () | |
getPerms () | |
getLogin () | |
getPage () | |
loadExtensions () | |
uses ( $name, $module=NULL) | |
usesBusiness ($module, $name='main') | |
getActionURL ($module='', $action='NONE', $item='', $args=NULL, $dispatch=NULL, $scramble=false) | |
saguCompatibility ($url) | |
getAbsolutePath ($rel=NULL, $module=NULL) | |
getAbsoluteURL ($rel, $module=NULL) | |
getThemeURL ($rel, $name=NULL, $default=NULL, $module=NULL) | |
getModulePath ($module, $file) | |
getSysTime ($format='d/m/Y H:i:s') | |
getSysDate ($format='d/m/Y') | |
checkLogin () | |
checkAccess ($trans, $access, $deny=false) | |
isHostAllowed () | |
getDatabase ($conf=NULL, $user=NULL, $pass=NULL) | |
getBusiness ($module, $name='main', $data=NULL) | |
getBusinessMAD ($name='main', $data=NULL) | |
loadMADConf () | |
getClass ($module, $name) | |
getUI () | |
getWebServices ( $module, $name, $data=NULL, $dir=NULL) | |
getTheme ($themeId='', $layout='default') | |
getPainter () | |
error ($msg='', $goto='', $caption='', $event='', $halt=true) | |
information ($msg, $goto='', $event='', $halt=true) | |
confirmation ($msg, $gotoOK='', $gotoCancel='', $eventOk='', $eventCancel='', $halt=true) | |
question ($msg, $gotoYes='', $gotoNo='', $eventYes='', $eventNo='', $halt=true) | |
alert ($msg, $goto='', $event='', $halt=true) | |
prompt ($prompt, $halt=true) | |
dialogPrompt ($dlgPrompt) | |
setLog ($logname) | |
logSQL ($sql, $force=false, $conf='?') | |
logError ($error, $conf='miolo') | |
profileTime () | |
profileEnter ($name) | |
profileExit ($name) | |
profileDump () | |
getProfileDump () | |
usesDump () | |
dump ($var, $file=false, $line=false, $info=false) | |
isLogging () | |
logMessage ($msg) | |
debugMessage ($msg) | |
deprecate ($msg) | |
trace ($msg, $file=false, $line=0) | |
traceDump () | |
traceStack () | |
getThemes () | |
listFiles ($dir, $type='d') | |
saveFile ($module='', $filename='', $dir='html/files/') | |
getRequiredJS4Ajax () | |
tokenOk () | |
setMobile ($isMobile) | |
checkMobile () | |
clearDbConf ($module) | |
Membros públicos estáticos | |
static | getInstance () |
static | getCurrentURL () |
static | getPreviousURL () |
static | getCurrentModule () |
static | getCurrentAction () |
static | _REQUEST ( $vars, $from='ALL', $order='') |
static | vd ($variable, $forceType=null) |
static | var_dump ($variable, $forceType=null) |
static | updateLoading ($value) |
static | isDebugMode () |
static | getVersion () |
Campos de Dados | |
const | IS_MOBILE_SESSION_ID = 'MIOLO_isMobile' |
$_version | |
$_author | |
$trace_socket | |
$db | |
$user | |
$pass | |
$sqllog | |
$errlog | |
$theme | |
$themepainter | |
$themelayout | |
$controlpainter | |
$pagepainter | |
$profile | |
$uses | |
$trace | |
$error | |
$page | |
$context | |
$response | |
$request | |
$auth | |
$perms | |
$session | |
$state | |
$logdb | |
$dbconf = array() | |
$halted = false | |
$painter | |
$mad | |
$forward | |
$php | |
$ajax | |
$isAjaxCall = false | |
$isAjaxEvent = false | |
$formSubmit | |
$mobileDetect | |
__construct | ( | ) |
Constructor. Miolo Class Constructor.
|
static |
(mixed) | $vars String ou array: variáveis das quais se deseja obter o valor |
(string) | $from De onde obter os dados. Pode ser 'GET', 'POST', 'SESSION', 'REQUEST' além do padrão 'ALL' que retorna todos os dados. |
(string) | $order Onde pesquisar primeiro POST ou GET. Por padrão a pesquisa é feita de acordo com a configuração do php.ini . Para forçar a ordem, informe "PG" ou "GP" (P=post, G=get) |
alert | ( | $msg, | |
$goto = '', | |||
$event = '', | |||
$halt = true ) |
Displays an alert message using MPrompt component.
(string) | $msg |
(string) | $goto |
(string) | $event |
(boolean) | $halt |
assert | ( | $cond, | |
$msg = '', | |||
$goto = '' ) |
Brief Description. Complete Description.
$cond | (tipo) desc |
$msg' | (tipo) desc |
$goto='' | (tipo) desc |
checkAccess | ( | $trans, | |
$access, | |||
$deny = false ) |
Brief Description. Complete Description.
$trans | (tipo) desc |
$access | (tipo) desc |
$deny | (tipo) desc |
checkLogin | ( | ) |
Brief Description. Complete Description.
checkMobile | ( | ) |
Check if MIOLO session is defined as mobile.
clearDbConf | ( | $module | ) |
Limpa uma instancia de conexao do MIOLO
string | $module |
confirmation | ( | $msg, | |
$gotoOK = '', | |||
$gotoCancel = '', | |||
$eventOk = '', | |||
$eventCancel = '', | |||
$halt = true ) |
Brief Description. Complete Description.
$msg | (tipo) desc |
$gotoOK' | (tipo) desc |
$gotoCancel='' | (tipo) desc |
$eventOk='' | (tipo) desc |
$eventCancel='' | (tipo) desc |
$halt= | (tipo) desc |
debugMessage | ( | $msg | ) |
Send debug message to socket. This method sends a message to the listening socket, if this is enabled in miolo's configuration "option.debug". This method can be used for debugging in development time and, when in production, simple change configuration and no more logs will be generated.
$msg | (string) Message to send |
deprecate | ( | $msg | ) |
Brief Description. Complete Description.
$msg | (tipo) desc |
dialogPrompt | ( | $dlgPrompt | ) |
dump | ( | $var, | |
$file = false, | |||
$line = false, | |||
$info = false ) |
Brief Description. Complete Description.
$var | (tipo) desc |
$file | (tipo) desc |
$line=false | (tipo) desc |
$info=false | (tipo) desc |
error | ( | $msg = '', | |
$goto = '', | |||
$caption = '', | |||
$event = '', | |||
$halt = true ) |
Dialogs and Error Handling Dialogs and Error Handling Error Information Confirmation Question Prompt
$msg' | (tipo) desc |
$goto='' | (tipo) desc |
$caption='' | (tipo) desc |
$event='' | (tipo) desc |
$halt= | (tipo) desc |
getAbsolutePath | ( | $rel = NULL, | |
$module = NULL ) |
Gets physical filesystem path of $rel (relative filename) Brief Description. Complete Description.
$rel | (tipo) desc |
getAbsoluteURL | ( | $rel, | |
$module = NULL ) |
Gets absolute virtual path of $rel (relative filename) from browser's address Brief Description. Complete Description.
$rel | (tipo) desc |
$module | (tipo) desc |
getActionURL | ( | $module = '', | |
$action = 'NONE', | |||
$item = '', | |||
$args = NULL, | |||
$dispatch = NULL, | |||
$scramble = false ) |
getAuth | ( | ) |
Brief Description. Complete Description.
getBusiness | ( | $module, | |
$name = 'main', | |||
$data = NULL ) |
getBusinessMAD | ( | $name = 'main', | |
$data = NULL ) |
getClass | ( | $module, | |
$name ) |
getConf | ( | $key | ) |
Brief Description. Complete Description.
$key | (tipo) desc |
getContext | ( | $url = '', | |
$style = 0, | |||
$scramble = false ) |
Brief Description. Complete Description.
|
static |
Return the name of the current action.
|
static |
Return the name of the current module.
|
static |
Return current URL. Returns the URL address of the current page.
getDatabase | ( | $conf = NULL, | |
$user = NULL, | |||
$pass = NULL ) |
getHandler | ( | $module | ) |
Get handler manager.
string | $module | Module name. |
|
static |
Returns Miolo instance. This method returns an instance of the Miolo Class.
getIsAjaxCall | ( | ) |
Returns information about the king of the request.
getLogin | ( | ) |
getModulePath | ( | $module, | |
$file ) |
Gets the physical filesystem path of the module's file Brief Description. Complete Description.
$module | (tipo) desc |
$file | (tipo) desc |
getNamespacePath | ( | $namespace, | |
$miolo2integration = false ) |
Brief Description. Complete Description.
$namespace | (tipo) desc |
$class' | (tipo) desc |
getObject | ( | $class, | |
$param = NULL ) |
getPage | ( | ) |
getPainter | ( | ) |
getPerms | ( | ) |
Brief Description. Complete Description.
|
static |
Return previos URL, based on previous action Returns the URL address of the previous action page
getProfileDump | ( | ) |
Brief Description. Complete Description.
getRequiredJS4Ajax | ( | ) |
getSession | ( | ) |
Brief Description. Complete Description.
getSysDate | ( | $format = 'd/m/Y' | ) |
getSysTime | ( | $format = 'd/m/Y H:i:s' | ) |
Brief Description. Complete Description.
getTheme | ( | $themeId = '', | |
$layout = 'default' ) |
Brief Description. Complete Description.
$themeId' | (tipo) desc |
$layout='default' | (tipo) desc |
getThemes | ( | ) |
Brief Description. Complete Description.
getThemeURL | ( | $rel, | |
$name = NULL, | |||
$default = NULL, | |||
$module = NULL ) |
Gets absolute virtual path of $rel for selected theme Brief Description. Complete Description.
$rel | (tipo) desc |
$name | (tipo) desc |
$default=NULL | (tipo) desc |
$module=NULL | (tipo) desc |
getUI | ( | ) |
|
static |
getWebServices | ( | $module, | |
$name, | |||
$data = NULL, | |||
$dir = NULL ) |
MAjax AJAX handler | ( | ) |
Brief Description. Complete Description.
handlerRequest | ( | ) |
Brief Description. Complete Description.
import | ( | $namespace, | |
$class = '', | |||
$extension = '.php', | |||
$miolo2integration = false ) |
information | ( | $msg, | |
$goto = '', | |||
$event = '', | |||
$halt = true ) |
Brief Description. Complete Description.
$msg | (tipo) desc |
$goto' | (tipo) desc |
$event='' | (tipo) desc |
$halt= | (tipo) desc |
init | ( | $home = NULL, | |
$logname = 'miolo' ) |
Brief Description. Complete Description.
$home | (tipo) desc |
$logname=miolo' | (tipo) desc |
Ticket #46247 O getConf do modules.inc.php foi posto mais para baixo nessa função pois estávamos tendo problema em utilizar funções do MUtil (que ainda não estava instanciado) no modules.inc.php.
initialize | ( | ) |
Initialize some variables. Loads environment configuration, reads the resquest and get the context info.
invokeHandler | ( | $module, | |
$action ) |
Brief Description. Complete Description.
$module | (tipo) desc |
$action | (tipo) desc |
|
static |
Retorna se esta em modo debug
isHostAllowed | ( | ) |
Brief Description. Complete Description.
isLogging | ( | ) |
Brief Description. Complete Description.
listFiles | ( | $dir, | |
$type = 'd' ) |
Brief Description. Complete Description.
$dir | (tipo) desc |
$typed' | (tipo) desc |
loadExtensions | ( | ) |
loadMADConf | ( | ) |
logError | ( | $error, | |
$conf = 'miolo' ) |
Brief Description. Complete Description.
$error | (tipo) desc |
$conf | (tipo) desc |
logMessage | ( | $msg | ) |
Brief Description. Complete Description.
$msg | (tipo) desc |
logSQL | ( | $sql, | |
$force = false, | |||
$conf = '?' ) |
Brief Description. Complete Description.
$sql | (tipo) desc |
$force | (tipo) desc |
$conf= | (tipo) desc |
prepare | ( | ) |
profileDump | ( | ) |
Brief Description. Complete Description.
profileEnter | ( | $name | ) |
Brief Description. Complete Description.
$name | (tipo) desc |
profileExit | ( | $name | ) |
Brief Description. Complete Description.
$name | (tipo) desc |
profileTime | ( | ) |
Brief Description. Complete Description.
prompt | ( | $prompt, | |
$halt = true ) |
Brief Description. Complete Description.
$prompt | (tipo) desc |
$halt | (tipo) desc |
question | ( | $msg, | |
$gotoYes = '', | |||
$gotoNo = '', | |||
$eventYes = '', | |||
$eventNo = '', | |||
$halt = true ) |
Brief Description. Complete Description.
$msg | (tipo) desc |
$gotoYes' | (tipo) desc |
$gotoNo='' | (tipo) desc |
$eventYes='' | (tipo) desc |
$eventNo='' | (tipo) desc |
$halt= | (tipo) desc |
saguCompatibility | ( | $url | ) |
Aplica compatibilidades entre modulos que utilizam SAGU com miolo 2.0 versus miolo 2.6.
saveFile | ( | $module = '', | |
$filename = '', | |||
$dir = 'html/files/' ) |
Send a file to client
string | $module | Module |
string | $filename | Complete filepath relative to directory "files" on module dir Brief Description. Complete Description. |
$module' | (tipo) desc | |
$filename | (tipo) desc | |
$dir='html | (tipo) desc |
scramble | ( | $text | ) |
setConf | ( | $key, | |
$value ) |
Brief Description. Complete Description.
$key | (tipo) desc |
$value | (tipo) desc |
setDispatcher | ( | $url | ) |
Brief Description. Complete Description.
$url | (tipo) desc |
setLog | ( | $logname | ) |
Brief Description. Complete Description.
$logname | (tipo) desc |
setMobile | ( | $isMobile | ) |
Set MIOLO session as mobile.
boolean | $isMobile | Whether is a mobile session. |
terminate | ( | ) |
Brief Description. Complete Description.
tokenOk | ( | ) |
trace | ( | $msg, | |
$file = false, | |||
$line = 0 ) |
Brief Description. Complete Description.
$msg | (tipo) desc |
$file | (tipo) desc |
$line=0 | (tipo) desc |
traceDump | ( | ) |
Brief Description. Complete Description.
traceStack | ( | ) |
Brief Description. Complete Description.
unScramble | ( | $text | ) |
|
static |
uses | ( | $name, | |
$module = NULL ) |
Brief Description. Complete Description.
$name | (tipo) desc |
$module | (tipo) desc |
usesBusiness | ( | $module, | |
$name = 'main' ) |
Brief Description. Complete Description.
$module | (tipo) desc |
$namemain' | (tipo) desc |
usesDump | ( | ) |
Brief Description. Complete Description.
|
static |
|
static |
$_author |
$_version |
$context |
$controlpainter |
$db |
BD descriptor members
$dbconf = array() |
$formSubmit |
$forward |
$halted = false |
$isAjaxCall = false |
$isAjaxEvent = false |
$mobileDetect |
$pagepainter |
$painter |
$profile |
$request |
$response |
$session |
$themelayout |
$themepainter |
$trace_socket |
remote tracing log message support
const IS_MOBILE_SESSION_ID = 'MIOLO_isMobile' |
Session id for mobile device checking.