Re: [PHP4BETA] References to functions inside a class?
[email protected] (Stanislav Malyshev) Mon, 5 Jun 2000 10:41:57 +0300 (IDT)
| Newsgroups | php.version4 |
|---|---|
| Organization | Zend Technologies Ltd (http://www.zend.com/) |
| Message-ID | <[email protected]> |
J>> {
J>> if($limit)
J>> $this->query() = &$this->query_l();
J>> else
J>> $this->query() = &$this->query_u();
J>> }
J>> }
J>> ?>
J>>
J>> PS: I'll even accept a pointer to discussion saying that it CAN'T be
J>> done...I know someone on this list was discussiing this at one pont, but I
J>> don't recall the discussion.
You can't have reference to function. However, you can do the following:
$this->call_query = "query_l";
$this->$call_query($params)
i.e., call by variable name.
--
Stanislav Malyshev [email protected]
+972-3-6139665