Commandr.
| package | commandr |
|---|
__construct(string $inputted_command, \?array $prior_output= null, \?array $parameters= null)
stringThe inputted command, unparsed
\?arrayAn array of prior output to be prepended (null: none)
\?arrayAn array of prior parameters (null: none)
output_html(boolean $blank_ok = false) : \~Tempcode
booleanWhether it is okay to have blank output
\~TempcodeThe HTML (false: error)output_xml() : boolean
booleanSuccess?parse_input()
return_output() : \~array
\~arrayThe output (false: failure)return_parse_tree() : \~array
\~arrayThe parse tree (false: failure)_array_to_html(array $array) : \Tempcode
arrayArray to display
\TempcodeTempcode for array_array_to_text(array $array, integer $indentation = 0) : string
arrayArray to display
integerGlobal indentation
stringText representation of array_check_is_redirection() : boolean
booleanRedirection instruction?_combine_streams(array $stream1, array $stream2) : array
arrayStream 1
arrayStream 2
arrayCombined streams_do_indentation(integer $indentation) : string
integerNumber of tabs to return
stringTabs_extract_command()
_extract_extras()
_extract_parameters()
_find_script_file(string $script_name, \?string $dir = null) : \~string
stringScript name
\?stringDirectory (null: Commandr module data dir)
\~stringPath or failure (false: failure)_handle_php_command()
$current_input
$fs
$input_parameters
$output
$parse_runtime
$parsed_input