Phpcraft
Public Member Functions | List of all members
Phpcraft\PlainUserInterface Class Reference
Inheritance diagram for Phpcraft\PlainUserInterface:
Inheritance graph
[legend]
Collaboration diagram for Phpcraft\PlainUserInterface:
Collaboration graph
[legend]

Public Member Functions

 __construct ($title=null)
 
 render ()
 
 append (string $message)
 
 add (string $message)
 

Detailed Description

Plain user interface, e.g. writing logs to a file.

Constructor & Destructor Documentation

◆ __construct()

Phpcraft\PlainUserInterface::__construct (   $title = null)

Note that from this point forward, STDIN is in the hands of pas, if it wasn't already, so make sure to register a "stdin_line" event handler with pas if you'd like input to work.

Parameters
string | null$titleThe title that the terminal window will be given or null.

Reimplemented from Phpcraft\UserInterface.

Member Function Documentation

◆ add()

Phpcraft\PlainUserInterface::add ( string  $message)

Prints the given message.

Parameters
string$message
Returns
PlainUserInterface $this

Reimplemented from Phpcraft\UserInterface.

◆ append()

Phpcraft\PlainUserInterface::append ( string  $message)

Prints the given message. Only available in accordance with UserInterface, appending messages is not supported here.

Parameters
string$message
Returns
PlainUserInterface $this

Reimplemented from Phpcraft\UserInterface.

◆ render()

Phpcraft\PlainUserInterface::render ( )

Does nothing. Only available in accordance with UserInterface.

Reimplemented from Phpcraft\UserInterface.