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

 main
 parent
 thread


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.
  Related Links
 ·   Articles on Applications
 ·   Also by Andras Mantia
 ·   Contact author

Thread Threshold:

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

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 ]
The Fine Print: The previous comments are owned by whomever posted them.
( Reply )

  "I don't sing in the shower... I play the piano though." -- David Faure
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 ]