Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Extracting documentation using phpDocumentor?
  • Posted: 15.08.2006, 22:06
     
    jonasdelfs
    rank:
    Freshman 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

    array   MyModule_user_func(string $args, array 1)

        * array 1: An array
        * string $args: A long string


    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
  • Posted: 15.08.2006, 22:14
     
    rank:
    Moderator 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

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula