MIOLO26
Carregando...
Procurando...
Nenhuma entrada encontrada
Referência à classe MUtil
Diagrama de heranças da classe MUtil
Util

Membros públicos estáticos

static clog ($args)
 
static cerror ($args)
 
static flog ()
 
static NVL ($value1, $value2)
 
static ifNull ($value1, $value2, $value3)
 
static setIfNull (&$value1, $value2)
 
static setIfNotNull (&$value1, $value2)
 
static getBooleanValue ($value)
 
static removeSpaceChars ($value)
 
static copyDirectory ($sourceDir, $destinDir)
 
static removeDirectory ($directory, $empty=FALSE)
 
static getSystemTempDir ()
 
static array_search_recursive ($needle, $haystack)
 
static getAjaxAction ($event, $args='')
 
static getAjaxActionArgs ()
 
static isFirstAccessToPage ()
 
static isFirstAccessToForm ()
 
static isAjaxEvent ()
 
static getDefaultEvent ()
 
static getDefaultEventValue ()
 
static getURLParameters ()
 
static debug ($variable, $forceType=null)
 
static setRightClickAjaxAction ($control, $action)
 
static debugBacktrace ($limit=4)
 
static MDEBUG ($var, $append=false, $file=null)
 
static centralizedDiv ($content, $id=NULL)
 
static getBrowser ()
 

Descrição detalhada

Documentação das funções

◆ array_search_recursive()

static array_search_recursive ( $needle,
$haystack )
static

Searches the array recursively for a given value and returns the corresponding key if successful.

Parâmetros
string$needle
array$haystack
Retorna
mixed If found, returns the key, otherwise FALSE.
Exemplos
/var/docker/solisge-devel/www/solisge/miolo26/classes/utils/mutil.class.php.

◆ centralizedDiv()

static centralizedDiv ( $content,
$id = NULL )
static

Get a div with align attribute set as center.

Parâmetros
array$contentControls.
string$idDiv id.
Retorna
MDiv Instance of the div component.
Exemplos
/var/docker/solisge-devel/www/solisge/miolo26/classes/utils/mutil.class.php.

◆ cerror()

static cerror ( $args)
static

Function to add information to firebug's console error and to Miolo's trace.

Parâmetros
mixed$messageMessage to be shown

◆ clog()

static clog ( $args)
static

Function to add information to firebug's console and to Miolo's trace.

Parâmetros
$messagestring/array to be shown
Exemplos
/var/docker/solisge-devel/www/solisge/miolo26/classes/utils/mutil.class.php.

◆ copyDirectory()

static copyDirectory ( $sourceDir,
$destinDir )
static
Parâmetros
string$sourceDirDiretorio de origem
string$destinDirDiretorio de destino
Retorna
string value
Exemplos
/var/docker/solisge-devel/www/solisge/miolo26/classes/utils/mutil.class.php.

◆ debug()

◆ debugBacktrace()

static debugBacktrace ( $limit = 4)
static

Display the back trace history.

Parâmetros
integer$limitLimit of back trace history.
Exemplos
/var/docker/solisge-devel/www/solisge/miolo26/classes/utils/mutil.class.php.

◆ flog()

static flog ( )
static

Function to add information log to /tmp/flog

Parâmetros
$messagestring/array to be shown
Exemplos
/var/docker/solisge-devel/www/solisge/miolo26/classes/utils/mutil.class.php.

◆ getAjaxAction()

static getAjaxAction ( $event,
$args = '' )
static

Generates a ajax function call with the given arguments. Use MUtil::getAjaxActionArgs() to get the given arguments on ajax request.

Parâmetros
string$eventPHP function to be called.
array$argsArguments array.
Retorna
string Javascript function call.
Exemplos
/var/docker/solisge-devel/www/solisge/miolo26/classes/utils/mutil.class.php.

◆ getAjaxActionArgs()

static getAjaxActionArgs ( )
static

◆ getBooleanValue()

static getBooleanValue ( $value)
static

◆ getBrowser()

◆ getDefaultEvent()

static getDefaultEvent ( )
static

◆ getDefaultEventValue()

static getDefaultEventValue ( )
static

◆ getSystemTempDir()

static getSystemTempDir ( )
static

◆ getURLParameters()

static getURLParameters ( )
static
Retorna
array URL parameters without the default ones.
Exemplos
/var/docker/solisge-devel/www/solisge/miolo26/classes/utils/mutil.class.php.

◆ ifNull()

static ifNull ( $value1,
$value2,
$value3 )
static

◆ isAjaxEvent()

◆ isFirstAccessToForm()

static isFirstAccessToForm ( )
static
Retorna
boolean Return whether is the first access to form.
Exemplos
/var/docker/solisge-devel/www/solisge/miolo26/classes/utils/mutil.class.php.

◆ isFirstAccessToPage()

static isFirstAccessToPage ( )
static
Retorna
boolean Return whether is the first access to page.
Exemplos
/var/docker/solisge-devel/www/solisge/miolo26/classes/utils/mutil.class.php.

◆ MDEBUG()

static MDEBUG ( $var,
$append = false,
$file = null )
static

Debug a var in /tmp/miolo_debug

Parâmetros
Variable$var
boolean$appendmake append content or not.
Exemplos
/var/docker/solisge-devel/www/solisge/miolo26/classes/utils/mutil.class.php.

◆ NVL()

static NVL ( $value1,
$value2 )
static

◆ removeDirectory()

static removeDirectory ( $directory,
$empty = FALSE )
static
Parâmetros
string$directoryDiretorio a ser removido
boolean$empty
Retorna
string value
Exemplos
/var/docker/solisge-devel/www/solisge/miolo26/classes/utils/mutil.class.php.

◆ removeSpaceChars()

static removeSpaceChars ( $value)
static
Parâmetros
mixed$valuevalor a ser substituido
Retorna
string value
Exemplos
/var/docker/solisge-devel/www/solisge/miolo26/classes/utils/mutil.class.php.

◆ setIfNotNull()

static setIfNotNull ( & $value1,
$value2 )
static

◆ setIfNull()

static setIfNull ( & $value1,
$value2 )
static

◆ setRightClickAjaxAction()

static setRightClickAjaxAction ( $control,
$action )
static

Connect an AJAX function to the right click event upon the given control.

Parâmetros
object$controlThe control to enable the right click action.
string$actionAJAX function.
Exemplos
/var/docker/solisge-devel/www/solisge/miolo26/classes/utils/mutil.class.php.

A documentação para esta classe foi gerada a partir do seguinte ficheiro: