Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body>
- <center>
- <h1>Advanced Documentation Standard</h1>
- <h1>Example Comments</h1>
- </center>
- <p>
- <h2>Header Comment:</h2>
- <p>
- <textarea rows='14' cols='82'>
-
- <?php
- /***************************************************************************/
- /* Author: Nyle E. Davis Create Date: 12/10/05 */
- /* E-Mail: davisoftaec@gmail.com Version: 1.0 */
- /* File: tbird_rules.php Path: localhost/Project/Tools/ */
- /* Purpose: This file processwa all existing TBird filter files, puts */
- /* all the rules into a MySQL DB, checking for duplicates, then */
- /* pulls the rules from MySQL and rewrites all TBird rule files */
- /* with the complete rule set. Future capabilities will allow */
- /* full control of the rule set. Blog forthcoming on the */
- /* future rule set capabilities. */
- /***************************************************************************/
-
- </textarea>
- <p>
- <b>Notice:</b>
- <br>
- <ul>
- <font size='-1'>
- The file header comments are indented by one tab from the "<?php" file processing identification
- <br>
- command and immediately follow it.
- <br>
- This is the minimal file header comment allowed with the "Advanced Documentation Standard"!
- </font>
- </ul>
- <p>
- <h2>Function Comment:</h2>
- <p>
- <textarea rows='14' cols='80'>
-
- function array_flatten(array $array) {
- /*********************************************************************/
- /* Function: array_flatten */
- /* Purpose: To flatten multidimentional arrays for find & */
- /* search needed for array processing in this class. */
- /*********************************************************************/
- if (!is_array($array)) { return array($array); }
- $return = array();
- $it = new RecursiveIteratorIterator(new RecursiveArrayIterator($array));
- foreach($it as $v) { $return[] = $v; }
- return $return;
- } // end function array_flatten
-
- </textarea>
- <p>
- <b>Notice:</b>
- <br>
- <ul>
- <font size='-1'>
- The function is indented by one tab from the "<?php" file processing identification command (above),
- <br>
- the comments follow the fuction declaration and are indented one tab from the declaration.
- <br>
- This is the minimal function comment allowed with the "Advanced Documentation Standard"!
- </font>
- </ul>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement