24 #require_once 'Zend/Server/Reflection/Method.php'; 77 public function __construct(ReflectionClass $reflection, $namespace =
null, $argv =
false)
79 $this->_reflection = $reflection;
82 foreach ($reflection->getMethods() as
$method) {
84 if (
'__' == substr(
$method->getName(), 0, 2)) {
104 if (method_exists($this->_reflection,
$method)) {
105 return call_user_func_array(array($this->_reflection,
$method), $args);
108 #require_once 'Zend/Server/Reflection/Exception.php'; 123 if (isset($this->_config[$key])) {
124 return $this->_config[$key];
141 $this->_config[$key] =
$value;
173 if (empty($namespace)) {
174 $this->_namespace =
'';
178 if (!is_string($namespace) || !preg_match(
'/[a-z0-9_\.]+/i', $namespace)) {
179 #require_once 'Zend/Server/Reflection/Exception.php'; 183 $this->_namespace = $namespace;
196 $this->_reflection =
new ReflectionClass($this->getName());
__construct(ReflectionClass $reflection, $namespace=null, $argv=false)