PHP Class Goetas\Twital\EventSubscriber\ContextAwareEscapingSubscriber

Author: Asmir Mustafic ([email protected])
Inheritance: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Mostra file Open project: goetas/twital

Protected Properties

Property Type Description
$options
$placeholder

Public Methods

Method Description
__construct ( array $placeholder = ['[_TWITAL_[', ']_TWITAL_]'], array $options = [] )
addEscaping ( TemplateEvent $event )
getSubscribedEvents ( )

Private Methods

Method Description
esapeScript ( DOMDocument $doc, DOMXPath $xp )
esapeStyle ( DOMDocument $doc, DOMXPath $xp )
esapeUrls ( DOMDocument $doc, DOMXPath $xp )
xpathQuery ( DOMXPath $xp, $expression, DOMNode $contextnode = null, $registerNodeNS = true ) Used only to achieve HHVM compatibility. Sett https://github.com/facebook/hhvm/issues/2810

Method Details

__construct() public method

public __construct ( array $placeholder = ['[_TWITAL_[', ']_TWITAL_]'], array $options = [] )
$placeholder array
$options array

addEscaping() public method

public addEscaping ( TemplateEvent $event )
$event Goetas\Twital\EventDispatcher\TemplateEvent

getSubscribedEvents() public static method

public static getSubscribedEvents ( )

Property Details

$options protected_oe property

protected $options

$placeholder protected_oe property

protected $placeholder