mark methods in a class

Hello !

I have a class with a public and some private methods.
For example.

----------------------------

class test{

public function getInfo(){
  $string1 = $this->_info1();
  $string2 = $this->info2();

  return $string1.$string2;
}

private function _info1(){
  return 'info 1';
}

private functionn _info2(){
  return 'info 2';
}

private function _foo(){
   ...
}

private function _bar(){
  ...
}

}

----------------------------

I am looking for a way to call a method in a tool.
This method should be selected.
The private methods called in this method should also be highlighted.

In our example, the methods were 'getInfo ()', 'info1 ()' and 'info2 ()'.

Who can help?

Sincerely

Stephan

7 comments

Hello Stephan,

I am looking for a way to call a method in a tool.

Please elaborate. What tool do you mean?

Thank you for feedback!

0

Hello!

When I work with a class I have the opportunity to call an overview of the methods.
'Ctrl'. + 'F12'
I would like to highlight in this overview, individual methods.
If a method has been marked to the source code of the method are highlighted.


Sincerely

Stephan

0

Stephan,

I am sorry but I still can't understand the issue. Please provide me more details.

I would like to highlight in this overview, individual methods.

What kind of highlighting do you mean?

If a method has been marked to the source code of the method are highlighted.

How method is marked in the source code?

Thank you for feedback!

0

Hello!

Thanks for the quick reply.

Unfortunately, my English is very bad.
 I am looking for a way to bring up a list of existing methods of a class.
I would like to highlight in this list methods.
At the same time in the source code to the method are highlighted.

Sincerely

Stephan



Attachment(s):
methode.jpg
liste.jpg
0

Stephan,

Now I see your point. Thanks!

Why do you need this this feature? Please describe the case.

Also please note that you can use 'Structure View' with enabled 'Autoscroll from source' option for that (if I understand your case correctly).
autoscroll_from_source.png

Thank you for feedback!

0

Hello!

Thanks for the reply.
At the moment, the focus of personal development in the field of design patterns.
When I write a new block of a program I get a 'user story'.
I make the business logic in a 'model' from.
If this block is a new 'user story' shall I break the 'model' in several classes.
Therefore I need a tool which allows me the highlight of methods.

Sincerely

Stephan

0

Please sign in to leave a comment.