note 72620 deleted from language.oop5 by colder
| From: | colder@php.net | Date: | Fri, 26 Jan 2007 12:48:03 +0000 |
| Subject: | note 72620 deleted from language.oop5 by colder | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-122224@lists.php.net to get a copy of this message | ||
Note Submitter: radu dot zelinski at gmail dot com
----
It is possible to use GET parameters to call a specific class method, by using this code :
if($_GET["sysmod"] != "" &&
$this->reflector->hasMethod($_GET["sysmod"]))
{
$this->$_GET["sysmod"]();
if($_GET["mod"] != "" &&
$this->reflector->hasMethod($_GET["mod"]))
{
$this->$_GET["mod"]();
}
elseif($_GET["mod"] != "") $this->SysError();
}