Text_Wiki_Render_Rst_Links::append PHP Method

append() public static method

public static append ( )
    public static function append()
    {
        // Don't include Text_Wiki_Render_Rst_Freelink2 because it extends
        // Text_Wiki_Render_Rst_Wikilink.
        $result = '';
        $links = array_merge(Text_Wiki_Render_Rst_Interwiki::$paragraph_links, Text_Wiki_Render_Rst_Phplookup::$paragraph_links, Text_Wiki_Render_Rst_Url::$paragraph_links, Text_Wiki_Render_Rst_Wikilink::$paragraph_links);
        if (!empty($links)) {
            $result .= "\n";
            foreach ($links as $link) {
                $result .= "\n" . $link;
            }
            Text_Wiki_Render_Rst_Interwiki::$paragraph_links = array();
            Text_Wiki_Render_Rst_Phplookup::$paragraph_links = array();
            Text_Wiki_Render_Rst_Url::$paragraph_links = array();
            Text_Wiki_Render_Rst_Wikilink::$paragraph_links = array();
        }
        return $result;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Renders a token into text matching the requested format.
  * 
  * @param array $options The "options" portion of the token (second
  * element).
  * 
  * @return string The text rendered from the token options.
  */
 public function token($options)
 {
     extract($options);
     if ($type == 'start') {
         return '';
     }
     if ($type == 'end') {
         return Text_Wiki_Render_Rst_Links::append() . "\n\n";
     }
 }
All Usage Examples Of Text_Wiki_Render_Rst_Links::append
Text_Wiki_Render_Rst_Links