category Zend
package Zend_Console

 Methods

Create a new CLI request

__construct(array $args, array $env) 

Parameters

$args

arraynull

Console arguments. If not supplied, $_SERVER['argv'] will be used

$env

arraynull

Environment data. If not supplied, $_ENV will be used

Exceptions

\Zend\Console\Exception\RuntimeException

Allow PHP casting of this object

__toString() : string

Returns

string

Return the parameter container responsible for env parameters

env() : \Zend\Stdlib\Parameters

Get message content

getContent() : mixed
Inherited

inherited_from \Zend\Stdlib\Message::getContent()

Returns

mixed

Return a single parameter.

getParam(string $name, string $default) : mixed

Shortcut for $request->params()->get()

Parameters

$name

string

Parameter name

$default

string

(optional) default value in case the parameter does not exist

Returns

mixed

Return the container responsible for parameters

getParams() : \Zend\Stdlib\Parameters

getScriptName()

getScriptName() : string

Returns

string

Return the container responsible for parameters

params() : \Zend\Stdlib\Parameters

Set message content

setContent(mixed $value) : \Zend\Stdlib\Message
Inherited

inherited_from \Zend\Stdlib\Message::setContent()

Parameters

$value

mixed

Returns

Provide an alternate Parameter Container implementation for env parameters in this object, (this is NOT the primary API for value setting, for that see env())

setEnv(\Zend\Stdlib\Parameters $env) : \Zend\Console\Request

Exchange parameters object

setParams(\Zend\Stdlib\Parameters $params) : \Zend\Console\Request

Parameters

Returns

setScriptName()

setScriptName(string $scriptName) 

Parameters

$scriptName

string

toString()

toString() : string

Returns

string

 Properties

 

$content

$content : string
Inherited

inherited_from \Zend\Stdlib\Message::$$content
 

$envParams

$envParams : \Zend\Stdlib\Parameters

   

$params

$params : \Zend\Stdlib\Parameters

 

$scriptName

$scriptName : string