English 中文(简体)
Aptana won t generate phpdoc blocks for functions within classes
原标题:

In Aptana, I have somehow broken the functionality to auto-generate phpdoc comments for functions within classes. It appears to only affect my current project.

Normally I can type /** on the line before a function and press enter, and Aptana will create a phpdoc comment with the correct @param values, etc. For some reason when I do this now Aptana creates 2 comments, one within the other. e.g.

/**
* /**
*
*/
*/
public static function getByLogin($loginID, $ip, $userAgent) {

}

It works normally if I try this for global functions. It also works for class variables and classes themselves.

最佳回答

I fixed this by right clicking the project then configure -> add php support. I don t understand how php support got removed, or how phpdoc was working on global functions without it, but it s fixed now.

问题回答

i thinks i saw this feature in Aptana 2 but it was remove from Aptana 3, i don t know why.





相关问题
PHPDoc for variable-length arrays of arguments

Is there a syntax for documenting functions which take a single configuration array, rather than individual parameters? I m thinking specifically of CodeIgniter-style libraries, which use a mechanism ...

Is there an PHPDoc type hint for an boolean parameter?

I wasn t able to find an overview of the types which can be hinted with PHPDoc. I know array or string, but is there also bool? Like: /** * @param bool loadLazy * @return array Array with objects *...

如何在PHPDoc表明这一论点是选择性的?

我来谈谈这一提出任择论点的构造。 这方面的主要问题是可使用性。 使用我的框架的开发商将立即赶上头痛,因为他不知道他是否能够......。

External documentation for PHP, no DocBook

I need a documentation system for a PHP project and I wanted it to be able to integrate external documentation (use cases, project scope etc.) with the documentation generated from code comments. It ...

Parsing Javascript files with phpDocumentor

I ve been playing with phpDocumentor recently and found it quite suitable for my needs. I m largely working with PHP/HTML/JS/CSS codebases and would like phpDocumentor to parse my Javascript (and ...

What is the purpose of these PHPDOC properties?

In general, the PHPDOC properties are self-explanatory, but I m having hard time understanding these: @category - what is this exactly? @package - could some one provide me examples about the usage ...

How are PHPDoc comments analyzed in PHP?

In frameworks like Zend Framework (or extensions of it), it is sometimes possible to pass information like type hints to the framework code by using PHPDoc style comments. I cannot imagine that the ...

热门标签