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 'caption_start':
  35.             return;
  36.             break;
  37.  
  38.         case 'caption_end':
  39.             return "\n";
  40.             break;
  41.  
  42.         case 'row_start':
  43.             return;
  44.             break;
  45.  
  46.         case 'row_end':
  47.             return " ||\n";
  48.             break;
  49.  
  50.         case 'cell_start':
  51.             return " || ";
  52.             break;
  53.  
  54.         case 'cell_end':
  55.             return;
  56.             break;
  57.  
  58.         default:
  59.             return '';
  60.  
  61.         }
  62.     }
  63. }
  64. ?>

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