Eclipse accomplishes PHP function/method hinting by placing all of PHP's function names and code hints into a file called standard.php
and associates it to a project as a library(?). Just CTRL + Click
any php function to bring it up.
Within standard.php
, there is reference after reference for all of PHP's functions like so...
/**
* Find whether the type of a variable is integer
* @link http://www.php.net/manual/en/function.is-int.php
* @param var mixed <p>
* The variable being evaluated.
* </p>
* @return bool true if var is an integer,
* false otherwise.
*/
function is_int ($var) {}
I would like to be able to provide something similar to my programmers covering our own application so that I can limit access to our actual software source code, but still give them the benefit of code hinting support and documentation.
Question: Is there a way in Eclipse to export or automatically generate a similar function reference capable of serving the same purpose as the PHP one in standard.php
?
EDIT: We're in the early stages of creating a utility to do just this which we will put up to GitHub once it's far enough along.
We've created an empty repo at Github for it for the time being, so star it there if you're interested in getting a copy when it goes up. The repo can be found here: https://github.com/ecommunities/Code-Hint-Aggregator
UPDATE: It's taken a little while to find the time, but the GitHub project referenced above is now up and running and we can now parse an entire project and output a map of it's entire namespace / class / method structure. FYI, It's still in Alpha but it's worth a look. :)
code-completion
in the way that the standard.php file does. I'd love to be wrong though ;) – Destiny/**
and pressenter
and Eclipse should generate a stub docblock for you; you can then write@ blocks
inside the comments, using@
followed byctrl+space
to get auto-completion hints for the tags – Gent