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

Namespaces

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

Classes

  • Downloader
  • IO

Class IO

Handles input & output

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

Methods summary

public static
# echo_lines( 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
# open_file_default( 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 by ApiGen 2.8.0