Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
Lib.Main.php File Reference

Go to the source code of this file.

Namespaces

 FDL
 

Functions

 getMainAction ($auth, &$action)
 
 stripUrlSlahes ($url)
 
 initExplorerParam (Application &$app, $defaultValue=false)
 
 getExplorerParamtersName ()
 
 initExplorerWebParam (Application &$app)
 
 initMainVolatileParam (Application &$core, Session &$session=null)
 
 _initMainVolatileParamCli (Application &$core)
 
 _initMainVolatileParamWeb (Application &$core, Session &$session=null)
 
 executeAction (&$action, &$out=null)
 
 checkWshExecUid ($file)
 
 isInteractiveCLI ()
 
 _wsh_send_error ($errMsg, $expand=array())
 
 _wsh_exception_handler ($e, $callStack=true)
 
 _wsh_shutdown_handler ()
 
 enable_wsh_safetybelts ()
 
 formatErrorLogException ($e)
 
 errorLogException ($e)
 
 handleFatalShutdown ()
 

Function Documentation

_initMainVolatileParamCli ( Application $core)

Definition at line 253 of file Lib.Main.php.

+ Here is the call graph for this function:

_initMainVolatileParamWeb ( Application $core,
Session $session = null 
)

Definition at line 280 of file Lib.Main.php.

+ Here is the call graph for this function:

_wsh_exception_handler (   $e,
  $callStack = true 
)

Handle exceptions by logging errors or by sending mails depending if the program is used in a CLI or not.

Parameters
Throwable$e
bool$callStackIf set to false: the error message is minimal. Otherwise the error message is the call stack.

Definition at line 457 of file Lib.Main.php.

_wsh_send_error (   $errMsg,
  $expand = array() 
)

Definition at line 441 of file Lib.Main.php.

_wsh_shutdown_handler ( )

Definition at line 476 of file Lib.Main.php.

checkWshExecUid (   $file)

Definition at line 362 of file Lib.Main.php.

enable_wsh_safetybelts ( )

Definition at line 538 of file Lib.Main.php.

errorLogException (   $e)
Parameters
Exception | Error$e

Definition at line 555 of file Lib.Main.php.

executeAction ( $action,
$out = null 
)

execute action app and action http param

Parameters
Action$action
string$out

Definition at line 323 of file Lib.Main.php.

+ Here is the call graph for this function:

formatErrorLogException (   $e)
Parameters
Throwable$e
Deprecated:
use DcpformatErrorLogException()
Returns
string

Definition at line 548 of file Lib.Main.php.

getExplorerParamtersName ( )

Definition at line 153 of file Lib.Main.php.

getMainAction (   $auth,
$action 
)
Parameters
Authenticator$auth
Action$action

Definition at line 21 of file Lib.Main.php.

+ Here is the call graph for this function:

handleFatalShutdown ( )

Definition at line 560 of file Lib.Main.php.

initExplorerParam ( Application $app,
  $defaultValue = false 
)

init user agent volatile param

Parameters
Application$app
mixed$defaultValue

Definition at line 142 of file Lib.Main.php.

+ Here is the call graph for this function:

initExplorerWebParam ( Application $app)

set volatile patram to detect web user agent

Parameters
Application$app

Definition at line 171 of file Lib.Main.php.

initMainVolatileParam ( Application $core,
Session $session = null 
)

Set various core URLs params

Parameters
Application$core
Session$session

Definition at line 244 of file Lib.Main.php.

+ Here is the call graph for this function:

isInteractiveCLI ( )

Definition at line 430 of file Lib.Main.php.

stripUrlSlahes (   $url)

Definition at line 132 of file Lib.Main.php.

← centre documentaire © anakeen