- Moderated by:
- Support
-
- rank:
-
Freshman
- registered:
- March 2006
- Status:
- offline
- last visit:
- 18.08.06
- Posts:
- 14
Hi -
I've been documenting a set of API compliant PN modules in the phpDocumentor style as I've developed them, but the generated documentation doesn't look too good because of the way arguments are passed to functions in PostNuke as one associative array.
Basicly I have something like:
Code
/**
* @param string A long string
* @param array An array
* @return array
*/
function MyModule_user_func($args) {
// ...
}
And the generated documentation looks like:
Code
I think the wrong arguments order and naming is quite misleading - did anyone experience this problem, and maybe even fixed/hacked it?
Thanks in advance!
Best regards, Jonas Delfs
edited by: jonasdelfs, Aug 15, 2006 - 05:07 PM -
- rank:
-
Moderator
- registered:
- March 2002
- Status:
- online
- Posts:
- 7720
The way we do it with the core code is as follows - using an example from the admin module
Code
/**
* create an admin category
*
* @author Mark West
* @param string $args['catname'] name of the category
* @param string $args['description'] description of the category
* @return mixed admin category ID on success, false on failure
*/
-Mark
