Zend task phpdoc date php
I am a php newbie and I just used zend. I have a question to ask you.
In Zend, writing php code has the automatic annotation function, that is, you only need to enter "/**" + press enter, the following content will appear:
/**
*
* @ Parame unknown type
* @ Parame unknown type
*/
This annotation standard can be used to automatically generate html-style API documents using phpdoc.
I want to implement similar functions, but the content of the automatic annotation function is more than the content of this default automatic annotation template. for example, I want to input "/**" + press enter, the following content appears:
/**
*
* @ Author
* @ Date
* @ Parame unknown type
* @ Parame unknown type
*/
To complete the task, I can use the built-in zend template function to customize the template in window-> perferce-> php-> edit-> templete, however, this method has two drawbacks:
1. even if I name my custom template as "/**", in actual use, the output comment is still the zend default comment template (just like the first comment template above)
2. I cannot dynamically generate parameter tags based on the number of parameters of the function, that is, "@ parame". However, the default zend "/**" can dynamically generate parameter tags, that is, the number of parameter tags "@ parame" is always the same as the number of function parameters.
Then, in my opinion, the above path cannot be used. I want to find the zend default "/**" comment template, add content to this template, and complete my tasks, however, I found that I could not find the zend default "/**" comment template.
Finally, I would like to ask you how to complete my tasks. My ideal task fulfillment is:
1. I enter "/**" + press enter to automatically comment
2. the labels in the comment can be set according to my requirements, such as adding tags "* @ author" and "* @ date"
3. the number of parameter tags "@ parame" in the comment must be dynamically set based on the number of parameters of the function.
Reply to discussion (solution)
Call God !!!!
Hello, landlord. can you ask me a question? When I generate phpdoc in zend studio, the phpdoc command does not know what to choose. do you know how to solve this problem?
I cannot select the package automatically. Do I need to download another package?