[KDE Dot News]
 faq
 flatforty
 contribute
 subscribe
 configure
 search
 rdf

 main
 parent


PHP
by Martin on Tuesday 19/Apr/2005, @13:43
The best thing about Quanta+ IMHO is that it does not try to
force all that VPL stuff on its users. If you want to use
it just as a PHP editor: Works perfectly! The only thing I'm sometimes
envious of are Zend Studio's function parameter hints for
user-defined functions. You can include a file somewhere
with functions you wrote and when you are in the main file it
actually tells you what parameters there are. Great!
Even better would be a Delphi-like "right-click->go to definition".
I dont know any PHP editor that can do that, though.
  Related Links
 ·   Articles on Applications
 ·   Also by Martin
 ·   Contact author

Thread Threshold:

The Fine Print: The following comments are owned by whomever posted them.
( Reply )

Re: PHP
by someone on Tuesday 19/Apr/2005, @16:09
>Even better would be a Delphi-like "right-click->go to definition".

Delphi-like? I supose you are talking about some delphi IDE (visual delphi? sorry for my ignorance). Actually kdevelop3 makes that, at least, for C++. I have seen some PHP project templates but I have not tested them. I use quanta for html/php and kdevelop for C++. Quanta looks pretty extensible, may be a ctags hack can make it work with PHP, if it's not doing it already.

>I dont know any PHP editor that can do that, though.

I dont know if kdevelop is a PHP editor, (for me "cat << OEF" is)

Now it's time for certain people to talk about the KDE Great Big Editor One joining quanta and kdevelop. Or simply talk about what emacs/vim/notepad makes for them.

PD: aal spelling mistakes are caused beacuse keyborad vendors ship all keis togeter
[ Reply To This | View ]
  • Re: PHP
    by Iuri Fiedoruk on Wednesday 20/Apr/2005, @08:44
    Delphi is a IDE.
    It uses Object Pascal as language.

    As Kylix is on IDE for Object Pascal and C++ for Linux.

    more on: http://www.borland.com
    [ Reply To This | View ]
    • Re: PHP
      by yaac on Wednesday 20/Apr/2005, @10:39
      >It uses Object Pascal as language.

      The language has been renamed to Delphi as well, some time ago.
      [ Reply To This | View ]
Re: PHP
by hoernerfranz on Wednesday 20/Apr/2005, @03:17
with respect to php, quanta+ has an outstanding feature that is missing in nearly
any other web/php editor: the integrated php debugger gubed.
not even DW has anything like this.
just invaluable for serious php-development.
[ Reply To This | View ]
  • Re: PHP
    by Andreas on Wednesday 20/Apr/2005, @08:54
    Well, integration of gubed is nice but there are quite a few people who would prefer an integration of xdebug.
    [ Reply To This | View ]
    • Re: PHP
      by Andras Mantia on Wednesday 20/Apr/2005, @09:07
      We need developers to do it... The debugger interface was designed that way that you can use different debuggers, not just gudeb. But right now only Gubed is supported because...the gubed author did the integration.
      [ Reply To This | View ]
  • Re: PHP
    by tom on Friday 22/Apr/2005, @07:46
    a tutorial "Debugging PHP scripts with Quanta Plus and Gubed PHP Debugger" can be found here:

    http://www.very-clever.com/quanta-gubed-debugging.php
    [ Reply To This | View ]
Re: PHP
by Iuri Fiedoruk on Wednesday 20/Apr/2005, @08:48
I've been using Quanta+ since... well I don't even know!!
It's a long time, it was just a small text editor on build of kwrite with buttons for adding HTML elements. It was greatly improved since then, and I belive once Qt4 is out and KDE and Quanta+ ported to windows, it will be a great free (as both beer/speech) alternatice to the great Homesite program, and maybe even to Dreamevil.

So, the future is indeed more than ever shiny for Quanta. Way to go, and thanks for this great application.
[ Reply To This | View ]
Re: PHP
by Eric Laffoon on Wednesday 20/Apr/2005, @09:42
> The only thing I'm sometimes envious of are Zend Studio's function parameter hints for user-defined functions. You can include a file somewhere with functions you wrote and when you are in the main file it actually tells you what parameters there are. Great!

For built in functions this is stored in the DTEP. I'd have to talk with Andras about this. The new object syntax auto completion was done with an external temporary DTEP file and I don't know if the hooks are still active but the ability to add this should not be difficult as it would only need to follow the XML definition used in the DTEP and Quanta would need to know to read it. In fact... technically you could place or link files into the DTEP files you have currently. I have written a PHP file to parse PHP docs and generate the DTEP files and it can also accept external data input. If you are willing to accept certain limitations like having to create the files and having them be global to all projects this is there now. Ideally we would like to be able to generate files for a project on demand.

