Overview

Namespaces

  • LucidFrame
    • Console
    • Core
    • File
  • None

Classes

  • Command
  • Console
  • ConsoleTable

Interfaces

  • CommandInterface
  • Overview
  • Namespace
  • Class

Class Console

Command-line code generation utility to automate programmer tasks.

Namespace: LucidFrame\Console
Located at classes/console/Console.php
Methods summary
public
# __construct( )

Constructor

Constructor

public static
# registerCommand( LucidFrame\Console\Command $command )

Register a command

Register a command

Parameters

$command
public static array
# getCommands( )

Get all registered commands

Get all registered commands

Returns

array
Array of LucidFrame\Console\Command
public boolean
# hasCommand( string $name )

Check a command name is already registered

Check a command name is already registered

Parameters

$name
The command name

Returns

boolean
public object|null
# getCommand( string $name )

Get the command by name

Get the command by name

Parameters

$name
The command name

Returns

object|null
LucidFrame\Console\Command
Properties summary
protected LucidFrame\Console\Command $command

The command being run

The command being run

#
protected integer $argc

No of arguments passed to script

No of arguments passed to script

#
protected array $argv

Array of arguments passed to script

Array of arguments passed to script

#
protected static array $commands

list of registered commands

list of registered commands

# array()
PHPLucidFrame 3.0 API documentation generated by ApiGen