Lines Matching refs:cmds
21 protected $cmds = array();
29 $this->cmds = self::getCommands($this);
34 } elseif (!isset($this->cmds[$argv[1]]['run'])) {
40 if (isset($this->cmds[$command]['arg'])) {
41 $this->args = call_user_func(array($this, $this->cmds[$command]['arg']));
87 call_user_func(array($this, $this->cmds[$command]['run']), $this->args);
296 if (!array_key_exists($which, $this->cmds)) {
305 $cmds = array($which => $this->cmds[$which]);
309 ksort($this->cmds);
310 foreach($this->cmds as $name => $funcs) {
316 foreach($this->cmds as $name => $funcs) {
320 $cmds = $this->cmds;
323 foreach($cmds as $name => $funcs) {
346 ksort($this->cmds);
347 echo join(' ', array_keys($this->cmds)) . "\n";