Changeset 94
- Timestamp:
- 03/01/08 19:40:53 (9 months ago)
- Files:
-
- trunk/Phergie/Plugin/Abstract/Command.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Phergie/Plugin/Abstract/Command.php
r68 r94 46 46 if (strpos($name, 'onDo') === 0) { 47 47 $this->methods[strtolower(substr($name, 4))] = 48 $method->getNumberOfRequiredParameters(); 48 array( 49 $method->getNumberOfParameters(), 50 $method->getNumberOfRequiredParameters() 51 ); 49 52 } 50 53 } … … 62 65 } 63 66 } else { 64 $params = preg_split('/\s+/', $params, $this->methods[$command] );65 if ($this->methods[$command] <= count($params)) {67 $params = preg_split('/\s+/', $params, $this->methods[$command][0]); 68 if ($this->methods[$command][1] <= count($params)) { 66 69 call_user_func_array(array($this, $method), $params); 67 70 }