ice framework documentation ice doc v1.10.1
Methods
  • getModules() : void
  • setModules(variable $modules) : void
  • __construct(variable $di) : void
    Console constructor
  • addModule(string $name, array $options) : void
    Add module with its dir path, initial class name and namespace
  • handle(variable $arguments) : void
    Handle an command-line request.
  • color(string $text, int $color, int $decoration, int $bgColor) : void
    Returns the given text with the correct color codes for a foreground and optionally a background color.
  • info(string $text) : void
    Returns info text.
  • success(string $text) : void
    Returns success text.
  • warning(string $text) : void
    Returns warning text.
  • error(string $text) : void
    Returns error text.
Methods Details
  • public function getModules()

  • public function setModules(variable $modules)

  • public function __construct(variable $di)

    Console constructor
  • public function addModule(string $name, array $options)

    Add module with its dir path, initial class name and namespace
  • public function handle(variable $arguments)

    Handle an command-line request.
  • public function color(string $text, int $color, int $decoration, int $bgColor)

    Returns the given text with the correct color codes for a foreground and optionally a background color.
  • public function info(string $text)

    Returns info text.
  • public function success(string $text)

    Returns success text.
  • public function warning(string $text)

    Returns warning text.
  • public function error(string $text)

    Returns error text.