timeout_add question
| From: | Gregory Kaczmarczyk | Date: | Tue, 19 Feb 2002 13:42:44 +0000 |
| Subject: | timeout_add question | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-1278@lists.php.net to get a copy of this message | ||
If I have a class (e.g. below), and I would like to add gtk::timeout_add to the get_stuff function calling the get_stuff function, how can I do that?
class myClass {
function set_stuff(...) {
...} function get_stuff() {
...
gtk::timeout_add(200, 'get_stuff');
}
}
With the example, I get the error: Unable to call handler callback 'get_stuff' specified in myfile.php on line 107.
Would I need to specify the function using "$this" somehow?
Thanks.