Class Cli
MvcCore Cli Request extension: - linear request url parsing from $_SERVER into local properties describing app root and params - params reading from $_SERVER['argv'] in double dash, single dash or no dash form with or without equal char - params cleaning by developer rules
- MvcCore\Request
-
MvcCore\Ext\Request\Cli
public
|
#
__construct( array & $server, array & $get, array & $post )
Get everytime new instance of http request, global variables should be changed and injected here to get different request object from currently called real request. |
protected
|
|
protected
|
|
protected
|
|
protected
|
#
initCliParamSingleDash( $i, & $params, & $rawArg, & $nextRawArg, & $nextRawArgIsValue )
Initialize params from cli, starting with single dash, with value assigned by equal char or after space as another query part if any, else boolean true. |
protected
|
#
initCliParamDoubleDash( $i, & $params, & $rawArg, & $nextRawArg, & $nextRawArgIsValue )
Initialize params from cli, starting with double dash, with value assigned by equal char or after space as another query part if any, else boolean true. |
protected
|
#
initCliParamNoDash( & $params, & $rawArg )
Initialize params from cli, starting without dash, with value assigned by equal char or after space as another query part if any, else boolean true. |
protected
|
GetInstance(),
GetParam(),
IsAppRequest(),
SetParam(),
__call(),
__get(),
__set(),
initBasePath(),
initHttpParams(),
initMethod(),
initParsedUrlSegments(),
initPath(),
initProtocol(),
initReferer(),
initUrlCompositions()
|
string |
VERSION
MvcCore Extension - Request CLI - version: Comparation by PHP function version_compare(); |
#
'4.2.0'
|
METHOD_GET,
METHOD_POST,
PROTOCOL_HTTP,
PROTOCOL_HTTPS
|
public
boolean
|
$Console
Application console mode. TRUE if application is running in console mode (php_sapi_name() == 'cli'). |
#
FALSE
|
$AppRoot,
$BasePath,
$BaseUrl,
$DomainUrl,
$Fragment,
$FullUrl,
$Host,
$Lang,
$Locale,
$MediaSiteKey,
$Method,
$Params,
$Path,
$Port,
$Protocol,
$Query,
$Referer,
$RequestPath,
$RequestUrl,
$ScriptName,
$ServerName,
$appRequest,
$getGlobals,
$indexScriptName,
$postGlobals,
$serverGlobals
|