This is moderately messy. Process was principally: * xargs rg --files-with-matches '^use Title;' | grep 'php$' | \ xargs -P 1 -n 1 sed -i -z 's/use Title;/use MediaWiki\\Title\\Title;/1' * rg --files-without-match 'MediaWiki\\Title\\Title;' . | grep 'php$' | \ xargs rg --files-with-matches 'Title\b' | \ xargs -P 1 -n 1 sed -i -z 's/\nuse /\nuse MediaWiki\\Title\\Title;\nuse /1' * composer fix Then manual fix-ups for a few files that don't have any use statements. Bug: T166010 Follows-Up: Ia5d8cb759dc3bc9e9bbe217d0fb109e2f8c4101a Change-Id: If8fc9d0d95fc1a114021e282a706fc3e7da3524b
92 lines
1.3 KiB
PHP
92 lines
1.3 KiB
PHP
<?php
|
|
|
|
use MediaWiki\Revision\SlotRecord;
|
|
use MediaWiki\Title\Title;
|
|
|
|
/**
|
|
* @since 1.31
|
|
*/
|
|
interface ImportableOldRevision {
|
|
|
|
/**
|
|
* @deprecated since 1.39, use {@see getUser} instead; this is almost always null anyway
|
|
* @since 1.31
|
|
* @return User|null Typically null, use {@see getUser} instead
|
|
*/
|
|
public function getUserObj();
|
|
|
|
/**
|
|
* @since 1.31
|
|
* @return string
|
|
*/
|
|
public function getUser();
|
|
|
|
/**
|
|
* @since 1.31
|
|
* @return Title
|
|
*/
|
|
public function getTitle();
|
|
|
|
/**
|
|
* @since 1.31
|
|
* @return string
|
|
*/
|
|
public function getTimestamp();
|
|
|
|
/**
|
|
* @since 1.31
|
|
* @return string
|
|
*/
|
|
public function getComment();
|
|
|
|
/**
|
|
* @since 1.31
|
|
* @return string
|
|
*/
|
|
public function getModel();
|
|
|
|
/**
|
|
* @since 1.31
|
|
* @return string
|
|
*/
|
|
public function getFormat();
|
|
|
|
/**
|
|
* @since 1.31
|
|
* @param string $role
|
|
* @return Content
|
|
*/
|
|
public function getContent( $role = SlotRecord::MAIN );
|
|
|
|
/**
|
|
* @since 1.35
|
|
* @param string $role
|
|
* @return SlotRecord
|
|
*/
|
|
public function getSlot( $role );
|
|
|
|
/**
|
|
* @since 1.35
|
|
* @return string[]
|
|
*/
|
|
public function getSlotRoles();
|
|
|
|
/**
|
|
* @since 1.31
|
|
* @return bool
|
|
*/
|
|
public function getMinor();
|
|
|
|
/**
|
|
* @since 1.31
|
|
* @return bool|string
|
|
*/
|
|
public function getSha1Base36();
|
|
|
|
/**
|
|
* @since 1.34
|
|
* @return string[]
|
|
*/
|
|
public function getTags();
|
|
|
|
}
|