I'm documenting the company framework for use with our default IDE (Netbeans).
It's normal that we send as params a new Object
, like here:
$this->addControl(new TextControl('name', 'value'));
I could document the __construct()
params at the normal place, but they aren't showed when you do a new <ctrl+space>
.
So I tried to move this doc to the class doc. So when u type new
it shows that info.
But it still doesn't help me autocompleting all the constructor parameters.
Is there any way to do this?
I would like to have an autocomplete for parameters when first instantiating the class.
[EDIT] I have this code:
/**
* Classe da tag <textarea>
* @param string $_name Nome do Controle e da tag
* @param string $_label Texto que aparecerá antes do campo
* @param string $_extra Usado para passar algum atributo a mais, como 'wrap'
* @example $this->addControl(new TextAreaControl("comentarios", "Comentários: ", "wrap='off'"))
*/
class TextAreaControl {
[...]
function TextAreaControl($_name, $_label, $_extra = "") {
[...]
}
[...]
}