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(array 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>|nullSource data (Optional, default is $_REQUEST)

options

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

Response

mixed

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

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>