DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: PHP function sorting/reorder utility?  (Read 7,127 times)

Veign

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 993
    • Gathering Badge
    • Participated in NANY Challenge Twice
PHP function sorting/reorder utility?
« on: December 01, 2008, 05:18 PM »
When writing classes for PHP I find that it would be nice to re-order the functions.  I would like a tool that displays the functions in a class and allows me to move it up or down in the order.  Then the tool would apply the re-order.  Kinda of like the screenshot below.  Anyone know of such a tool?

ProcedureSortPHP.jpg


I like to have like functions grouped together but during development sometimes things get moved around.

crono

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 179
Re: PHP function sorting/reorder utility?
« Reply #1 on: December 05, 2008, 02:33 PM »
Oh - this is a really cool idea... I would like this too  :-*

Veign

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 993
    • Gathering Badge
    • Participated in NANY Challenge Twice
Re: PHP function sorting/reorder utility?
« Reply #2 on: December 05, 2008, 02:47 PM »
I looked at many IDE's but counldn't find one that had this kind of functionality.  I'm surprised there is anything out there.

tinjaw

  • I'm so glad breakbeat techno isn't an illegal drug
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • Participated in NANY Challenge Twice
    • Coding Snacks
    • Military Service Badge - US Army
    • Linux User
Re: PHP function sorting/reorder utility?
« Reply #3 on: December 05, 2008, 03:34 PM »
As a user of IDEs with the ability to jump to functions in a matter of a few keystrokes, I am curious why you want such functionality. Is it simply for readability purposes?

Veign

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 993
    • Gathering Badge
    • Participated in NANY Challenge Twice
Re: PHP function sorting/reorder utility?
« Reply #4 on: December 05, 2008, 03:44 PM »
1) I like things organized and want like functions together

2) I do all my PHP coding in a text editor (emEditor) so I do a lot of scrolling around looking for functions.

I have tried many, many time to get away from a text editor and I just can't.  I am very comfortable in a text editor for writing code - still do all my HTML, CSS and PHP in a text editor.

Original address: https://www.donationcoder.com/forum/index.php?topic=15972.0