public function run() { $methodName = Request::getParamByNum($this->_methodNameParameterNumber); if (method_exists($this, $methodName)) { $this->{$methodName}(); } else { echo "Unknown method: " . get_class($this) . "->{$methodName}()"; } exit; }