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()
Return Return
(void)
Source Source
File: libraries/lifterlms-cli/src/Commands/AbstractCommand.php
40 41 42 43 44 | protected function chain_command( $command , $args = array (), $assoc_args = array () ) { $this ->chaining = true; $this -> $command ( $args , $assoc_args ); $this ->chaining = false; } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
0.0.1 | Introduced. |