CLIRequest.php
system/HTTP/CLIRequest.php
1 class
17 methods
class CLIRequest
Represents a request from the command-line. Provides additional tools to interact with that request since CLI requests are not static like HTTP requests might be. Portions of this code were initially from the FuelPHP Framework, version 1.7.x, and used here under the MIT license they were originally made available under. http://fuelphp.com
__construct
(App $config)
getPath
()
getOptions
()
getArgs
()
getSegments
()
getOption
(string $key)
getOptionString
(bool $useLongOpts = false)
parseCommand
()
isCLI
()
getGet
($index = null, $filter = null, $flags = null)
getPost
($index = null, $filter = null, $flags = null)
getPostGet
($index = null, $filter = null, $flags = null)
getGetPost
($index = null, $filter = null, $flags = null)
getCookie
($index = null, $filter = null, $flags = null)
returnNullOrEmptyArray
($index)
getLocale
()
is
(string $type)