AbstractCommand::chain_command( string $command, array $args = array(), array $assoc_args = array() )

Chain a command within the class


Parameters Parameters

$command

(string) (Required) Method name of the command to chain.

$args

(array) (Optional) Indexed array of positional command arguments to pass to the chained command.

Default value: array()

$assoc_args

(array) (Optional) Associative array of command options to pass to the chained command.

Default value: array()


Top ↑

Return Return

(void)


Top ↑

Source Source

File: libraries/lifterlms-cli/src/Commands/AbstractCommand.php

	protected function chain_command( $command, $args = array(), $assoc_args = array() ) {
		$this->chaining = true;
		$this->$command( $args, $assoc_args );
		$this->chaining = false;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
0.0.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.