MediaWiki  1.30.0
RemexMungerData.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\Tidy;
4 
17 
25 
34  public $wrapBaseNode;
35 
46 
52  public $isPWrapper = false;
53 
61  public $isSplittable = false;
62 
67  public $needsPWrapping = false;
68 
73  public $nonblankNodeCount = 0;
74 
75  public function __set( $name, $value ) {
76  throw new \Exception( "Cannot set property \"$name\"" );
77  }
78 }
MediaWiki\Tidy\RemexMungerData\$isPWrapper
bool $isPWrapper
Is the node a p-wrapper, with name mw:p-wrap?
Definition: RemexMungerData.php:52
MediaWiki\Tidy\RemexMungerData\$currentCloneElement
RemexHtml TreeBuilder Element null $currentCloneElement
Stack splitting (essentially our idea of AFE reconstruction) can clone formatting elements which are ...
Definition: RemexMungerData.php:45
MediaWiki\Tidy\RemexMungerData\__set
__set( $name, $value)
Definition: RemexMungerData.php:75
$name
Allows to change the fields on the form that will be generated $name
Definition: hooks.txt:302
php
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php
Definition: injection.txt:35
MediaWiki\Tidy\RemexMungerData\$childPElement
RemexHtml TreeBuilder Element null $childPElement
The Element for the mw:p-wrap which is a child of the current node.
Definition: RemexMungerData.php:16
MediaWiki\Tidy\RemexMungerData\$needsPWrapping
$needsPWrapping
This is true if the node is a body or blockquote, which activates p-wrapping of child nodes.
Definition: RemexMungerData.php:67
$value
$value
Definition: styleTest.css.php:45
MediaWiki\Tidy\RemexMungerData\$wrapBaseNode
RemexHtml Serializer SerializerNode null $wrapBaseNode
The wrap base node is the body or blockquote node which is the parent of active p-wrappers.
Definition: RemexMungerData.php:34
MediaWiki\Tidy\RemexMungerData\$isSplittable
bool $isSplittable
Is the node splittable, i.e.
Definition: RemexMungerData.php:61
MediaWiki\Tidy\RemexMungerData\$nonblankNodeCount
$nonblankNodeCount
The number of child nodes, not counting whitespace-only text nodes or comments.
Definition: RemexMungerData.php:73
MediaWiki\Tidy\RemexMungerData\$ancestorPNode
RemexHtml Serializer SerializerNode null $ancestorPNode
This tracks the mw:p-wrap node in the Serializer stack which is an ancestor of this node.
Definition: RemexMungerData.php:24
MediaWiki\Tidy\RemexMungerData
Definition: RemexMungerData.php:8
MediaWiki\Tidy
Definition: Balancer.php:26