Re: Classes Documentation

From: Date: Tue, 20 Dec 2005 17:58:28 +0000
Subject: Re: Classes Documentation
References: 1 2  Groups: php.gtk.doc 
Request: Send a blank email to php-gtk-doc+get-1708@lists.php.net to get a copy of this message
Christian Weiske escreveu: > [...] > That is because the base manual has been auto-generated from the > php-gtk2 sources at the beginning of this year. I'd like to have a look at that script... I'm curious as to how this was done, as I don't have a clue as how to extract all those parameter lists from the source files. Anyone knows about it? BTW, a script to update (or check) the docs should be based on the source itself and check for the reflection definitions as well, as some could need updating or are missing. I'd like to try doing this (although I'm not sure I can... still a noob, you know :) ), but right now I almost don't have spare time, as my midterm exams start in January... -Jp > >>seems like, we have to test every class for it's structure. > > Yep. > > >>Is there >>any definitive way to find out how many arguments a particular >>construcutor/method will accept? Or we just find out with trial and >>error? > > You could > - use Dev_Inspector which you can find in the "Channel" on gnope.org to > see, which parameters are officially supported and what functions are there. > - Dig in the php-gtk sources and see, what parameters are defined there. > > The Dev_Inspector way is the easier one, and will show you the same > information. > > >>Should I add these arguments manually to every constructor/methods >>definition wherever they may be missing? Arguments are significantly >>different from those we give in native Gtk. > > Yes! Gtk and PHP have different concepts; one is that Gtk is still C > code, and isn't object oriented a bit: You do things like > >>gtk_entry_set_label($labelwidget, 'my text'); > > instead of > >>$labelwidget->set_label('my text'); > > > They also use things like > >>$color = new GdkColor(); >>make_my_color_red($color); >>//color is red now > > instead of > >>$color = get_red_color() > > > So many things have to be converted to match the "PHP style of doing", > and parameter changes happen that way. >

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.gtk.doc (#1708) next »