Zend annotation template problems

Source: Internet
Author: User
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?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.