Text_Wiki
[ class tree: Text_Wiki ] [ index: Text_Wiki ] [ all elements ]

Source for file Heading.php

Documentation is available at Heading.php

  1. <?php
  2.  
  3.  
  4.     function token($options)
  5.     {
  6.         // get nice variable names (type, level)
  7.         extract($options);
  8.  
  9.         if ($type == 'start'{
  10.             switch ($level)
  11.                 {
  12.                 case '1':
  13.                     return '\part{';
  14.                 case '2':
  15.                     return '\section{';
  16.                 case '3':
  17.                     return '\subsection{';
  18.                 case '4':
  19.                     return '\subsubsection{';
  20.                 case '5':
  21.                     return '\paragraph{';
  22.                 case '6':
  23.                     return '\subparagraph{';
  24.                 }
  25.         }
  26.         
  27.         if ($type == 'end'{
  28.             return "}\n";
  29.         }
  30.     }
  31. }
  32. ?>

Documentation generated on Tue, 12 Mar 2019 21:49:18 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.