Screencast about Class Property Variables

Yesterday I added support for class property variables into the PHP build. Although the demo is targeted to show how NetBeans PHP handles class property variables, you can also see other editor features and how to find a declaration. In the screencast I create a simple application that you probably would write in a different way, but I needed to make it fit the purpose of the demo.

The video is published on NetBeans.TV

Comments:

I like the fact that this is a video instead of an article. The video was as if, I were sitting in a class room watching a presentation.

Posted by Walter Osbourne on September 23, 2008 at 12:50 PM CEST #

Hello,

I've just downloaded the latest nightly of NetBeans and I've found out that it's not using code complete for references:

class d {
var $a,$b;
function test(){
echo "hello";
}
}

$c = new d();
$v = &$c;

In the above NetBeans will not display code complete for $v.

Posted by raymond on September 23, 2008 at 04:08 PM CEST #

Hi Raymond,

it seems to me like a regression. Did this work for you before?

Anyway I have entered bug for this: http://www.netbeans.org/issues/show_bug.cgi?id=148109

Posted by Petr on September 24, 2008 at 01:49 AM CEST #

Great to see class properties finally working :-)

This is going to make my life so much easier :-)

Posted by Adam Jorgensen on September 25, 2008 at 10:35 AM CEST #

tip for little enhacement:
syntax of @property tag is:
@property datatype $name description
and description could be showed as PHPDoc in documetation popup window.
Now is there "PHPDoc not found"

Posted by gawan on December 04, 2008 at 08:12 AM CET #

Hi gawan,

I have noticed also this stupid bug after watching this, and correct the implementation. In NetBeans 7.0 is not even allowed to use property name without $. You are right, the documentation is not displayed now and I entered new issue: http://www.netbeans.org/issues/show_bug.cgi?id=154666 for this. It should be easy to fix.

Thanks,
Petr

Posted by Petr Pisl on December 04, 2008 at 06:38 PM CET #

It was a very nice idea! Just wanna say thank you for the information you have shared. Just continue writing this kind of post. I will be your loyal reader. Thanks again.

Posted by links of london on October 29, 2009 at 08:12 PM CET #

Post a Comment:
  • HTML Syntax: NOT allowed
About

This blogs is written by NetBeans developers who contribute to the PHP support mainly.

Search

Archives
« July 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  
       
Today