Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1431831
Output.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
723 B
Referenced Files
None
Subscribers
None
Output.php
View Options
<?php
/**
* Parser output
*
* @private
*/
class
Less_Output
{
/**
* Output holder
*
* @var string[]
*/
protected
$strs
=
[];
/**
* Adds a chunk to the stack
*
* @param string $chunk The chunk to output
* @param array|null $fileInfo The file information
* @param int $index The index
* @param bool|null $mapLines
*/
public
function
add
(
$chunk
,
$fileInfo
=
null
,
$index
=
0
,
$mapLines
=
null
)
{
$this
->
strs
[]
=
$chunk
;
}
/**
* Is the output empty?
*
* @return bool
*/
public
function
isEmpty
()
{
return
count
(
$this
->
strs
)
===
0
;
}
/**
* Converts the output to string
*
* @return string
*/
public
function
toString
()
{
return
implode
(
''
,
$this
->
strs
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 21:07 (1 d, 21 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
2c/94/4f425a0541f6d29fb6218d1e69bf
Default Alt Text
Output.php (723 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment