2009年2月11日星期三

[fw-db] Zend_Db_Statement and _bindParam method/variable?!?

I was looking at the Zend_Db_Statement source code and found something very,
very strange and wondered if anyone could shed some light on this.

There is a protected variable called _bindParam. But in the bindParam
method, the last two lines are:

$this->_bindParam[$position] =& $variable;
return $this->_bindParam($position, $variable, $type, $length,
$options);

There is *no* method called _bindParam in this class, *but* the derived
class, Zend_Db_Statement_Pdo, *has* a _bindParam method...

It looks like some kind of overloading with an array and a method...
yerk.... I am totally wrong? If I'm right, this is some disgusting OOP we're
seeing here...
--
View this message in context: http://www.nabble.com/Zend_Db_Statement-and-_bindParam-method-variable-%21--tp21955587p21955587.html
Sent from the Zend DB mailing list archive at Nabble.com.

没有评论: