Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7400347
ParsedLine.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ParsedLine.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
Wikimedia\Parsoid\Ext\Gallery
;
use
Wikimedia\Parsoid\Core\DomSourceRange
;
use
Wikimedia\Parsoid\DOM\Element
;
use
Wikimedia\Parsoid\Ext\DOMUtils
;
class
ParsedLine
{
/**
* DOM node representing the thumbnail image.
* @var Element
*/
public
$thumb
;
/**
* DOM node representing the caption (if any).
* @var ?Element
*/
public
$gallerytext
;
/**
* The `typeof` the thumbnail image.
* @var string
*/
public
$rdfaType
;
/**
* @var DomSourceRange
*/
public
$dsr
;
public
bool
$hasError
;
/**
* Construct a new ParsedLine object.
* @param Element $thumb
* @param ?Element $gallerytext
* @param string $rdfaType
* @param DomSourceRange $dsr
*/
public
function
__construct
(
Element
$thumb
,
?
Element
$gallerytext
,
string
$rdfaType
,
DomSourceRange
$dsr
)
{
$this
->
thumb
=
$thumb
;
$this
->
gallerytext
=
$gallerytext
;
$this
->
rdfaType
=
$rdfaType
;
$this
->
dsr
=
$dsr
;
$this
->
hasError
=
DOMUtils
::
hasTypeOf
(
$thumb
,
'mw:Error'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Nov 21, 16:38 (10 h, 19 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
23/75/ffcc3edb3da9521080521e2ec600
Default Alt Text
ParsedLine.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment