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

Source for file Table.php

Documentation is available at Table.php

  1. <?php
  2.  
  3.     
  4.     /**
  5.     * 
  6.     * Renders a token into text matching the requested format.
  7.     * 
  8.     * @access public
  9.     * 
  10.     * @param array $options The "options" portion of the token (second
  11.     *  element).
  12.     * 
  13.     * @return string The text rendered from the token options.
  14.     * 
  15.     */
  16.     
  17.     function token($options)
  18.     {
  19.         // make nice variable names (type, attr, span)
  20.         extract($options);
  21.         
  22.         $pad '    ';
  23.         
  24.         switch ($type{
  25.         
  26.         case 'table_start':
  27.             return;
  28.             break;
  29.         
  30.         case 'table_end':
  31.             return;
  32.             break;
  33.         
  34.         case 'row_start':
  35.             return;
  36.             break;
  37.         
  38.         case 'row_end':
  39.             return " ||\n";
  40.             break;
  41.         
  42.         case 'cell_start':
  43.             return " || ";
  44.             break;
  45.         
  46.         case 'cell_end':
  47.             return;
  48.             break;
  49.         
  50.         default:
  51.             return '';
  52.         
  53.         }
  54.     }
  55. }
  56. ?>

Documentation generated on Mon, 11 Mar 2019 14:28:35 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.