summaryrefslogtreecommitdiff
path: root/framework/3rdParty/PhpShell/PHP/Shell
diff options
context:
space:
mode:
Diffstat (limited to 'framework/3rdParty/PhpShell/PHP/Shell')
-rw-r--r--framework/3rdParty/PhpShell/PHP/Shell/Commands.php10
-rw-r--r--framework/3rdParty/PhpShell/PHP/Shell/Extensions/VerbosePrint.php6
-rw-r--r--framework/3rdParty/PhpShell/PHP/Shell/Options.php18
3 files changed, 17 insertions, 17 deletions
diff --git a/framework/3rdParty/PhpShell/PHP/Shell/Commands.php b/framework/3rdParty/PhpShell/PHP/Shell/Commands.php
index 5a5e7e9b..3d4bf5b2 100644
--- a/framework/3rdParty/PhpShell/PHP/Shell/Commands.php
+++ b/framework/3rdParty/PhpShell/PHP/Shell/Commands.php
@@ -3,14 +3,14 @@
/**
* Commands for the PHP_Shell
*
-* Extensions can register their own commands for the shell like the
+* Extensions can register their own commands for the shell like the
* InlineHelp Extension which provides inline help for all functions
*
-* It uses the pattern '? <string>' to catch the cmdline strings.
+* It uses the pattern '? <string>' to catch the cmdline strings.
*
-* registerCommand() should be called by the extensions in the register()
+* registerCommand() should be called by the extensions in the register()
* method. Its parameters are
-* - the regex which matches the command
+* - 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
*/
@@ -23,7 +23,7 @@ class PHP_Shell_Commands {
static protected $instance;
/**
- * registered commands
+ * registered commands
*
* array('quit' => ... )
*
diff --git a/framework/3rdParty/PhpShell/PHP/Shell/Extensions/VerbosePrint.php b/framework/3rdParty/PhpShell/PHP/Shell/Extensions/VerbosePrint.php
index 843292b0..425937c1 100644
--- a/framework/3rdParty/PhpShell/PHP/Shell/Extensions/VerbosePrint.php
+++ b/framework/3rdParty/PhpShell/PHP/Shell/Extensions/VerbosePrint.php
@@ -4,12 +4,12 @@ class PHP_Shell_Extensions_VerbosePrint implements PHP_Shell_Extension {
protected $oneshot_verbose = false;
public function register() {
- $cmd = PHP_Shell_Commands::getInstance();
+/* $cmd = PHP_Shell_Commands::getInstance();
$cmd->registerCommand('#^p #', $this, 'cmdPrint', 'p <var>', 'print the variable verbosly');
$opt = PHP_Shell_Options::getInstance();
$opt->registerOption('verboseprint', $this, 'optSetVerbose');
-
+*/
}
/**
@@ -48,7 +48,7 @@ class PHP_Shell_Extensions_VerbosePrint implements PHP_Shell_Extension {
$v = $this->opt_verbose || $this->oneshot_verbose;
$this->oneshot_verbose = false;
-
+
return $v;
}
}
diff --git a/framework/3rdParty/PhpShell/PHP/Shell/Options.php b/framework/3rdParty/PhpShell/PHP/Shell/Options.php
index 649d6727..8f5e57d1 100644
--- a/framework/3rdParty/PhpShell/PHP/Shell/Options.php
+++ b/framework/3rdParty/PhpShell/PHP/Shell/Options.php
@@ -1,7 +1,7 @@
<?php
require_once(dirname(__FILE__)."/Extensions.php"); /* for the PHP_Shell_Interface */
-
+
/**
*
*/
@@ -28,10 +28,10 @@ class PHP_Shell_Options implements PHP_Shell_Extension {
* @see registerOptionAlias
*/
protected $option_aliases = array();
-
+
public function register() {
- $cmd = PHP_Shell_Commands::getInstance();
- $cmd->registerCommand('#^:set #', $this, 'cmdSet', ':set <var>', 'set a shell variable');
+// $cmd = PHP_Shell_Commands::getInstance();
+ // $cmd->registerCommand('#^:set #', $this, 'cmdSet', ':set <var>', 'set a shell variable');
}
/**
@@ -41,7 +41,7 @@ class PHP_Shell_Options implements PHP_Shell_Extension {
* @param object a object handle
* @param string method-name of the setor in the object
* @param string (unused)
- */
+ */
public function registerOption($option, $obj, $setor, $getor = null) {
if (!method_exists($obj, $setor)) {
throw new Exception(sprintf("setor %s doesn't exist on class %s", $setor, get_class($obj)));
@@ -88,15 +88,15 @@ class PHP_Shell_Options implements PHP_Shell_Extension {
}
$this->option_aliases[trim($alias)] = trim($option);
-
+
}
/**
* execute a :set command
*
* calls the setor for the :set <option>
- *
- *
+ *
+ *
*/
private function execute($key, $value) {
/* did we hit a alias (bg for backgroud) ? */
@@ -110,7 +110,7 @@ class PHP_Shell_Options implements PHP_Shell_Extension {
print (':set '.$key.' failed: unknown key');
return;
}
-
+
if (!isset($this->options[$opt_key]["setor"])) {
return;
}