AloFramework documentation
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Namespaces

  • Alo
    • Cache
    • CLI
    • Controller
    • Db
    • Exception
    • FileSystem
    • Session
    • Traversables
    • Validators
    • Windows
  • Controller
  • None
  • PHP

Classes

  • Downloader
  • IO

Class IO

Handles input & output

Abstract
Namespace:Alo\CLI
Author:Art <a.molcanovas@gmail.com>
Located atsys/class/alo/cli/io.php

Methods summary

public static
#echoLines(integer$lines=100)

Clears previous output

Clears previous output

Parameters

$lines
integer
$lines Amount of empty lines to output

Author

Art <a.molcanovas@gmail.com>
public static
#openFileDefault(string$path)

Opens a file using the default program. Works on Windows Linux as long as xdg-utils are installed.

Opens a file using the default program. Works on Windows Linux as long as xdg-utils are installed.

Parameters

$path
string
$path File path.

Author

Art <a.molcanovas@gmail.com>
public static string
#readline(string$prompt=null)

Reads a line of user input. Windows does not have readline() so a cross-platform solution is required.

Reads a line of user input. Windows does not have readline() so a cross-platform solution is required.

Parameters

$prompt
string
$prompt Prompt message

Returns

string

Author

Art <a.molcanovas@gmail.com>

Magic methods summary

Properties summary

public static array$argv
#

Arguments passed on to PHP excl the first (file name)

Arguments passed on to PHP excl the first (file name)

AloFramework documentation API documentation generated byApiGen 2.8.0