Opened 7 years ago

Last modified 4 years ago

#528 assigned Feature Requests (None)

Show only class members

Reported by: emudojo Owned by: incastrix
Priority: 9 Milestone: 1.5.0
Component: PHP Editor Version: 1.2.x
Keywords: format, code, assist Cc:

Description (last modified by ed_mann)

When you create a new object, the context help menu,
should show only available methods for that object and
not the all available methods in the document. 
Then something like this


class a {
 function xyz(){}
}

function b (){}:

class c {
 function d() {}
}


$obj = new c();


now if I invoke the context menu for that object (c) I
will get...

c.xyz
  d
  b
  + all php native methods 


and it should be

c.d


Regards 



Change History (7)

comment:1 Changed 6 years ago by emann

Logged In: YES 
user_id=430467
Originator: NO

I agree, but i read somewhere where this would not work. Maybe it can be an option that you can turn on. My plate is full right now, but if it does not get finished by the time i am done working on the things i have i will fix this.

comment:2 Changed 6 years ago by emann

Logged In: YES 
user_id=430467
Originator: NO

This is really a feature. Marking as such.

comment:3 Changed 6 years ago by ercete

Logged In: YES 
user_id=1712952
Originator: NO

It would be important to make the difference between
public/protected/private members when invoking the context menu on $this->.
And also decide of an order like :
Public then Protected then Private members of the current class,
then Public then Protected then Private members of the parent class,
then Public then Protected then Private members of the first then second interface,
then Public then Protected then Private members of the grand-parent class,
...

Some languages also uses a public/protected/private beside 'extends' keyword, but I don't see anything like that in php maybe you should take a closer look.

comment:4 Changed 5 years ago by nobody

Logged In: NO 

A friend of me asked me to submit her comment about this bug. Then:

"This also occurs when I write $ character.

I just want to see the reachable variables when I press $ and I just want to see the real members of a function when I write ->, not all the contents of Noah's Ark. Did you added new libraries to a project? to pres $ or -> shows you an excesive amount of not valid options. For example place adodb library inside your project. Then create a class with two or three functions. Then create an instance and write -> for this instance. And you see, phpeclipse is ofering you all the functions, variables and classes, and often constants in all your other files, all in files inside adodb and core functions when you must only see two or three functions in this list."

comment:5 Changed 5 years ago by ed_mann

  • billable set to 0
  • Component changed from None to PHP Editor
  • Description modified (diff)
  • Keywords format, code, assist added
  • Milestone set to 1.5.x
  • os_platform set to Linux
  • Owner changed from nobody to ed_mann
  • Status changed from assigned to new
  • Version changed from None to 1.2.0-nightly

comment:6 Changed 5 years ago by ed_mann

may want to start with net.sourceforge.phpdt.internal.compiler.parser/Scanner.java
also look at net.sourceforge.phpdt.internal.compiler.lookup

Just to get started.

comment:7 Changed 4 years ago by incastrix

  • os_platform changed from Linux to Any
  • Owner changed from ed_mann to incastrix
  • Priority changed from 5 to 9
  • Status changed from new to assigned
  • Version changed from 1.2.0-nightly to 1.2.x
Note: See TracTickets for help on using tickets.