Cli

Extends Input

Joomla! Input CLI Class

deprecated
since

1.7.0

deprecated

4.3 will be removed in 6.0 Use the joomla/console package instead

package

Joomla CMS

Methods

__construct

Constructor.

__construct(mixed||string|int source = null, mixed||string|int options = []) : 
deprecated
since

1.7.0

deprecated

4.3 will be removed in 6.0 Use the joomla/console package instead

Arguments

source

array<string|int, mixed>Source data (Optional, default is $_REQUEST)

options

array<string|int, mixed>Array of configuration parameters (Optional)

Response

mixed

__get

Magic method to get an input object

__get( name) : \Joomla\Input\Input
inherited deprecated
since

1.7.0

deprecated

4.3 will be removed in 6.0. Use Joomla\Input\Input instead

Arguments

name

mixedName of the input object to retrieve.

Response

InputThe request input object

getArray

Gets an array of values from the request.

getArray(mixed||string|int vars = [],  datasource = null,  defaultFilter = 'unknown') : 
inherited deprecated
since

1.7.0

deprecated

4.3 will be removed in 6.0. Use Joomla\Input\Input instead

Arguments

vars

array<string|int, mixed>Associative array of keys and filter types to apply. If empty and datasource is null, all the input data will be returned but filtered using the filter given by the parameter defaultFilter in InputFilter::clean.

datasource

mixedArray to retrieve data from, or null.

defaultFilter

stringDefault filter used in InputFilter::clean if vars is empty and datasource is null. If 'unknown', the default case is used in InputFilter::clean.

Response

mixedThe filtered input data.

getArrayRecursive

Gets an array of values from the request.

getArrayRecursive(mixed||string|int vars = [],  datasource = null,  defaultFilter = 'unknown',  recursion = false) : 
inherited deprecated
since

3.4.2

deprecated

4.3 will be removed in 6.0. Use Joomla\Input\Input instead

Arguments

vars

array<string|int, mixed>Associative array of keys and filter types to apply. If empty and datasource is null, all the input data will be returned but filtered using the filter given by the parameter defaultFilter in InputFilter::clean.

datasource

mixedArray to retrieve data from, or null.

defaultFilter

stringDefault filter used in InputFilter::clean if vars is empty and datasource is null. If 'unknown', the default case is used in InputFilter::clean.

recursion

boolFlag to indicate a recursive function call.

Response

mixedThe filtered input data.

parseArguments

Initialise the options and arguments

parseArguments() : 
deprecated

Not supported: -abc c-value

since

1.7.0

deprecated

4.3 will be removed in 6.0 Use the joomla/console package instead

Response

void

serialize

Method to serialize the input.

serialize() : 
deprecated
since

3.0.0

deprecated

4.3 will be removed in 6.0 Use the joomla/console package instead

Response

stringThe serialized input.

unserialize

Method to unserialize the input.

unserialize( input) : 
deprecated
since

3.0.0

deprecated

4.3 will be removed in 6.0 Use the joomla/console package instead

Arguments

input

stringThe serialized input.

Response

void

Properties

get

inherited

Type(s)

Input

post

inherited

Type(s)

Input

request

inherited

Type(s)

Input

server

inherited

Type(s)

Input

env

inherited

Type(s)

Input

files

inherited

Type(s)

Files

json

inherited

Type(s)

Json

allowedGlobals

Container with allowed superglobals

inherited static deprecated
since

3.8.9

deprecated

4.3 will be removed in 6.0. Use Joomla\Input\Input instead

Type(s)

array<string|int, mixed>

inputs

Input objects

inherited deprecated
since

1.7.0

deprecated

4.3 will be removed in 6.0. Use Joomla\Input\Input instead

Type(s)

array<string|int, Input>

executable

The executable that was called to run the CLI script.

deprecated
since

1.7.0

deprecated

4.3 will be removed in 6.0 Use the joomla/console package instead

Type(s)

string

args

The additional arguments passed to the script that are not associated with a specific argument name.

deprecated
since

1.7.0

deprecated

4.3 will be removed in 6.0 Use the joomla/console package instead

Type(s)

array<string|int, mixed>