47 parent::__construct( $options );
50 'originalBlocks' => [],
53 $options += $defaults;
55 $this->originalBlocks = $options[
'originalBlocks' ];
73 foreach ( $this->originalBlocks as $block ) {
74 if ( $block->$prop == $value ) {
91 foreach ( $this->originalBlocks as $block ) {
92 if ( $block->$method( ...$params ) == $value ) {
114 foreach ( $this->originalBlocks as $block ) {
115 $expiry = $block->getExpiry();
116 if ( $maxExpiry ===
null || $expiry ===
'' || $expiry > $maxExpiry ) {
117 $maxExpiry = $expiry;
128 foreach ( $this->originalBlocks as $block ) {
129 $identifier[] = $block->getIdentifier();
147 foreach ( $this->originalBlocks as $block ) {
148 $appliesToRight = $block->appliesToRight( $right );
150 if ( $appliesToRight ) {
152 } elseif ( $appliesToRight ===
null ) {
157 return $isUnsure ? null :
false;
Represents a title within MediaWiki.