faq
flatforty
contribute
subscribe
configure
search
rdf
main
parent
thread
|
Re: PhpQT / PhpKDE
by Richard Dale on Wednesday 22/Sep/2004, @08:20
|
Yes I certainly don't want to discourage anyone, only point out it's quite a lot of work. I've just emailed Germain Garand about some Smoke notes he had, and he's sent them to me, so I'll try and get it written up and put in the kdebindings cvs and on the KDE Developer's Corner site. I've been meaning try and get Smoke written up better for a while.
You can subscribe to the kde-bindings@kde.org mailing list and ask bindings questions there. To use Smoke with PHP, it will need to have some sort of 'catch-all' function which is called if a particular method can't be found. In ruby that's 'method_missing' and in perl it's 'autoload'. So you catch method calls there, and then forward them onto Smoke.
class MyClass
def method_missing(methId)
puts "can't find method: #{methId.id2name}"
end
end
obj = MyClass.new
obj.foobar -> can't find method: foobar
obj.baz -> can't find method: baz
I don't know if that makes sense - you can call any old method on obj, and it will be trapped by method_missing, and print an error message in this case. The first step is to try and do something similar in PHP.. |
|
|
The Fine Print: The following comments
are owned by whomever posted them.
( Reply )
|
Re: PhpQT / PhpKDE
by Marcus Whitney on Monday 27/Sep/2004, @07:38
|
http://us2.php.net/manual/en/language.oop5.overloading.php
Note the __call magic method that does exactly what you are describing. We're ready :)
|
[
Reply To This | View ]
|
Re: PhpQT / PhpKDE
by markc on Thursday 13/Jan/2005, @05:52
|
So it's early 2005 and I am wondering if there has been any progress realizing a php-qt application anywhere on the planet ?
Better still php-kde. I just did a google search and this is one of the few pages that came up :-) I guess I can always try again in 2006.
|
[
Reply To This | View ]
|
Re: PhpQT / PhpKDE
by Jackson on Wednesday 21/Dec/2005, @00:59
|
I did some work on it and got some of the Smoke stuff working, but then had to put it aside for other stuff (i.e. stuff that feeds my family).
It would be cool though.
|
[
Reply To This | View ]
|
Re: PhpQT / PhpKDE
by markc on Wednesday 13/Jun/2007, @06:04
|
Well Well, half way thru 2007 and still no sign of a PhpKDE. There is a php-qt project that has been picked up, although there is still no viable release that I am aware of, and it is still not a PhpKDE.
Anyone heard of anything out there somewhere, particularly based on KDE4 ?
|
[
Reply To This | View ]
|
|
The Fine Print: The previous
comments are owned by whomever posted them.
( Reply )
|
|