PHP Class HTMLPurifier_Injector_AutoParagraph, yii

Inheritance: extends HTMLPurifier_Injector
Afficher le fichier Open project: yiisoft/yii

Méthodes publiques

Свойство Type Description
$name
$needed

Méthodes publiques

Méthode Description
handleElement ( HTMLPurifier_Token &$token )
handleText ( HTMLPurifier_Token_Text &$token )

Private Methods

Méthode Description
_checkNeedsP ( HTMLPurifier_Token $current ) : boolean Determines if a particular token requires an earlier inline token to get a paragraph. This should be used with _forwardUntilEndToken
_isInline ( HTMLPurifier_Token $token ) : boolean Returns true if passed token is inline (and, ergo, allowed in paragraph tags)
_pLookAhead ( ) : boolean Looks ahead in the token list and determines whether or not we need to insert a

tag.

_pStart ( ) : HTMLPurifier_Token_Start
_splitText ( string $data, HTMLPurifier_Token[] &$result ) Splits up a text in paragraph tokens and appends them to the result stream that will replace the original

Method Details

handleElement() public méthode

public handleElement ( HTMLPurifier_Token &$token )
$token HTMLPurifier_Token

handleText() public méthode

public handleText ( HTMLPurifier_Token_Text &$token )
$token HTMLPurifier_Token_Text

Property Details

$name public_oe property

public $name

$needed public_oe property

public $needed