import v1.1.0_beta1 | 2009-08-21
This commit is contained in:
@ -18,11 +18,6 @@
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
|
||||
/**
|
||||
* Zend_Server_Reflection_Exception
|
||||
*/
|
||||
require_once 'Zend/Server/Reflection/Exception.php';
|
||||
|
||||
/**
|
||||
* Zend_Server_Reflection_Node
|
||||
*/
|
||||
@ -53,7 +48,7 @@ require_once 'Zend/Server/Reflection/Prototype.php';
|
||||
* @subpackage Reflection
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Abstract.php 12619 2008-11-13 15:24:29Z alexander $
|
||||
* @version $Id: Abstract.php 16097 2009-06-17 01:41:42Z yoshida@zend.co.jp $
|
||||
*/
|
||||
abstract class Zend_Server_Reflection_Function_Abstract
|
||||
{
|
||||
@ -120,6 +115,7 @@ abstract class Zend_Server_Reflection_Function_Abstract
|
||||
// testing here.
|
||||
if ((!$r instanceof ReflectionFunction)
|
||||
&& (!$r instanceof ReflectionMethod)) {
|
||||
require_once 'Zend/Server/Reflection/Exception.php';
|
||||
throw new Zend_Server_Reflection_Exception('Invalid reflection class');
|
||||
}
|
||||
$this->_reflection = $r;
|
||||
@ -340,9 +336,10 @@ abstract class Zend_Server_Reflection_Function_Abstract
|
||||
}
|
||||
|
||||
if (count($paramTypesTmp) != $paramCount) {
|
||||
require_once 'Zend/Server/Reflection/Exception.php';
|
||||
throw new Zend_Server_Reflection_Exception(
|
||||
'Variable number of arguments is not supported for services (except optional parameters). '
|
||||
. 'Number of function arguments must currespond to actual number of arguments described in a docblock.');
|
||||
. 'Number of function arguments must correspond to actual number of arguments described in a docblock.');
|
||||
}
|
||||
|
||||
$paramTypes = array();
|
||||
@ -371,6 +368,7 @@ abstract class Zend_Server_Reflection_Function_Abstract
|
||||
return call_user_func_array(array($this->_reflection, $method), $args);
|
||||
}
|
||||
|
||||
require_once 'Zend/Server/Reflection/Exception.php';
|
||||
throw new Zend_Server_Reflection_Exception('Invalid reflection method ("' .$method. '")');
|
||||
}
|
||||
|
||||
@ -420,6 +418,7 @@ abstract class Zend_Server_Reflection_Function_Abstract
|
||||
}
|
||||
|
||||
if (!is_string($namespace) || !preg_match('/[a-z0-9_\.]+/i', $namespace)) {
|
||||
require_once 'Zend/Server/Reflection/Exception.php';
|
||||
throw new Zend_Server_Reflection_Exception('Invalid namespace');
|
||||
}
|
||||
|
||||
@ -445,6 +444,7 @@ abstract class Zend_Server_Reflection_Function_Abstract
|
||||
public function setDescription($string)
|
||||
{
|
||||
if (!is_string($string)) {
|
||||
require_once 'Zend/Server/Reflection/Exception.php';
|
||||
throw new Zend_Server_Reflection_Exception('Invalid description');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user