PHP Class Phergie_Plugin_Ideone, phergie

Inheritance: extends Phergie_Plugin_Abstract
Show file Open project: phergie/phergie

Public Methods

Method Description
onCommandIdeone ( string $language, string $code ) : void Executes a source code sequence in a specified language and returns the result.
onLoad ( ) : void Checks for dependencies.

Protected Methods

Method Description
isError ( array $result ) : boolean Checks a service response for an error, sends a notice to the event source if an error has occurred, and returns whether an error was found.

Method Details

isError() protected method

Checks a service response for an error, sends a notice to the event source if an error has occurred, and returns whether an error was found.
protected isError ( array $result ) : boolean
$result array Associative array representing the service response
return boolean TRUE if an error is found, FALSE otherwise

onCommandIdeone() public method

Executes a source code sequence in a specified language and returns the result.
public onCommandIdeone ( string $language, string $code ) : void
$language string Programming language the source code is in
$code string Source code to execute
return void

onLoad() public method

Checks for dependencies.
public onLoad ( ) : void
return void