Helper to generate abstract schema and schema changes in maintenance scripts.
More...
|
| static | normalizePath (string $jsonPath, string $IP, string $extensionDirectory) |
| | Make absolute path relative to the root of $IP or extension.
|
| |
Helper to generate abstract schema and schema changes in maintenance scripts.
Definition at line 15 of file SchemaGenerator.php.
◆ generateSchema()
| MediaWiki\Maintenance\SchemaGenerator::generateSchema |
( |
string | $platform, |
|
|
string | $jsonPath ) |
◆ generateSchemaChange()
| MediaWiki\Maintenance\SchemaGenerator::generateSchemaChange |
( |
string | $platform, |
|
|
string | $jsonPath ) |
◆ normalizePath()
| static MediaWiki\Maintenance\SchemaGenerator::normalizePath |
( |
string | $jsonPath, |
|
|
string | $IP, |
|
|
string | $extensionDirectory ) |
|
static |
Make absolute path relative to the root of $IP or extension.
- Parameters
-
| string | $jsonPath | Path to an existing schema file |
| string | $IP | Root of MediaWiki core installation |
| string | $extensionDirectory | Root of dir holding MediaWiki extensions |
- Returns
- string the relative path
Definition at line 101 of file SchemaGenerator.php.
◆ validateAndGetSchema()
| MediaWiki\Maintenance\SchemaGenerator::validateAndGetSchema |
( |
string | $jsonPath | ) |
|
Fetches the abstract schema.
- Parameters
-
- Returns
- array
- Exceptions
-
| AbstractSchemaValidationError | |
Definition at line 23 of file SchemaGenerator.php.
The documentation for this class was generated from the following file: