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

Source for file Titlebar.php

Documentation is available at Titlebar.php

  1. <?php
  2.  
  3. class Text_Wiki_Parse_Titlebar extends Text_Wiki_Parse {
  4.     
  5.     
  6.     /**
  7.     * 
  8.     * The regular expression used to parse the source text and find
  9.     * matches conforming to this rule.  Used by the parse() method.
  10.     * 
  11.     * @access public
  12.     * 
  13.     * @var string 
  14.     * 
  15.     * @see parse()
  16.     * 
  17.     */
  18.     
  19.     var $regex =  '/-=(.*?)=-/';
  20.     
  21.     
  22.     /**
  23.     * 
  24.     * Generates a replacement for the matched text.  Token options are:
  25.     * 
  26.     * 'type' => ['start'|'end'] The starting or ending point of the
  27.     * emphasized text.  The text itself is left in the source.
  28.     * 
  29.     * @access public
  30.     *
  31.     * @param array &$matches The array of matches from parse().
  32.     *
  33.     * @return pair of delimited tokens to be used as a placeholder in
  34.     *  the source text surrounding the text to be emphasized.
  35.     *
  36.     */
  37.     
  38.     function process(&$matches)
  39.     {
  40.         $start $this->wiki->addToken($this->rulearray('type' => 'start'));
  41.         $end $this->wiki->addToken($this->rulearray('type' => 'end'));
  42.         return $start $matches[1$end;
  43.     }
  44. }
  45. ?>

Documentation generated on Mon, 11 Mar 2019 15:32:44 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.