PHP Class Phergie_Plugin_Ideone, phergie

Inheritance: extends Phergie_Plugin_Abstract
Afficher le fichier Open project: phergie/phergie

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

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
Résultat boolean TRUE if an error is found, FALSE otherwise

onCommandIdeone() public méthode

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
Résultat void

onLoad() public méthode

Checks for dependencies.
public onLoad ( ) : void
Résultat void