From 6dae236ec5528522de472637f9d70a98158b9a5d Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Thu, 5 Feb 2015 11:45:26 +0100 Subject: Renamed 3rdparty directory to vendor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Php namespaces can’t begin with a number --- framework/3rdParty/PhpShell/PHP/Shell/Commands.php | 72 ---------------------- 1 file changed, 72 deletions(-) delete mode 100644 framework/3rdParty/PhpShell/PHP/Shell/Commands.php (limited to 'framework/3rdParty/PhpShell/PHP/Shell/Commands.php') diff --git a/framework/3rdParty/PhpShell/PHP/Shell/Commands.php b/framework/3rdParty/PhpShell/PHP/Shell/Commands.php deleted file mode 100644 index 3d4bf5b2..00000000 --- a/framework/3rdParty/PhpShell/PHP/Shell/Commands.php +++ /dev/null @@ -1,72 +0,0 @@ -' to catch the cmdline strings. -* -* registerCommand() should be called by the extensions in the register() -* method. Its parameters are -* - the regex which matches the command -* - the object and the method to call if the command is matched -* - the human readable command string and the description for the help -*/ -class PHP_Shell_Commands { - /* - * instance of the current class - * - * @var PHP_Shell_Commands - */ - static protected $instance; - - /** - * registered commands - * - * array('quit' => ... ) - * - * @var array - * @see registerCommand - */ - protected $commands = array(); - - /** - * register your own command for the shell - * - * @param string $regex a regex to match against the input line - * @param string $obj a Object - * @param string $method a method in the object to call of the regex matches - * @param string $cmd the command string for the help - * @param string $help the full help description for this command - */ - public function registerCommand($regex, $obj, $method, $cmd, $help) { - $this->commands[] = array( - 'regex' => $regex, - 'obj' => $obj, - 'method' => $method, - 'command' => $cmd, - 'description' => $help - ); - } - - /** - * return a copy of the commands array - * - * @return all commands - */ - public function getCommands() { - return $this->commands; - } - - static function getInstance() { - if (is_null(self::$instance)) { - $class = __CLASS__; - self::$instance = new $class(); - } - return self::$instance; - } -} - - -- cgit v1.2.3