Class jCmdLineRequest

Description

a request object for scripts used in a command line

Located in /core/request/jCmdLineRequest.class.php (line 21)

jRequest
   |
   --jCmdLineRequest
Variable Summary
Method Summary
jCmdLineRequest __construct ([boolean $onlyDefaultAction = false])
string getIP ()
void isAllowedResponse ( $respclass)
void _initParams ()
void _initUrlData ()
Variables
mixed $defaultResponseType = 'cmdline' (line 25)
  • access: public

Redefinition of:
jRequest::$defaultResponseType
the type of the default response
mixed $onlyDefaultAction = false (line 27)
  • access: protected
mixed $type = 'cmdline' (line 23)
  • access: public

Redefinition of:
jRequest::$type
the request type code

Inherited Variables

Inherited from jRequest

jRequest::$params
jRequest::$urlPathInfo
jRequest::$urlScript
jRequest::$urlScriptName
jRequest::$urlScriptPath
Methods
Constructor __construct (line 36)

If you want to have a CLI script dedicated to the default action, tell it by given true, so you haven't to indicate the action on the command line. It means of course you couldn't execute any other actions with this script.

jCmdLineRequest __construct ([boolean $onlyDefaultAction = false])
  • boolean $onlyDefaultAction

Redefinition of:
jRequest::__construct()
getIP (line 96)

return the ip address of the user

  • return: the ip
string getIP ()

Redefinition of:
jRequest::getIP()
return the ip address of the user
isAllowedResponse (line 40)
  • access: public
void isAllowedResponse ( $respclass)
  • $respclass

Redefinition of:
jRequest::isAllowedResponse()
_initParams (line 50)
  • access: protected
void _initParams ()

Redefinition of:
jRequest::_initParams()
analyse the http request and sets the params property
_initUrlData (line 44)
  • access: protected
void _initUrlData ()

Redefinition of:
jRequest::_initUrlData()
init the url* properties

Inherited Methods

Inherited From jRequest

jRequest::__construct()
jRequest::getDomainName()
jRequest::getIP()
jRequest::getParam()
jRequest::getPort()
jRequest::getProtocol()
jRequest::getResponse()
jRequest::getServerURI()
jRequest::header()
jRequest::headers()
jRequest::init()
jRequest::isAllowedResponse()
jRequest::readHttpBody()
jRequest::_initParams()
jRequest::_initUrlData()

Documentation generated on Thu, 19 Sep 2013 00:02:35 +0200 by phpDocumentor 1.4.3