Implementing GtkTreeModel
| From: | Matt | Date: | Fri, 07 Nov 2008 21:35:29 +0000 |
| Subject: | Implementing GtkTreeModel | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-8323@lists.php.net to get a copy of this message | ||
Ok, so I'm trying to create my own class implementing GtkTreeModel to
make it much faster when dealing with thousands of rows. The problem I
have is there is a method called "foreach" that makes PHP blow a gasket
when I try to define it.
class TestTreeModel implements GtkTreeModel
{
public function foreach($callback_func)
{
// do stuff
}
// all the other abstract methods are defined properly
}
This will return:
Parse error: syntax error, unexpected T_FOREACH, expecting T_STRING in
foo.php on line xx
Any idea on how to get around this? Thanks!
-Matt