MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
Referência à classe Shell

Membros públicos

 __construct (Application $application)
 
 run ()
 

Membros protegidos

 autocompleter ($text, $position)
 
 getHeader ()
 

Atributos Protegidos

 $application
 
 $history
 
 $output
 

Descrição detalhada

A Shell wraps an Application to add shell capabilities to it.

This class only works with a PHP compiled with readline support (either –with-readline or –with-libedit)

Autor
Fabien Potencier fabie.nosp@m.n.po.nosp@m.tenci.nosp@m.er@s.nosp@m.ymfon.nosp@m.y-pr.nosp@m.oject.nosp@m..com

Definido na linha 26 do ficheiro Shell.php.

Documentação dos Construtores & Destrutor

◆ __construct()

__construct ( Application $application)

Constructor.

If there is no readline support for the current PHP executable a \RuntimeException exception is thrown.

Parâmetros
Application$applicationAn application instance
Excepções

RuntimeException When Readline extension is not enabled

Definido na linha 42 do ficheiro Shell.php.

Documentação das funções

◆ autocompleter()

autocompleter ( $text,
$position )
protected

Tries to return autocompletion for the current entered text.

Parâmetros
string$textThe last segment of the entered text
integer$positionThe current position

Definido na linha 89 do ficheiro Shell.php.

◆ getHeader()

getHeader ( )
protected

Returns the shell header.

Retorna
string The header string

Definido na linha 123 do ficheiro Shell.php.

◆ run()

run ( )

Runs the shell.

Definido na linha 56 do ficheiro Shell.php.

Documentação dos campos e atributos

◆ $application

$application
protected

Definido na linha 28 do ficheiro Shell.php.

◆ $history

$history
protected

Definido na linha 29 do ficheiro Shell.php.

◆ $output

$output
protected

Definido na linha 30 do ficheiro Shell.php.


A documentação para esta classe foi gerada a partir do seguinte ficheiro: