MediaWiki  1.23.14
CLDRPluralRuleConverter_Fragment.php
Go to the documentation of this file.
1 <?php
2 
18  public $parser, $pos, $length, $end;
19 
20  function __construct( $parser, $pos, $length ) {
21  $this->parser = $parser;
22  $this->pos = $pos;
23  $this->length = $length;
24  $this->end = $pos + $length;
25  }
26 
27  public function error( $message ) {
28  $text = $this->getText();
29  throw new CLDRPluralRuleError( "$message at position " . ( $this->pos + 1 ) . ": \"$text\"" );
30  }
31 
32  public function getText() {
33  return substr( $this->parser->rule, $this->pos, $this->length );
34  }
35 }
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
CLDRPluralRuleConverter_Fragment\$length
$length
Definition: CLDRPluralRuleConverter_Fragment.php:18
CLDRPluralRuleConverter_Fragment\$end
$end
Definition: CLDRPluralRuleConverter_Fragment.php:18
CLDRPluralRuleConverter_Fragment\getText
getText()
Definition: CLDRPluralRuleConverter_Fragment.php:32
CLDRPluralRuleConverter_Fragment
Helper for CLDRPluralRuleConverter.
Definition: CLDRPluralRuleConverter_Fragment.php:17
CLDRPluralRuleConverter_Fragment\$pos
$pos
Definition: CLDRPluralRuleConverter_Fragment.php:18
CLDRPluralRuleError
The exception class for all the classes in this file.
Definition: CLDRPluralRuleError.php:17
CLDRPluralRuleConverter_Fragment\$parser
$parser
Definition: CLDRPluralRuleConverter_Fragment.php:18
CLDRPluralRuleConverter_Fragment\__construct
__construct( $parser, $pos, $length)
Definition: CLDRPluralRuleConverter_Fragment.php:20
CLDRPluralRuleConverter_Fragment\error
error( $message)
Definition: CLDRPluralRuleConverter_Fragment.php:27