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/Options.php | 132 ---------------------- 1 file changed, 132 deletions(-) delete mode 100644 framework/3rdParty/PhpShell/PHP/Shell/Options.php (limited to 'framework/3rdParty/PhpShell/PHP/Shell/Options.php') diff --git a/framework/3rdParty/PhpShell/PHP/Shell/Options.php b/framework/3rdParty/PhpShell/PHP/Shell/Options.php deleted file mode 100644 index 8f5e57d1..00000000 --- a/framework/3rdParty/PhpShell/PHP/Shell/Options.php +++ /dev/null @@ -1,132 +0,0 @@ -registerCommand('#^:set #', $this, 'cmdSet', ':set ', 'set a shell variable'); - } - - /** - * register a option - * - * @param string name of the option - * @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))); - } - - $this->options[trim($option)] = array("obj" => $obj, "setor" => $setor); - } - - /** - * set a shell-var - * - * :set al to enable autoload - * :set bg=dark to enable highlighting with a dark backgroud - */ - public function cmdSet($l) { - if (!preg_match('#:set\s+([a-z]+)\s*(?:=\s*([a-z0-9]+)\s*)?$#i', $l, $a)) { - print(':set failed: either :set