Re: [Fwd: Re: [PEAR] QFController Action definitions]
| From: | Arnaud Limbourg | Date: | Wed, 01 Oct 2003 11:45:04 +0000 |
| Subject: | Re: [Fwd: Re: [PEAR] QFController Action definitions] | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-8177@lists.php.net to get a copy of this message | ||
Example:
class Bar
{
function insert()
{
echo 'bar::insert() called';
}
}
class foo extends bar
{
function insert()
{
parent::insert();
echo 'foo:insert() called';
}
}
Foo::insert();
If you ever need it :)
Arnaud.
Mike Carter wrote:
-----Original Message----- From: Arnaud Limbourg [mailto:arnaud.limbourg.prestataire@cegetel.fr] Was meant to go to the list too. Hi, you can always call Parent::process() in you process method, that will call the parent method as the name hints at. (for some reason i didn't think about that earlier)I was looking for such a way but doing a search for "Parent" on www.php.net provided nothing. In the end I've (so far) managed to avoid writing my own actions when buttons are pressed. I've put the code which contacts the database in the validation functions which are associated with the pages form.