MediaWiki
REL1_23
|
00001 <?php 00002 00019 class CLDRPluralRuleConverter_Expression extends CLDRPluralRuleConverter_Fragment { 00021 public $type; 00022 00024 public $rpn; 00025 00026 function __construct( $parser, $type, $rpn, $pos, $length ) { 00027 parent::__construct( $parser, $pos, $length ); 00028 $this->type = $type; 00029 $this->rpn = $rpn; 00030 } 00031 00032 public function isType( $type ) { 00033 if ( $type === 'range' && ( $this->type === 'range' || $this->type === 'number' ) ) { 00034 return true; 00035 } 00036 if ( $type === $this->type ) { 00037 return true; 00038 } 00039 return false; 00040 } 00041 }