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

Source for file Break.php

Documentation is available at Break.php

  1. <?php
  2. // $Id: Break.php,v 1.2 2004/09/25 19:05:13 pmjones Exp $
  3.  
  4.  
  5. /**
  6. * This class implements a Text_Wiki_Parse to mark forced line breaks in the
  7. * source text.
  8. *
  9. @author Paul M. Jones <pmjones@ciaweb.net>
  10. *
  11. @package Text_Wiki
  12. *
  13. */
  14.  
  15.     
  16.     
  17.     /**
  18.     * 
  19.     * The regular expression used to parse the source text and find
  20.     * matches conforming to this rule.  Used by the parse() method.
  21.     * 
  22.     * @access public
  23.     * 
  24.     * @var string 
  25.     * 
  26.     * @see parse()
  27.     * 
  28.     */
  29.     
  30.     var $regex = '/ _\n/';
  31.     
  32.     
  33.     /**
  34.     * 
  35.     * Generates a replacement token for the matched text.
  36.     * 
  37.     * @access public
  38.     *
  39.     * @param array &$matches The array of matches from parse().
  40.     *
  41.     * @return string A delimited token to be used as a placeholder in
  42.     *  the source text.
  43.     *
  44.     */
  45.     
  46.     function process(&$matches)
  47.     {    
  48.         return $this->wiki->addToken($this->rule);
  49.     }
  50. }
  51.  
  52. ?>

Documentation generated on Mon, 11 Mar 2019 13:56:08 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.