public function testCanConstructImportValueParser() { $instance = new ValueParserFactory(); $this->assertInstanceOf('\\SMW\\DataValues\\ValueParsers\\ImportValueParser', $instance->newImportValueParser()); }
/** * @param string $typeid */ public function __construct($typeid) { parent::__construct($typeid); $this->importValueParser = ValueParserFactory::getInstance()->newImportValueParser(); }
public function testCanConstructAllowsPatternContentParser() { $instance = new ValueParserFactory(); $this->assertInstanceOf('\\SMW\\DataValues\\ValueParsers\\AllowsPatternContentParser', $instance->newAllowsPatternContentParser()); }
/** * @since 2.4 */ public function __construct() { $this->allowsPatternContentParser = ValueParserFactory::getInstance()->newAllowsPatternContentParser(); }
/** * @param string $typeid */ public function __construct($typeid = '') { parent::__construct('__pvap'); $this->allowsPatternContentParser = ValueParserFactory::getInstance()->newAllowsPatternContentParser(); }
private function getValueParser() { if ($this->monolingualTextValueParser === null) { $this->monolingualTextValueParser = ValueParserFactory::getInstance()->newMonolingualTextValueParser(); } return $this->monolingualTextValueParser; }