I note though that the parameters are included in the structure tree so they should be in the tip. Additional project DTEP files would enable additional information like the version specification we added for 3.4, though I'm not sure how it would be used. In addition to this you can also generate PHP docs for your project and have project documentation in the doc panel.

> Even better would be a Delphi-like "right-click->go to definition". I dont know any PHP editor that can do that, though.

This should be easy enough to add. In fact both things you want are already in the document structure tab. Open a PHP file and click the structure view in the left. You will see groups for functions, variables, inclusions, objects and classes. If you look at a function you will see the parameters. If you see a file address you can expand these are included functions in the file they originate in. Quanta understands the scoped linking and if you click on that function it will open the file and take you there.

So both features you imagine to be unlikely exist, but in the structure tree. As for the rest of it we just have so many things we can do with our resources... and as it turns out those are more than most people expect.
[ Reply To This | View ]
  • Re: PHP
    by Andras Mantia on Wednesday 20/Apr/2005, @09:56
    The parameters do not appear unless the function/class is declared in a .tag file in the DTEP. This is what Eric says, that we might generated in the feature project specific DTEP tags from PHP classes and functions. Right now what you can get from Quanta is autocompletion for external functions, classes and class methods:
    included_file.php:
    <?
    class includedClass {
    function includedClass_ctor(int i)
    {
    if ($a) {
    $b = $a;
    }
    }

    function includedClass_method2(string s)
    {
    }

    function includedClass_method1(int i, int j)
    {
    }
    }

    function externalFunc(int i) {
    }

    $includevar;

    ?>

    main_file.php:
    <?
    include ("included_file.php");
    class qmyClass{

    function qmyClass_ctor(int i)
    {
    $i = 0;
    }

    function qmyClass_method2(string s)
    {
    }

    function qmyClass_method1(int i, int j)
    {
    $this-> [will show the methods of qmyClass]
    }
    }

    function qmyFunction(int i, int j)
    {
    }

    $test = new [will show the qmyClass and includedClass]
    $q = new qmyClass;
    $f_included = new includedClass;

    $q-> [will show the qmyClass methods]
    $f_included-> [will shot the includedClass methods[
    ext [CTRL-SPACE will show the externalFunc declared in the included file]
    qmy [CTRL-SPACE will show the qmyFunction declared here]
    $ [will show all the used variables, including the ones from the included files, except of the "i" and "this" from inside qmyClass]
    ?>

    Class member variable autocompletion and hints for the function/member arguments will come in the next versions.
    NOTE: autocompletion either pops up automatically in some cases (like when typing $ or ->) or you can invoke manually with CTRL-SPACE.
    [ Reply To This | View ]
    • Re: PHP
      by Aslak Berby on Monday 13/Jun/2005, @04:33
      This is great, but it some what buggy if it not I that do something wrong.
      (This was also posted on the Quantra mailing list)

      I notice the following:
      if I do:
      $a = new aClass;

      then start typing:
      $a->
      it will show all functions in the class.

      But the following construction does not work with autocompletion:
      $a = &new aClass;
      $a = new aClass();
      $a = &new aClass();

      I don't know if this is something I can set up or if it is in the code.
      Will there be done anything about it? Its not a main couse for me, but rather annoying as the functionality for class compleate obvius is there...

      (I am using the one that was included in SuSE 9.3 Distro (3.4) If this is dealth with in a later version I appoligy for the ignoranse.)
      [ Reply To This | View ]
Re: PHP
by SaCuL on Thursday 21/Apr/2005, @06:04
In Zend Studio 4 you can CRTL+click on any user defined function and it will go to the definition itself.
[ Reply To This | View ]
The Fine Print: The previous comments are owned by whomever posted them.
( Reply )

  "When I'm not hacking on a computer, I like to play the guitar and get drunk. Sometimes both at once." -- Richard J. Moore
KDE®, "K Desktop Environment", "KDE Dot News", "got the dot?" and the KDE Logo® are trademarks or registered trademarks of KDE e.V. in the European Union, the United States and other countries. All other trademarks and copyrights on this page are owned by their respective owners. Comments are owned by the poster. The rest: Copyright © 2000-2008 KDE e.V. for The KDE Project. For further information or comments on this site, please contact the Webmaster.
[ home | post article | flat forty | subscribe | search | rdf ]