FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Object's Methods not being suggested in code completion

 
Post new topic   Reply to topic    NetBeans Forums -> PHP Users
View previous topic :: View next topic  
Author Message
Ibn Saeed



Joined: 08 Apr 2009
Posts: 25

PostPosted: Fri Apr 10, 2009 9:12 pm    Post subject: Object's Methods not being suggested in code completion Reply with quote

hello

Object's Methods are not being suggested in code completion.


Here is the snapshot

Back to top
View user's profile Send private message
Ibn Saeed



Joined: 08 Apr 2009
Posts: 25

PostPosted: Fri Apr 10, 2009 9:34 pm    Post subject: Reply with quote

Also, for the following code

Code:
<?php
    class Person {
       
    var $first_name;   
    var $last_name;
   
    var $arm_count = 2;
    var $leg_count = 2;   
       
    function say_hello() {
        echo "Hello from inside the class " . get_class($this) . "<br />";
    }
    function hello() {
        $this->say_hello();       
    }
 }
 
 $person = new Person();
echo $person->arm_count;
 
 
 
 
?>


When I try to access the attribute such as arm_count, I dont see it in the code completion, Only first_name and last_name are shown.

arm_count and leg_count are not shown.
Back to top
View user's profile Send private message
willirl



Joined: 26 Mar 2009
Posts: 20

PostPosted: Sat Apr 11, 2009 1:42 pm    Post subject: Reply with quote

I get code completion in my Netbeans 6.5 with your code. I have PHP 1.2.4 plugin.


Picture 1.jpg
 Description:
 Filesize:  51.71 KB
 Viewed:  832 Time(s)

Picture 1.jpg


Back to top
View user's profile Send private message
Ibn Saeed



Joined: 08 Apr 2009
Posts: 25

PostPosted: Sat Apr 11, 2009 2:08 pm    Post subject: Reply with quote

willirl wrote:
I get code completion in my Netbeans 6.5 with your code. I have PHP 1.2.4 plugin.


Hmm Thats odd. im using php 1.6

I think its because im using Developmental release and not 6.5

Development version : 200904070200
I think its a bug in the developmental release.

Ill try it with 6.7 M3

Thanks for testing it out for me. Really appreciate it
Back to top
View user's profile Send private message
Ibn Saeed



Joined: 08 Apr 2009
Posts: 25

PostPosted: Sat Apr 11, 2009 2:15 pm    Post subject: Reply with quote

Its quite odd.

Its working in both builds.

6.7 M3 as well as the Developmental release.

I dont know what caused the above problem last night.But it seems to work in both builds now.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> PHP Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB