Exemple #1
0
            list($type, $info) = explode(' ', $comment['param'][$i], 2);
            $type = Kodoc::humanize_type($type) . ' ';
            $info = trim($info);
        } else {
            $type = '';
            $info = '';
        }
        ?>
<dt><?php 
        echo $type, $param['name'];
        ?>
</dt>
<dd><?php 
        if (array_key_exists('default', $param)) {
            // Parameter default value
            echo '<tt>(' . Kodoc::humanize_value($param['default']) . ')</tt> ';
        }
        // Parameter information
        echo $info;
        ?>
</dd>

<?php 
    }
    if (isset($comment['param'])) {
        // Remove parameter information from the comment
        unset($comment['param']);
    }
    ?>
</dl>
<?php