pg:start
This is an old revision of the document!
Table of Contents
Work notes on PHP-GTK
Auto-creating variables from Glade files
From a suggestion by C. Weiske on irc://irc.freenode.net/php-gtk :
- first idea: use the DOM of the Glade file and a XPath selection on nodes to iterate on the Glade model and create variables from the results
- better idea: use
__get
in a class to create the members as needed, like
$this->glade->get_widget_from_id($widgetname)
- __get is defined at http://www.php.net/manual/en/language.oop5.overloading.php
pg/start.1160512372.txt.gz · Last modified: 2020/11/23 17:23 (external edit)