From: <php...@li...> - 2011-01-18 23:18:43
|
Hi there, Thanks for the reply. Unfortunately, my first question was not very clear - passing $this to the java method, as per my example, will not pass a reference to the current java object as the same "this" keyword does in java itself. Hence, my question was about what to use instead of "this" in my php code when trying to reference the current java object in a call to a java method, as per my example. I understand the usage of $this in pure php code but I think it acts differently to the java keyword of the same name doesn't it, unless I'm mistaken? I have gone carefully through the docs and examples and was still not having any success, hence the follow-up query. I'll keep looking. Thanks, Marc On 18 Jan 2011, at 18:23, php...@li... wrote: > Hi, > > in PHP "this" is written as $this. > > If you want to extend Java classes (rather than implementing interfaces) > please see our FAQ entry "How do I extend Java classes" for more > information. > > Regarding your other question; the interface is missing. Please carefully > read our "java_closure" API documentation. > > Regards, > Jost Bökemeier > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |