PHP Class Gregwar\RST\Span

Inheritance: extends Gregwar\RST\Nodes\Node
Show file Open project: gregwar/rst

Protected Properties

Property Type Description
$environment
$parser
$span
$tokens

Public Methods

Method Description
__construct ( Parser $parser, $span )
br ( )
emphasis ( $text )
escape ( $span )
link ( $url, $title )
literal ( $text )
nbsp ( )
process ( $data ) Processes some data in the context of the span, this will process the **emphasis**, the nbsp, replace variables and end-of-line brs
reference ( $reference, $value )
render ( ) Renders the span
strongEmphasis ( $text )

Method Details

__construct() public method

public __construct ( Parser $parser, $span )
$parser Parser

br() public method

public br ( )

emphasis() public method

public emphasis ( $text )

escape() public method

public escape ( $span )

literal() public method

public literal ( $text )

nbsp() public method

public nbsp ( )

process() public method

Processes some data in the context of the span, this will process the **emphasis**, the nbsp, replace variables and end-of-line brs
public process ( $data )

reference() public method

public reference ( $reference, $value )

render() public method

Renders the span
public render ( )

strongEmphasis() public method

public strongEmphasis ( $text )

Property Details

$environment protected property

protected $environment

$parser protected property

protected $parser

$span protected property

protected $span

$tokens protected property

protected $tokens