Viewing File: /home/omtekel/www/wp-content/upgrade/backup/Math.tar

src/TexVC/MMLmappings/TexConstants/Tag.php000066600000001020151335016330014366 0ustar00<?php

namespace MediaWiki\Extension\Math\TexVC\MMLmappings\TexConstants;

/**
 * This class contains the string how tags are written
 * Changing this will remove mathjax specifics.
 */
class Tag {
	public const ALIGN = "data-mjx-script-align";
	public const ALTERNATE = "data-mjx-alternate";
	public const SCRIPTTAG = "data-mjx-pseudoscript";

	// Example exchange value: "texClass"
	public const CLASSTAG = "data-mjx-texclass";

	// This is some tag in addition to mathvariant
	public const MJXVARIANT = "data-mjx-variant";
}
tests/phpunit/DummyPropertyDataTypeLookup.php000066600000001176151335016330015605 0ustar00<?php

use Wikibase\DataModel\Services\Lookup\PropertyDataTypeLookup;

class DummyPropertyDataTypeLookup implements PropertyDataTypeLookup {
	/**
	 * @var int
	 */
	public static $mathId = 1;

	/**
	 * Returns the data type for the Property of which the id is given.
	 *
	 * @since 2.0
	 *
	 * @param \Wikibase\DataModel\Entity\PropertyId $propertyId
	 *
	 * @return string
	 * @throws \Wikibase\DataModel\Services\Lookup\PropertyDataTypeLookupException
	 */
	public function getDataTypeIdForProperty( \Wikibase\DataModel\Entity\PropertyId $propertyId ) {
		return $propertyId->getNumericId() == self::$mathId ? 'math' : 'not-math';
	}
}
Back to Directory File Manager