External Data — расширение MediaWiki , позволяющее встраивать на страницах вики внешнее содержимое с веб-страниц, из баз данных, файлов и вывода программ.
<graph> Graphviz Mscgen
Шаблоны:
Выаодится средствами External Data .
Иерархия классов
EDParserFunctions
EDParserFunctions
EDScribunto
EDScribunto
Scribunto_LuaLibraryBase
Scribunto_LuaLibraryBase
EDScribunto->Scribunto_LuaLibraryBase
EDConnectorPreparedOdbc
EDConnectorPreparedOdbc
EDConnectorPrepared
EDConnectorPrepared
EDConnectorPreparedOdbc->EDConnectorPrepared
EDConnectorDb
EDConnectorDb
EDConnectorPrepared->EDConnectorDb
EDConnectorDirectory
EDConnectorDirectory
EDConnectorPath
EDConnectorPath
EDConnectorDirectory->EDConnectorPath
EDConnectorBase
EDConnectorBase
EDConnectorPath->EDConnectorBase
EDConnectorPreparedPostgresql
EDConnectorPreparedPostgresql
EDConnectorPreparedPostgresql->EDConnectorPrepared
EDConnectorFile
EDConnectorFile
EDConnectorFile->EDConnectorPath
EDConnectorWeb
EDConnectorWeb
EDConnectorHttp
EDConnectorHttp
EDConnectorWeb->EDConnectorHttp
EDConnectorHttp->EDConnectorBase
EDConnectorDb->EDConnectorBase
EDConnectorSoap
EDConnectorSoap
EDConnectorSoap->EDConnectorHttp
EDConnectorRdbms
EDConnectorRdbms
EDConnectorComposed
EDConnectorComposed
EDConnectorRdbms->EDConnectorComposed
EDConnectorComposed->EDConnectorDb
EDConnectorExe
EDConnectorExe
EDConnectorExe->EDConnectorBase
EDConnectorSqlite
EDConnectorSqlite
EDConnectorSqlite->EDConnectorRdbms
EDConnectorSql
EDConnectorSql
EDConnectorSql->EDConnectorRdbms
EDConnectorLdap
EDConnectorLdap
EDConnectorLdap->EDConnectorBase
EDConnectorDirectoryWalker
EDConnectorDirectoryWalker
EDConnectorDirectoryWalker->EDConnectorDirectory
EDConnectorDummy
EDConnectorDummy
EDConnectorDummy->EDConnectorBase
EDConnectorInline
EDConnectorInline
EDConnectorInline->EDConnectorBase
EDConnectorOdbcMssql
EDConnectorOdbcMssql
EDConnectorOdbc
EDConnectorOdbc
EDConnectorOdbcMssql->EDConnectorOdbc
EDConnectorOdbc->EDConnectorComposed
EDConnectorPostgresql
EDConnectorPostgresql
EDConnectorPostgresql->EDConnectorRdbms
EDConnectorMongodb
EDConnectorMongodb
EDConnectorMongodb->EDConnectorComposed
EDConnectorPreparedMysql
EDConnectorPreparedMysql
EDConnectorPreparedMysql->EDConnectorPrepared
EDReparseJob
EDReparseJob
Job
Job
EDReparseJob->Job
EDArraySlice
EDArraySlice
Test
Test
Base
Base
Test->Base
Reference
Reference
Reference->Base
Media
Media
Media->Base
EDParserXMLwithXPath
EDParserXMLwithXPath
EDParserXML
EDParserXML
EDParserXMLwithXPath->EDParserXML
EDParserBase
EDParserBase
EDParserXML->EDParserBase
EDParserXMLsimple
EDParserXMLsimple
EDParserXMLsimple->EDParserXML
EDParserAuto
EDParserAuto
EDParserAuto->EDParserBase
EDParserZip
EDParserZip
EDParserArchive
EDParserArchive
EDParserZip->EDParserArchive
EDParserArchive->EDParserBase
EDParserText
EDParserText
EDParserText->EDParserBase
EDParserHTMLwithXPath
EDParserHTMLwithXPath
EDParserHTMLwithXPath->EDParserXMLwithXPath
EDParserYAMLwithJSONPath
EDParserYAMLwithJSONPath
EDParserJSONwithJSONPath
EDParserJSONwithJSONPath
EDParserYAMLwithJSONPath->EDParserJSONwithJSONPath
EDParserJSON
EDParserJSON
EDParserJSONwithJSONPath->EDParserJSON
EDParserPhar
EDParserPhar
EDParserPhar->EDParserArchive
EDParserJSONsimple
EDParserJSONsimple
EDParserJSONsimple->EDParserJSON
EDParserJSON->EDParserBase
EDParserHTMLwithCSS
EDParserHTMLwithCSS
EDParserHTMLwithCSS->EDParserHTMLwithXPath
EDParserCSV
EDParserCSV
EDParserCSV->EDParserBase
EDParserGFF
EDParserGFF
EDParserGFF->EDParserBase
EDParserException
EDParserException
Exception
Exception
EDParserException->Exception
EDParserIni
EDParserIni
EDParserIni->EDParserBase
EDParserYAMLsimple
EDParserYAMLsimple
EDParserYAMLsimple->EDParserJSONsimple
EDParserRar
EDParserRar
EDParserRar->EDParserArchive
EDParserRegex
EDParserRegex
EDParserRegex->EDParserBase
EDDependencyException
EDDependencyException
EDDependencyException->Exception
EDJsonObject
EDJsonObject
ExternalDataHooks
ExternalDataHooks
EDGetData
EDGetData
SpecialPage
SpecialPage
EDGetData->SpecialPage
Структура файла extension.json
(выаодится средствами External Data ):
name External Data version 3.4-alpha author url https://www.mediawiki.org/wiki/Extension:External_Data descriptionmsg externaldata-desc license-name GPL-2.0-or-later type parserhook requires load_composer_autoloader ☑ true SpecialPages MessagesDirs ExtensionMessagesFiles AutoloadClasses AutoloadNamespaces Hooks JobClasses callback ExternalDataHooks::onRegistration config_prefix wgExternalData config TestAutoloadClasses manifest_version 2 Yaron Koren Alexander Mashin ... MediaWiki >= 1.35.3 GetData EDGetData ExternalData i18n ExternalDataMagic ExternalData.i18n.magic.php ExternalDataAlias ExternalData.i18n.alias.php ExternalDataHooks includes/ExternalDataHooks.php EDParserFunctions includes/EDParserFunctions.php EDGetData includes/EDGetData.php EDJsonObject includes/EDJsonObject.php EDArraySlice includes/EDArraySlice.php EDReparseJob includes/EDReparseJob.php EDParsesParams includes/EDParsesParams.php EDConnectorCached includes/connectors/traits/EDConnectorCached.php EDConnectorThrottled includes/connectors/traits/EDConnectorThrottled.php EDConnectorParsable includes/connectors/traits/EDConnectorParsable.php EDConnectorBase includes/connectors/EDConnectorBase.php EDConnectorHttp includes/connectors/EDConnectorHttp.php EDConnectorWeb includes/connectors/EDConnectorWeb.php EDConnectorSoap includes/connectors/EDConnectorSoap.php EDConnectorLdap includes/connectors/EDConnectorLdap.php EDConnectorPath includes/connectors/EDConnectorPath.php EDConnectorFile includes/connectors/EDConnectorFile.php EDConnectorDirectory includes/connectors/EDConnectorDirectory.php EDConnectorDirectoryWalker includes/connectors/EDConnectorDirectoryWalker.php EDConnectorDb includes/connectors/EDConnectorDb.php EDConnectorComposed includes/connectors/EDConnectorComposed.php EDConnectorRdbms includes/connectors/EDConnectorRdbms.php EDConnectorSql includes/connectors/EDConnectorSql.php EDConnectorPostgresql includes/connectors/EDConnectorPostgresql.php EDConnectorSqlite includes/connectors/EDConnectorSqlite.php EDConnectorOdbc includes/connectors/EDConnectorOdbc.php EDConnectorOdbcMssql includes/connectors/EDConnectorOdbcMssql.php EDConnectorMongodb includes/connectors/EDConnectorMongodb.php EDConnectorPrepared includes/connectors/EDConnectorPrepared.php EDConnectorPreparedMysql includes/connectors/EDConnectorPreparedMysql.php EDConnectorPreparedPostgresql includes/connectors/EDConnectorPreparedPostgresql.php EDConnectorPreparedOdbc includes/connectors/EDConnectorPreparedOdbc.php EDConnectorExe includes/connectors/EDConnectorExe.php EDConnectorInline includes/connectors/EDConnectorInline.php EDConnectorDummy includes/connectors/EDConnectorDummy.php EDParserBase includes/parsers/EDParserBase.php EDParserText includes/parsers/EDParserText.php EDParserRegex includes/parsers/EDParserRegex.php EDParserIni includes/parsers/EDParserIni.php EDParserHTMLwithCSS includes/parsers/EDParserHTMLwithCSS.php EDParserHTMLwithXPath includes/parsers/EDParserHTMLwithXPath.php EDParserXML includes/parsers/EDParserXML.php EDParserXMLsimple includes/parsers/EDParserXMLsimple.php EDParserXMLwithXPath includes/parsers/EDParserXMLwithXPath.php EDParserJSON includes/parsers/EDParserJSON.php EDParserJSONsimple includes/parsers/EDParserJSONsimple.php EDParserJSONwithJSONPath includes/parsers/EDParserJSONwithJSONPath.php EDParserYAMLsimple includes/parsers/EDParserYAMLsimple.php EDParserYAMLwithJSONPath includes/parsers/EDParserYAMLwithJSONPath.php EDParserCSV includes/parsers/EDParserCSV.php EDParserGFF includes/parsers/EDParserGFF.php EDParserArchive includes/parsers/EDParserArchive.php EDParserPhar includes/parsers/EDParserPhar.php EDParserZip includes/parsers/EDParserZip.php EDParserRar includes/parsers/EDParserRar.php EDParserAuto includes/parsers/EDParserAuto.php EDParserException includes/parsers/EDParserException.php ExternalData\Presets\ includes/presets ParserFirstCallInit ExternalDataHooks::registerParser ScribuntoExternalLibraries ExternalDataHooks::registerLua SoftwareInfo ExternalDataHooks::onSoftwareInfo LoadExtensionSchemaUpdates ExternalDataHooks::onLoadExtensionSchemaUpdates edReparse EDReparseJob Sources Verbose Connectors IntegratedConnectors Parsers AllowGetters description An array of settings for data sources. Index '*' contains global fallbacks value merge_strategy array_plus_2d * load test presets ☐ false load reference presets ☐ false load media presets ☐ false load all presets ☐ false min cache seconds 3600 always use stale cache ☐ false throttle key $2nd_lvl_domain$ throttle interval 0 replacements allowed urls options encodings params param filters verbose ☑ true timeout default ASCII UTF-8 Windows-1251 Windows-1252 Windows-1254 KOI8-R ISO-8859-1 description Show an error message if there is no external value value ☑ true description Rules for choosing EDConnector* class in compatibility mode value EDConnectorWeb __pf get_web_data hidden ☐ false EDConnectorDirectoryWalker __pf get_file_data directory ☑ true file name /[[\]?*]/ hidden ☐ false EDConnectorDirectoryWalker __pf get_file_data source ☑ true file name /[[\]?*]/ hidden ☐ false EDConnectorDirectory __pf get_file_data directory ☑ true hidden ☐ false EDConnectorDirectory __pf get_file_data source ☑ true file name ☑ true hidden ☐ false EDConnectorFile __pf get_file_data hidden ☐ false EDConnectorSoap __pf get_soap_data hidden ☐ false EDConnectorLdap __pf get_ldap_data hidden ☐ false EDConnectorPreparedMysql __pf get_db_data type mysql prepared ☑ true hidden ☐ false EDConnectorPreparedPostgresql __pf get_db_data type postgres prepared ☑ true hidden ☐ false EDConnectorSqlite __pf get_db_data type sqlite hidden ☐ false EDConnectorPreparedOdbc __pf get_db_data type odbc prepared ☑ true hidden ☐ false EDConnectorOdbcMssql __pf get_db_data type odbc prepared ☐ false driver /ODBC Driver \d+ for SQL Server/ hidden ☐ false EDConnectorMongodb __pf get_db_data type mongodb hidden ☐ false EDConnectorPostgresql __pf get_db_data type postgres hidden ☐ false EDConnectorSql __pf get_db_data hidden ☐ false EDConnectorExe __pf get_program_data hidden ☐ false EDConnectorExe __pf get_program_data hidden ☐ false EDConnectorInline __pf get_inline_data hidden ☐ false EDConnectorDummy __pf get_external_data hidden ☑ true source ☐ false EDConnectorWeb __pf get_external_data url ☑ true request ☐ false EDConnectorWeb __pf get_external_data post data ☑ true EDConnectorDirectoryWalker __pf get_external_data directory ☑ true file name /[[\]?*]/ EDConnectorDirectoryWalker __pf get_external_data source ☑ true file name /[[\]?*]/ EDConnectorDirectory __pf get_external_data directory ☑ true host ☐ false EDConnectorDirectory __pf get_external_data source ☑ true file name ☑ true EDConnectorFile __pf get_external_data file ☑ true EDConnectorFile __pf get_external_data source ☑ true path ☑ true EDConnectorSoap __pf get_external_data request ☑ true EDConnectorSoap __pf get_external_data source ☑ true requestData ☑ true EDConnectorLdap __pf get_external_data domain ☑ true EDConnectorLdap __pf get_external_data source ☑ true base dn ☑ true EDConnectorPreparedMysql __pf get_external_data type mysql prepared ☑ true EDConnectorPreparedPostgresql __pf get_external_data type postgres prepared ☑ true EDConnectorSqlite __pf get_external_data type sqlite EDConnectorPreparedOdbc __pf get_external_data type odbc prepared ☑ true EDConnectorOdbcMssql __pf get_external_data type odbc prepared ☐ false driver /ODBC Driver \d+ for SQL Server/ EDConnectorMongodb __pf get_external_data type mongodb EDConnectorPostgresql __pf get_external_data type postgres EDConnectorSql __pf get_external_data from ☑ true EDConnectorPreparedMysql __pf get_external_data prepared ☑ true EDConnectorSql __pf get_external_data type mysql EDConnectorSql __pf get_external_data type sqlite EDConnectorExe __pf get_external_data command ☑ true EDConnectorExe __pf get_external_data program ☑ true EDConnectorInline __pf get_external_data text ☑ true description Rules for choosing EDConnector* class in standalone mode value EDConnectorWeb __pf ␀ url ☑ true request ☐ false EDConnectorWeb __pf ␀ post data ☑ true EDConnectorDirectoryWalker __pf ␀ file name /[[\]?*]/ EDConnectorDirectory __pf ␀ file name ☑ true EDConnectorFile __pf ␀ path ☑ true EDConnectorSoap __pf ␀ request ☑ true EDConnectorSoap __pf ␀ requestData ☑ true EDConnectorLdap __pf ␀ base dn ☑ true EDConnectorPreparedMysql __pf ␀ type mysql prepared ☑ true EDConnectorPreparedPostgresql __pf ␀ type postgres prepared ☑ true EDConnectorSqlite __pf ␀ type sqlite EDConnectorPreparedOdbc __pf ␀ type odbc prepared ☑ true EDConnectorOdbcMssql __pf ␀ type odbc driver /ODBC Driver \d+ for SQL Server/ EDConnectorMongodb __pf ␀ type mongodb EDConnectorPostgresql __pf ␀ type postgres EDConnectorPreparedMysql __pf ␀ prepared ☑ true EDConnectorSql __pf ␀ from ☑ true EDConnectorSql __pf ␀ type mysql EDConnectorSql __pf ␀ type sqlite EDConnectorExe __pf ␀ command ☑ true EDConnectorExe __pf ␀ program ☑ true EDConnectorInline __pf ␀ text ☑ true EDConnectorDummy __pf ␀ EDConnectorDummy __pf ☑ true description Rules for choosing EDParser* class value EDParserZip __exists ZipArchive url /\.zip$/i archive path ☑ true EDParserZip __exists ZipArchive file name /\.zip$/i archive path ☑ true EDParserZip __exists ZipArchive path /\.zip$/i archive path ☑ true EDParserZip __exists ZipArchive source /\.zip$/i archive path ☑ true EDParserRar __exists RarArchive url /\.rar$/i archive path ☑ true EDParserRar __exists RarArchive file name /\.rar$/i archive path ☑ true EDParserRar __exists RarArchive path /\.rar$/i archive path ☑ true EDParserRar __exists RarArchive source /\.rar$/i archive path ☑ true EDParserPhar __exists PharData url /\.tar$/i archive path ☑ true EDParserPhar __exists PharData file name /\.tar$/i archive path ☑ true EDParserPhar __exists PharData path /\.tar$/i archive path ☑ true EDParserPhar __exists PharData source /\.tar$/i archive path ☑ true EDParserPhar __exists url /\.tar\.gz$/i archive path ☑ true PharData gzopen EDParserPhar __exists file name /\.tar\.gz$/i archive path ☑ true PharData gzopen EDParserPhar __exists path /\.tar\.gz$/i archive path ☑ true PharData gzopen EDParserPhar __exists source /\.tar\.gz$/i archive path ☑ true PharData gzopen EDParserPhar __exists url /\.tar\.bz2$/i archive path ☑ true PharData bzopen EDParserPhar __exists file name /\.tar\.bz2$/i archive path ☑ true PharData bzopen EDParserPhar __exists path /\.tar\.bz2$/i archive path ☑ true PharData bzopen EDParserPhar __exists source /\.tar\.bz2$/i archive path ☑ true PharData bzopen EDParserRegex format text regex ☑ true EDParserRegex format auto regex ☑ true EDParserRegex format text with regex EDParserText format text EDParserIni format ini EDParserHTMLwithXPath format html use xpath ☑ true EDParserHTMLwithXPath format html with xpath EDParserHTMLwithCSS format html with css EDParserHTMLwithCSS format html use css ☑ true EDParserHTMLwithCSS format html EDParserXMLwithXPath format xml use xpath ☑ true EDParserXMLwithXPath format xml with xpath EDParserXMLsimple format xml EDParserJSONwithJSONPath format json use jsonpath ☑ true EDParserJSONwithJSONPath format json with jsonpath EDParserJSONsimple format json EDParserYAMLwithJSONPath format yaml use jsonpath ☑ true EDParserYAMLwithJSONPath format yaml with jsonpath EDParserYAMLsimple format yaml EDParserCSV format csv EDParserCSV format csv with header EDParserCSV format csv with headers EDParserGFF format gff EDParserAuto format auto EDParserText description Drop all {{#get_*_data:}} functions and all mw.ext.getExternalData.get*Data() except mw.ext.getExternalData.getExternalData() value ☑ true EDTestBase tests/phpunit/unit/EDTestBase.php EDParserTestBase tests/phpunit/unit/parsers/EDParserTestBase.php EDParserArchiveTestBase tests/phpunit/unit/parsers/EDParserArchiveTestBase.php