Callback function and object oriented php style

Dear Php-Gtk user and believers,

Yesterday I found something out about php-gtk and object oriented stuff and I guess a lot of people will come to the same trouble : when you connect signals from your class you have to watch out e.g.

->connect('drag-data-received', array($this,'on_drop'));
  • $this without ' ' means the instance of the class
  • '$this' so with quotes it means the class itself
Syndicate content