Jump to content

Ignoring DocBlocks in phpDocumentor.


Cobby

Recommended Posts

Hi all,

 

Sort of the first time using phpDocumentor and I have a little problem. As required by the GNU GPL, you need that little license info at the top "This file is part of Foobar...". But phpDocumentor documents this and it will be at the top of EVERY file in my project.

 

How can I get it to ignore an entire DocBlock or just a section of one?

 

Cheers,

Cobby

Link to comment
https://forums.phpfreaks.com/topic/98130-ignoring-docblocks-in-phpdocumentor/
Share on other sites

You may want to consider not using the docblock for the GNU GPL part of your script and using a standard comment block instead.

 

Other then that this place should help you

 

http://manual.phpdoc.org/HTMLSmartyConverter/HandS/phpDocumentor/tutorial_tags.pkg.html

Ha thanks for that, didn't even think. But I got a better question, is there a program that can add the license to that top of every PHP file in a given directory. I can set up my IDE to add it as part of the new PHP file template, but if I ever need to change anything, I then have to go through every file and change it (which will be several hundred by the time the project is finished.).

 

EDIT: Even better, I'll just make a PHP script :P

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.