Arquivos
hhvm/hphp/system/classes/DebuggerCommand.php
T
Paul Tarjan 8eaa77f319 rejigger systemlib
I've always been a bit sad about having all classes in the same file to govern inclusion order. And the filenames didn't match the class names.

Instead, lets not rely on whatever order `find` returns, and instead hard-code the ordering of the system lib. I grouped the files by what extension they came from.
2013-06-03 23:54:26 -07:00

33 linhas
856 B
PHP

<?php
interface DebuggerCommand {
/**
* Called when DebuggerClient needs to auto-complete. Inside this function,
* one can call $client->addCompletion() with a list of strings or one of
* those DebuggerClient::AUTO_COMPLETE_ constants.
*/
public function onAutoComplete($client);
/**
* Called when DebuggerClient needs to displays help on the command. Inside
* this function, one can call $client->help() and its different forms.
*
* @return TRUE if helped, FALSE if any error
*/
public function help($client);
/**
* How to process the command on client side.
*
* @return TRUE for success, FALSE for failure
*/
public function onClient($client);
/**
* How to process the command on server side.
*
* @return TRUE for success, FALSE for failure
*/
public function onServer($proxy);
}