PHP
[ class tree: PHP ] [ index: PHP ] [ all elements ]

Class: PHP_Shell

Source Location: /PHP_Shell-0.3.0/PHP/Shell.php

Class Overview




Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 94]


[ Top ]


Class Variables

$code =

[line 99]

current code-buffer
  • Access: protected

Type:   string


[ Top ]

$have_readline =

[line 105]

set if readline support is enabled
  • Access: protected

Type:   bool


[ Top ]

$stdin =

[line 116]

  • Access: protected

Type:   mixed


[ Top ]

$version =  '0.3.0'

[line 111]

current version of the class
  • Access: protected

Type:   string


[ Top ]



Method Detail

__construct (Constructor)   [line 121]

PHP_Shell __construct( )

init the shell and change if readline support is available
  • Access: public

[ Top ]

appendCode   [line 827]

void appendCode( string $code)

append code to the code-buffer
  • Access: public

Parameters:

string   $code   —  input buffer

[ Top ]

cmdHelp   [line 711]

string cmdHelp( $l)

get the inline help
  • Return: the inline help as string
  • Access: public

Parameters:

   $l   — 

[ Top ]

cmdLicense   [line 731]

string cmdLicense( $l)

get the license string
  • Return: the inline help as string
  • Access: public

Parameters:

   $l   — 

[ Top ]

cmdQuit   [line 763]

bool cmdQuit( $l)

handle the 'quit' command

Parameters:

   $l   — 

[ Top ]

getCode   [line 811]

string getCode( )

get the code-buffer
  • Return: the code-buffer
  • Access: public

[ Top ]

getVersion   [line 845]

string getVersion( )

get version of the class
  • Return: version-string
  • Access: public

[ Top ]

hasReadline   [line 836]

bool hasReadline( )

check if readline support is enabled
  • Return: true if enabled, false otherwise
  • Access: public

[ Top ]

input   [line 774]

bool input( )

handle the input line

read the input and handle the commands of the shell

  • Return: false on 'quit' or EOF, true otherwise
  • Access: public

[ Top ]

parse   [line 151]

int parse( )

parse the PHP code

we parse before we eval() the code to

  • fetch fatal errors before they come up
  • know about where we have to wait for closing braces

  • Return: 0 if a executable statement is in the code-buffer, non-zero otherwise
  • Access: public

[ Top ]

readline   [line 684]

string readline( )

show the prompt and fetch a single line

uses readline() if avaialbe

  • Return: a input-line
  • Access: public

[ Top ]

resetCode   [line 818]

void resetCode( )

reset the code-buffer
  • Access: public

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:40:35 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.