Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
flushBuffer example
if
(
'&' ===
$tok
)
{
// Character reference
$ref
=
$this
->
decodeCharacterReference
(
)
;
$this
->
buffer
(
$ref
)
;
$tok
=
$this
->scanner->
current
(
)
;
}
// Parse tag
if
(
'<' ===
$tok
)
{
// Any buffered text data can go out now.
$this
->
flushBuffer
(
)
;
$tok
=
$this
->scanner->
next
(
)
;
if
(
false ===
$tok
)
{
// end of string
$this
->
parseError
(
'Illegal tag opening'
)
;
}
elseif
(
'!' ===
$tok
)
{
$this
->
markupDeclaration
(
)
;
}
elseif
(
'/' ===
$tok
)
{
$this
->
endTag
(
)
;
}
elseif
(
'?' ===
$tok
)
{